Sync CLIENT fails to connect - LInux and Android

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:

sycn client on Android and Linux fails to connect. On Linux return error is Server replied 400 Bad Requst to get [url]status.php

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 : 19.0.1
Operating system and version (eg, Ubuntu 20.04): Ubuntu 20.04
Apache or nginx version (eg, Apache 2.4.25): N/A
PHP version (eg, 7.1):7.3.20

The issue you are facing:
Cannot connect with Android no Linux sync client.

After failure to update from earlier version, wiped out previous installation on shared server. Installed with php web installer. Can access and create users from browser, FireFox.

In Linux, after installing up-to-date sync client with appimage, when trying to connect to correct URL, I get error,
ailed to connect to Nextcloud at [url]
Server replied 400 Bad Request to get [url]status.php

NOTE: that I have added my client-side i.p. address to trusted domains in .config/config.php.

I DID NOT have this problem before with old version of Nextcloud; I had not added trusted domains.

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

Steps to replicate it:

  1. Re-installed on shared server after deleting old DB and creating a fresh one.
  2. Try sync client, does not connect
  3. Same with up-to-date Android sync client

The output of your Nextcloud log in Admin > Logging:

Warning	Login failed: 'roger' (Remote IP: '[i.p. DELETED]')	
2020-08-02T12:53:01-0400
Error	TypeError: Argument 3 passed to OCA\Files\Service\TagService::__construct() must be an instance of OCP\ITags, null given, called in [DELETED]s/lib/AppInfo/Application.php on line 83	
2020-08-02T12:52:47-0400
Warning	Login failed: 'roger' (Remote IP: '[i.p. DELETED]')	
2020-08-02T12:52:47-0400
Warning	Login failed: 'roger' (Remote IP: '[i.p. DELETED]')	
2020-08-02T12:52:28-0400
Error	TypeError: Argument 3 passed to OCA\Files\Service\TagService::__construct() must be an instance of OCP\ITags, null given, called in [DELETED]s/lib/AppInfo/Application.php on line 83	
2020-08-02T12:52:20-0400
Warning	Login failed: 'roger' (Remote IP: '[i.p. DELETED]')	
2020-08-02T12:52:20-0400
Warning	Login failed: 'roger' (Remote IP: '[i.p. DELETED]')	
2020-08-02T12:52:14-0400
Warning	Login failed: 'roger' (Remote IP: '[i.p. DELETED]')	
2020-08-02T12:52:07-0400
Error	TypeError: Argument 3 passed to OCA\Files\Service\TagService::__construct() must be an instance of OCP\ITags, null given, called in [DELETED]s/lib/AppInfo/Application.php on line 83	
2020-08-02T12:52:06-0400
Warning	Login failed: 'roger' (Remote IP: '[i.p. DELETED]')	
2020-08-02T12:52:06-0400
Warning	Login failed: 'roger' (Remote IP: '[i.p. DELETED]')	
2020-08-02T12:52:04-0400
Warning	Login failed: 'roger' (Remote IP: '[i.p. DELETED]')	
2020-08-02T12:52:03-0400
Warning	Login failed: 'roger' (Remote IP: '[i.p. DELETED]')	
2020-08-02T12:52:03-0400
Warning	Login failed: 'roger' (Remote IP: '[i.p. DELETED]')	
2020-08-02T12:52:03-0400
Error	session_start(): A session had already been started - ignoring at [DELETED]/lib/private/Session/Internal.php#209	
2020-08-02T12:44:58-0400
Error	session_start(): A session had already been started - ignoring at [DELETED]/lib/private/Session/Internal.php#209	
2020-08-02T12:00:15-0400
Error	session_start(): A session had already been started - ignoring at [DELETED]/lib/private/Session/Internal.php#209	
2020-08-02T11:52:11-0400
Error	session_start(): A session had already been started - ignoring at [DELETED]/lib/private/Session/Internal.php#209	
2020-08-02T11:37:55-0400
Error	Could not find resource js/setup.js to load	
2020-08-02T11:30:42-0400
Error	session_start(): A session had already been started - ignoring at [DELETED]/lib/private/Session/Internal.php#209	
2020-08-02T11:30:42-0400
Error	Could not find resource js/setup.js to load	
2020-08-02T11:25:09-0400
Error	session_start(): A session had already been started - ignoring at [DELETED]/lib/private/Session/Internal.php#209	
2020-08-02T11:25:09-0400
Error	Could not find resource js/setup.js to load	
2020-08-02T11:24:37-0400
Error	session_start(): A session had already been started - ignoring at [DELETED]/lib/private/Session/Internal.php#209	
2020-08-02T11:24:37-0400
Error	Could not find resource js/setup.js to load	
2020-08-02T11:24:05-0400
Error	session_start(): A session had already been started - ignoring at [DELETED]/lib/private/Session/Internal.php#209	
2020-08-02T11:24:05-0400
Error	Could not find resource js/setup.js to load	
2020-08-02T11:23:33-0400
Error	session_start(): A session had already been started - ignoring at [DELETED]/lib/private/Session/Internal.php#209	
2020-08-02T11:23:33-0400
Error	Could not find resource js/setup.js to load	
2020-08-02T11:23:01-0400
Error	session_start(): A session had already been started - ignoring at [DELETED]/lib/private/Session/Internal.php#209	
2020-08-02T11:23:01-0400
Error	Could not find resource js/setup.js to load	
2020-08-02T11:22:30-0400
Error	session_start(): A session had already been started - ignoring at [DELETED]/lib/private/Session/Internal.php#209	
2020-08-02T11:22:30-0400
Error	Could not find resource js/setup.js to load	
2020-08-02T11:21:57-0400
Error	session_start(): A session had already been started - ignoring at [DELETED]/lib/private/Session/Internal.php#209	
2020-08-02T11:21:57-0400
Error	Could not find resource js/setup.js to load	
2020-08-02T11:21:25-0400
Error	session_start(): A session had already been started - ignoring at [DELETED]/lib/private/Session/Internal.php#209	
2020-08-02T11:21:25-0400
Error	Could not find resource js/setup.js to load	
2020-08-02T11:20:53-0400
Error	session_start(): A session had already been started - ignoring at [DELETED]/lib/private/Session/Internal.php#209	
2020-08-02T11:20:53-0400
Error	Could not find resource js/setup.js to load	
2020-08-02T11:20:21-0400
Error	session_start(): A session had already been started - ignoring at [DELETED]/lib/private/Session/Internal.php#209	
2020-08-02T11:20:21-0400
Error	Could not find resource js/setup.js to load	
2020-08-02T11:19:49-0400
Error	session_start(): A session had already been started - ignoring at [DELETED]/lib/private/Session/Internal.php#209	
2020-08-02T11:19:49-0400
Error	Could not find resource js/setup.js to load	
2020-08-02T11:19:18-0400
Error	session_start(): A session had already been started - ignoring at [DELETED]/lib/private/Session/Internal.php#209	
2020-08-02T11:19:17-0400
Error	Could not find resource js/setup.js to load	
2020-08-02T11:18:45-0400
Error	session_start(): A session had already been started - ignoring at [DELETED]/lib/private/Session/Internal.php#209	
2020-08-02T11:18:45-0400
Error	Could not find resource js/setup.js to load	
2020-08-02T11:18:13-0400
Error	session_start(): A session had already been started - ignoring at [DELETED]/lib/private/Session/Internal.php#209	
2020-08-02T11:18:13-0400
Error	Could not find resource js/setup.js to load	
2020-08-02T11:17:41-0400
Error	session_start(): A session had already been started - ignoring at [DELETED]/lib/private/Session/Internal.php#209	
2020-08-02T11:17:41-0400
Error	Could not find resource js/setup.js to load	
2020-08-02T11:17:09-0400
Error	session_start(): A session had already been started - ignoring at [DELETED]/lib/private/Session/Internal.php#209	
2020-08-02T11:17:09-0400
Error	Could not find resource js/setup.js to load	
2020-08-02T11:16:37-0400
Error	session_start(): A session had already been started - ignoring at [DELETED]/lib/private/Session/Internal.php#209	
2020-08-02T11:16:37-0400
Error	Could not find resource js/setup.js to load	
2020-08-02T11:16:05-0400
Error	session_start(): A session had already been started - ignoring at [DELETED]/lib/private/Session/Internal.php#209	
2020-08-02T11:16:05-0400
Error	Could not find resource js/setup.js to load	
2020-08-02T11:15:41-0400
Error	Doctrine\DBAL\DBALException: Failed to connect to the database: An exception occurred in driver: SQLSTATE[HY000] [1044] Access denied for user '[DELETED]' to database '[DELETED]'	
2020-08-02T11:15:41-0400
Error	Doctrine\DBAL\Exception\ConnectionException: An exception occurred while executing 'CREATE DATABASE IF NOT EXISTS `[DELETED]` CHARACTER SET utf8 COLLATE utf8_bin;': SQLSTATE[42000]: Syntax error or access violation: 1044 Access denied for user '[DELETED]' to database '[DELETED]'	
2020-08-02T11:15:41-0400
Error	session_start(): A session had already been started - ignoring at [DELETED]/lib/private/Session/Internal.php#209	
2020-08-02T11:15:41-0400
Error	Could not find resource js/setup.js to load	
2020-08-02T11:15:33-0400
Error	session_start(): A session had already been started - ignoring at [DELETED]/lib/private/Session/Internal.php#209	
2020-08-02T11:15:33-0400
Error	Could not find resource js/setup.js to load	
2020-08-02T11:15:02-0400
Error	session_start(): A session had already been started - ignoring at [DELETED]/lib/private/Session/Internal.php#209	
2020-08-02T11:15:02-0400
Error	Could not find resource js/setup.js to load	
2020-08-02T11:14:29-0400
Error	session_start(): A session had already been started - ignoring at [DELETED]/lib/private/Session/Internal.php#209	
2020-08-02T11:14:29-0400
Error	Could not find resource js/setup.js to load	
2020-08-02T11:14:25-0400
Error	Doctrine\DBAL\DBALException: Failed to connect to the database: An exception occurred in driver: SQLSTATE[HY000] [1044] Access denied for user '[DELETED]' to database '[DELETED]'	
2020-08-02T11:14:25-0400
Error	Doctrine\DBAL\Exception\ConnectionException: An exception occurred while executing 'CREATE DATABASE IF NOT EXISTS `[DELETED]` CHARACTER SET utf8 COLLATE utf8_bin;': SQLSTATE[42000]: Syntax error or access violation: 1044 Access denied for user '[DELETED]' to database '[DELETED]'	
2020-08-02T11:14:25-0400
Warning	Could not detect any host in [DELETED]/data/htaccesstest.txt	
2020-08-02T11:14:25-0400
Warning	Could not detect any host in [DELETED]/data/htaccesstest.txt	
2020-08-02T11:14:25-0400
Error	session_start(): A session had already been started - ignoring at [DELETED]/lib/private/Session/Internal.php#209	
2020-08-02T11:14:25-0400
Error	Could not find resource js/setup.js to load	
2020-08-02T11:13:57-0400
Warning	Could not detect any host in [DELETED]/data/htaccesstest.txt	
2020-08-02T11:13:57-0400
Warning	Could not detect any host in [DELETED]/data/htaccesstest.txt	
2020-08-02T11:13:57-0400
Error	session_start(): A session had already been started - ignoring at [DELETED]/lib/private/Session/Internal.php#209	
2020-08-02T11:13:57-0400
Error	Could not find resource js/setup.js to load	
2020-08-02T11:13:25-0400
Warning	Could not detect any host in [DELETED]/data/htaccesstest.txt	
2020-08-02T11:13:25-0400
Warning	Could not detect any host in [DELETED]/data/htaccesstest.txt	
2020-08-02T11:13:25-0400
Error	session_start(): A session had already been started - ignoring at [DELETED]/lib/private/Session/Internal.php#209	
2020-08-02T11:13:25-0400
Error	Could not find resource js/setup.js to load	
2020-08-02T11:12:53-0400
Warning	Could not detect any host in [DELETED]/data/htaccesstest.txt	
2020-08-02T11:12:53-0400
Warning	Could not detect any host in [DELETED]/data/htaccesstest.txt	
2020-08-02T11:12:53-0400
Error	session_start(): A session had already been started - ignoring at [DELETED]/lib/private/Session/Internal.php#209	
2020-08-02T11:12:53-0400
Error	Could not find resource js/setup.js to load	
2020-08-02T11:12:21-0400
Warning	Could not detect any host in [DELETED]/data/htaccesstest.txt	
2020-08-02T11:12:21-0400
Warning	Could not detect any host in [DELETED]/data/htaccesstest.txt	
2020-08-02T11:12:21-0400
Error	session_start(): A session had already been started - ignoring at [DELETED]/lib/private/Session/Internal.php#209	
2020-08-02T11:12:21-0400
Error	chmod(): No such file or directory at [DELETED]/lib/private/Log/File.php#86	
2020-08-02T11:12:17-0400
Error	Could not find resource js/setup.js to load	
2020-08-02T11:12:17-0400
Warning	Could not detect any host in [DELETED]/data/htaccesstest.txt	
2020-08-02T11:12:17-0400
Warning	Could not detect any host in [DELETED]/data/htaccesstest.txt

The output of your Apache/nginx/system log in /var/log/____: Not available - shared host

Not available - shared host

There is an old but unsolved bug report related to your error:

I’ll look in my error log.

Might this be related: with the latest update to the Droid sync app, I can now access Nextcloud on my server as well as NC Notes downloaded from F-Droid. Might that change aged light on the elusive bug?

Notes ver 2.16.7
Droid sync ver 3.12.1