Can not connect to nextcloud via mac client

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 20.0.5): 21.0.2
Operating system and version (eg, Ubuntu 20.04): Linux 5.10.28-Unraid #1 SMP Wed Apr 7 08:23:18 PDT 2021 x86_64
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.38 (Debian) (apache2handler)
PHP version (eg, 7.4): 7.4.20

The issue you are facing:
i try to connect to my server via mac client with port 8081 and without https on my macbook. after i authorized in safari the client post error “connection closed”.
i try to do the same thing on my ipad. it can work.
i used to connent to my server via mac client with port 8443 and with https. it used to success. but after i reinstalled my nextcloud(because of sudden 500 internal error) and change the port to 8081, it can not work any more.

Is this the first time you’ve seen this error? (Y/N):N

Steps to replicate it:

just try to connect via mac client.

The output of your Nextcloud log in Admin > Logging:

2021-07-02 13:50:17:723 [ info nextcloud.gui.application ]:	"################## Nextcloud locale:[en_US] ui_lang:[C] version:[3.2.2git (build 5901)] os:[macOS 10.16]"
2021-07-02 13:50:25:018 [ info nextcloud.sync.accessmanager ]:	4 "" "http://myserver:8081/login/v2/poll" has X-Request-ID "86d8e239-9e5f-470f-86a5-60476e2cbb57"
2021-07-02 13:50:25:018 [ debug nextcloud.sync.cookiejar ]	[ OCC::CookieJar::cookiesForUrl ]:	QUrl("http://myserver:8081/login/v2/poll") requests: (QNetworkCookie("oc_sessionPassphrase=aWoBe2po4FPLg08fcOOo7Lelvjj22HRl%2FrV4KbwwsRdBAXP%2FAeUzMJuZGAx14lJP7efHs12OfRdatKxWnnTeLbnS1mhpaDDSJ0NU%2FAOOLPkFHiNqSxLidQUHpIs5sL2t; HttpOnly; domain=myserver; path=/"), QNetworkCookie("ocpsnu4bgfaq=ef70c2542133c185b1f9431b8b25bf67; HttpOnly; domain=myserver; path=/"), QNetworkCookie("nc_sameSiteCookielax=true; HttpOnly; expires=Fri, 31-Dec-2100 23:59:59 GMT; domain=myserver; path=/"), QNetworkCookie("nc_sameSiteCookiestrict=true; HttpOnly; expires=Fri, 31-Dec-2100 23:59:59 GMT; domain=myserver; path=/"))
2021-07-02 13:50:25:018 [ info nextcloud.sync.networkjob ]:	OCC::SimpleNetworkJob created for "http://myserver" + "" ""
2021-07-02 13:50:25:236 [ warning nextcloud.sync.networkjob ]:	QNetworkReply::ContentNotFoundError "Server replied \"404 Not Found\" to \"POST http://myserver:8081/login/v2/poll\"" QVariant(int, 404)
2021-07-02 13:50:25:237 [ debug nextcloud.sync.credentials.flow2auth ]	[ OCC::Flow2Auth::slotPollTimerTimeout()::(anonymous class)::operator() ]:	Error when polling for the appPassword QJsonObject({"error":null}) "There was an error accessing the 'token' endpoint: <br><em>Error transferring http://myserver:8081/login/v2/poll - server replied: Not Found</em>"
2021-07-02 13:50:25:237 [ debug nextcloud.sync.networkjob ]	[ OCC::AbstractNetworkJob::slotFinished ]:	Network job OCC::SimpleNetworkJob finished for ""
2021-07-02 13:50:26:590 [ info nextcloud.gui.folder.manager ]:	Etag poll timer timeout
2021-07-02 13:50:26:590 [ info nextcloud.gui.folder.manager ]:	Folders to sync: 2
2021-07-02 13:50:26:590 [ info nextcloud.gui.folder.manager ]:	Number of folders that don't use push notifications: 2
2021-07-02 13:50:26:591 [ info nextcloud.gui.folder.manager ]:	Run etag job on folder OCC::Folder(0x7f84f9018400)
2021-07-02 13:50:26:591 [ info nextcloud.gui.folder.manager ]:	Can not run etag job: Folder is busy
2021-07-02 13:50:26:591 [ info nextcloud.gui.folder.manager ]:	Run etag job on folder OCC::Folder(0x7f850884d000)
2021-07-02 13:50:26:592 [ info nextcloud.gui.folder.manager ]:	Can not run etag job: Folder is busy
2021-07-02 13:50:53:140 [ info nextcloud.sync.accessmanager ]:	4 "" "http://myserver:8081/login/v2/poll" has X-Request-ID "6735e911-1449-4b10-b584-0d88070c5ae8"
2021-07-02 13:50:53:141 [ debug nextcloud.sync.cookiejar ]	[ OCC::CookieJar::cookiesForUrl ]:	QUrl("http://myserver:8081/login/v2/poll") requests: (QNetworkCookie("oc_sessionPassphrase=aWoBe2po4FPLg08fcOOo7Lelvjj22HRl%2FrV4KbwwsRdBAXP%2FAeUzMJuZGAx14lJP7efHs12OfRdatKxWnnTeLbnS1mhpaDDSJ0NU%2FAOOLPkFHiNqSxLidQUHpIs5sL2t; HttpOnly; domain=myserver; path=/"), QNetworkCookie("ocpsnu4bgfaq=ef70c2542133c185b1f9431b8b25bf67; HttpOnly; domain=myserver; path=/"), QNetworkCookie("nc_sameSiteCookielax=true; HttpOnly; expires=Fri, 31-Dec-2100 23:59:59 GMT; domain=myserver; path=/"), QNetworkCookie("nc_sameSiteCookiestrict=true; HttpOnly; expires=Fri, 31-Dec-2100 23:59:59 GMT; domain=myserver; path=/"))
2021-07-02 13:50:53:141 [ info nextcloud.sync.networkjob ]:	OCC::SimpleNetworkJob created for "http://myserver" + "" ""
2021-07-02 13:50:53:424 [ info nextcloud.sync.credentials.flow2auth ]:	Success getting the appPassword for user:  "shenyu" , server:  "http://myserver:8081"
2021-07-02 13:50:53:424 [ debug nextcloud.sync.networkjob ]	[ OCC::AbstractNetworkJob::slotFinished ]:	Network job OCC::SimpleNetworkJob finished for ""
2021-07-02 13:50:53:424 [ info nextcloud.gui.wizard ]:	Connect to url:  "http://myserver:8081"
2021-07-02 13:50:53:424 [ info nextcloud.sync.credentials.webflow ]:	Get QNAM
2021-07-02 13:50:53:425 [ debug nextcloud.gui.wizard ]	[ OCC::OwncloudWizard::appendToConfigurationLog ]:	Setup-Log:  "Trying to connect to Nextcloud at http://myserver:8081 …"
2021-07-02 13:50:53:425 [ info nextcloud.sync.accessmanager ]:	6 "PROPFIND" "http://myserver:8081/remote.php/webdav/" has X-Request-ID "da79bf10-4202-4351-9551-8415289e00cc"
2021-07-02 13:50:53:425 [ debug nextcloud.sync.cookiejar ]	[ OCC::CookieJar::cookiesForUrl ]:	QUrl("http://myserver:8081/remote.php/webdav/") requests: (QNetworkCookie("oc_sessionPassphrase=aWoBe2po4FPLg08fcOOo7Lelvjj22HRl%2FrV4KbwwsRdBAXP%2FAeUzMJuZGAx14lJP7efHs12OfRdatKxWnnTeLbnS1mhpaDDSJ0NU%2FAOOLPkFHiNqSxLidQUHpIs5sL2t; HttpOnly; domain=myserver; path=/"), QNetworkCookie("ocpsnu4bgfaq=ef70c2542133c185b1f9431b8b25bf67; HttpOnly; domain=myserver; path=/"), QNetworkCookie("nc_sameSiteCookielax=true; HttpOnly; expires=Fri, 31-Dec-2100 23:59:59 GMT; domain=myserver; path=/"), QNetworkCookie("nc_sameSiteCookiestrict=true; HttpOnly; expires=Fri, 31-Dec-2100 23:59:59 GMT; domain=myserver; path=/"))
2021-07-02 13:50:53:425 [ info nextcloud.sync.networkjob ]:	OCC::PropfindJob created for "http://myserver" + "/" "OCC::OwncloudSetupWizard"
2021-07-02 13:50:53:534 [ info nextcloud.sync.credentials.webflow ]:	request finished
2021-07-02 13:50:53:534 [ warning nextcloud.sync.networkjob ]:	QNetworkReply::RemoteHostClosedError "Connection closed" QVariant(Invalid)
2021-07-02 13:50:53:534 [ warning nextcloud.sync.credentials.webflow ]:	QNetworkReply::RemoteHostClosedError
2021-07-02 13:50:53:534 [ warning nextcloud.sync.credentials.webflow ]:	"Connection closed"
2021-07-02 13:50:53:534 [ info nextcloud.sync.networkjob.propfind ]:	PROPFIND of QUrl("http://myserver:8081/remote.php/webdav/") FINISHED WITH STATUS "RemoteHostClosedError Connection closed"
2021-07-02 13:50:53:534 [ warning nextcloud.sync.networkjob.propfind ]:	*not* successful, http result code is 0 ""
2021-07-02 13:50:53:534 [ warning nextcloud.sync.credentials.webflow ]:	QNetworkReply::RemoteHostClosedError
2021-07-02 13:50:53:534 [ warning nextcloud.sync.credentials.webflow ]:	"Connection closed"
2021-07-02 13:50:53:536 [ debug nextcloud.gui.wizard ]	[ OCC::OwncloudWizard::slotCurrentPageChanged ]:	Current Wizard page changed to  1
2021-07-02 13:50:53:537 [ debug nextcloud.sync.networkjob ]	[ OCC::AbstractNetworkJob::slotFinished ]:	Network job OCC::PropfindJob finished for "/"

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'htaccess.RewriteBase' => '/',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'apps_paths' => 
  array (
    0 => 
    array (
      'path' => '/var/www/html/apps',
      'url' => '/apps',
      'writable' => false,
    ),
    1 => 
    array (
      'path' => '/var/www/html/custom_apps',
      'url' => '/custom_apps',
      'writable' => true,
    ),
  ),
  'instanceid' => 'ocpsnu4bgfaq',
  'passwordsalt' => '6Utnq0OyQpvBqVAPK5IphiqiNMH2K8',
  'secret' => 'VJi17amdbBEXsA3SM5SzWLXrbanpq72qiGHzE7iAiWJH2If1',
  'trusted_domains' => 
  array (
    0 => '10.0.0.17:8081',
    1 => 'myserver'
  ),
  'datadirectory' => '/var/www/html/data',
  'dbtype' => 'mysql',
  'version' => '21.0.2.1',
  'overwrite.cli.url' => 'http://10.0.0.17:8081',
  'dbname' => 'nextcloud',
  'dbhost' => '172.17.0.2:3306',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'user',
  'dbpassword' => 'password',
  'installed' => true,
);

The output of your Apache/nginx/system log in /var/log/____:

PASTE HERE