Auto Upload from android to nextcloud stop working

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:

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


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): 26.0.2
Operating system and version (eg, Ubuntu 20.04): Almalinux 9
Apache or nginx version (eg, Apache 2.4.25): 2.4.37
PHP version (eg, 7.4): 8.0.28

The issue you are facing:

Auto Uploading files from Android phone stopped to work a few days ago and there is no relevant error in logs
I also checked all permission and all is ok

I can also see in nextcloud that my phone is connected.
Huawei VOG-L29 (Android) few seconds ago
Android version nextcloud 3.24.2

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

Steps to replicate it:

The output of your Nextcloud log in Admin > Logging:

		Čas
Opozorilo	settings	Controller OCA\Settings\Controller\CheckSetupController::check executed 7456 queries.	
2023-05-29T12:10:10+0200
Opozorilo	settings	Controller OCA\Settings\Controller\CheckSetupController::check executed 7456 queries.	
2023-05-29T12:08:00+0200
Napaka	no app in context	Sabre\DAV\Exception\BadRequest: Expected filesize of 4691044 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 1638400 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.	
2023-05-28T23:19:33+0200
Opozorilo	settings	Controller OCA\Settings\Controller\CheckSetupController::check executed 7456 queries.	
2023-05-28T12:21:31+0200
Opozorilo	files_sharing	Controller OCA\Files_Sharing\Controller\ShareAPIController::getShares executed 2033 queries.	
2023-05-28T11:04:04+0200
Opozorilo	files_sharing	Controller OCA\Files_Sharing\Controller\ShareAPIController::getShares executed 2033 queries.	
2023-05-28T11:03:57+0200
Opozorilo	files_sharing	Controller OCA\Files_Sharing\Controller\ShareAPIController::getShares executed 2033 queries.	
2023-05-28T11:03:56+0200
Opozorilo	files_sharing	Controller OCA\Files_Sharing\Controller\ShareAPIController::getShares executed 2033 queries.	
2023-05-27T16:38:11+0200
Opozorilo	files_sharing	Controller OCA\Files_Sharing\Controller\ShareAPIController::getShares executed 2033 queries.	
2023-05-27T16:38:11+0200
Opozorilo	files_sharing	Controller OCA\Files_Sharing\Controller\ShareAPIController::getShares executed 2033 queries.	
2023-05-27T16:37:57+0200
Opozorilo	files_sharing	Controller OCA\Files_Sharing\Controller\ShareAPIController::getShares executed 2033 queries.	
2023-05-27T16:37:39+0200
Opozorilo	files_sharing	Controller OCA\Files_Sharing\Controller\ShareAPIController::getShares executed 2033 queries.	
2023-05-27T16:37:34+0200
Opozorilo	files_sharing	Controller OCA\Files_Sharing\Controller\ShareAPIController::getShares executed 2033 queries.	
2023-05-27T16:36:57+0200
Opozorilo	files_sharing	Controller OCA\Files_Sharing\Controller\ShareAPIController::getShares executed 2033 queries.	
2023-05-27T16:36:52+0200
Opozorilo	files_sharing	Controller OCA\Files_Sharing\Controller\ShareAPIController::getShares executed 2033 queries.	
2023-05-27T16:34:28+0200
Opozorilo	files_sharing	Controller OCA\Files_Sharing\Controller\ShareAPIController::getShares executed 143 queries.	
2023-05-27T16:34:26+0200
Opozorilo	files_sharing	Controller OCA\Files_Sharing\Controller\ShareAPIController::getShares executed 203 queries.	
2023-05-27T16:34:17+0200
Opozorilo	files_sharing	Controller OCA\Files_Sharing\Controller\ShareAPIController::getShares executed 203 queries.	
2023-05-27T16:34:11+0200
Opozorilo	files_sharing	Controller OCA\Files_Sharing\Controller\ShareAPIController::getShares executed 143 queries.	
2023-05-27T16:34:05+0200
Opozorilo	files_sharing	Controller OCA\Files_Sharing\Controller\ShareAPIController::getShares executed 2033 queries.	
2023-05-27T16:33:58+0200
Opozorilo	files_sharing	Controller OCA\Files_Sharing\Controller\ShareAPIController::getShares executed 2033 queries.	
2023-05-27T16:19:22+0200
Opozorilo	files_sharing	Controller OCA\Files_Sharing\Controller\ShareAPIController::getShares executed 2033 queries.	
2023-05-27T16:12:50+0200

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

config.php didn't changed

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

[Sun May 28 16:05:41.370636 2023] [mpm_event:notice] [pid 379208:tid 139861900532032] AH00493: SIGUSR1 received.  Doing graceful restart
[Sun May 28 16:05:39.753185 2023] [core:notice] [pid 379208:tid 139861900532032] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Sun May 28 16:05:39.753152 2023] [mpm_event:notice] [pid 379208:tid 139861900532032] AH00489: Apache/2.4.37 (AlmaLinux) OpenSSL/1.1.1k configured -- resuming normal operations
[Sun May 28 16:05:39.751957 2023] [lbmethod_heartbeat:notice] [pid 379208:tid 139861900532032] AH02282: No slotmem from mod_heartmonitor

PASTE HERE


Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.

[Sun May 28 06:00:03.248887 2023] [core:error] [pid 512228:tid 139861287343872] (36)File name too long: [client 139.59.165.29:35270] AH00036: access to /3000D00E0000FFFF3F0031313744373731343634307353046007A7A7A7A7A7A7A7A7A7A7A7A7A7A0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000008047A7A7A7A7A77A7A0000000000000000000000000000000000000000000000000000000000000000 failed (filesystem path '/var/www/html/nextcloud/3000D00E0000FFFF3F0013137443737313436344537353046007A7A7A7A7A7A7A7A7A7A7A7A7A7A7A0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000008047A7A7A7A7A7A7A7A7A0000000000000000000000000000000000000000000000000000000000000000')
[Sun May 28 18:41:37.094951 2023] [proxy_fcgi:error] [pid 713176:tid 139860820084480] [client 170.64.148.34:38762] AH01071: Got error 'Primary script unknown'
[Sun May 28 18:41:40.116437 2023] [proxy_fcgi:error] [pid 713176:tid 139860711044864] [client 170.64.148.34:38806] AH01071: Got error 'Primary script unknown'
[Sun May 28 20:19:26.267393 2023] [core:error] [pid 713177:tid 139860560041728] [client 83.97.73.89:38278] AH00126: Invalid URI in request POST /cgi-bin/.%2e/.%2e/.%2e/.%2e/bin/sh HTTP/1.1
[Sun May 28 23:19:33.493421 2023] [proxy_fcgi:error] [pid 713176:tid 139860677474048] (70008)Partial results are valid but processing is incomplete: [client 89.212.159.195:35419] AH01075: Error dispatching request to : (reading input brigade)
[Mon May 29 08:47:56.889437 2023] [proxy_fcgi:error] [pid 1150771:tid 140389017167616] [client 35.216.190.247:45608] AH01071: Got error 'Primary script unknown'
[Mon May 29 11:02:01.579092 2023] [proxy_fcgi:error] [pid 1222248:tid 140388438365952] [client 152.32.215.190:60028] AH01071: Got error 'Primary script unknown'

Hi
Have you fixed this problems.
My NextCloud app on Android also stopped auto uploading on the 18th May 2023.
It has worked fine before that for years.

Me too. I am also having this issue, I think.

+1
Started couple days ago.
Server is 25.0.7
Client 3.24.2

Just a couple of images are uploaded automatically. Then I have to kill the app and restart it. Could be 2 or up to 9 files at the time…

Got 93 Files left in the queue, started with around 160 or so

No I didn’t. It is just, sometimes work sometimes doesn’t, and don’t know why.
It is frustrating, because before I make some photos and that was in 3 minutes on the cloud on my server.
But now it takes a few days or even a lot more.

Error which I get it is only this one.
Sabre\DAV\Exception\BadRequest: Expected filesize of 1024000 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 73728 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.

/var/www/html/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php - line 149:

OCA\DAV\Connector\Sabre\File->put()

/var/www/html/nextcloud/apps/dav/lib/Upload/UploadFolder.php - line 50:

OCA\DAV\Connector\Sabre\Directory->createFile("*** sensiti ... *")

/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 1098:

OCA\DAV\Upload\UploadFolder->createFile("*** sensiti ... *")

/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php - line 504:

Sabre\DAV\Server->createFile("*** sensiti ... *")

/var/www/html/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php - line 89:

Sabre\DAV\CorePlugin->httpPut()

/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 472:

Sabre\DAV\Server->emit()

/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 253:

Sabre\DAV\Server->invokeMethod()

/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 321:

Sabre\DAV\Server->start()

/var/www/html/nextcloud/apps/dav/lib/Server.php - line 366:

Sabre\DAV\Server->exec()

/var/www/html/nextcloud/apps/dav/appinfo/v2/remote.php - line 35:

OCA\DAV\Server->exec()

/var/www/html/nextcloud/remote.php - line 172:

require_once("/var/www/ht ... p")

Any update on the issue? I also have realized yesterday that my Auto upload is not working. Is this a general issue or my server configuration?

Oddly I’ve been having the same issue for about two months where uploading from Android stopped working but I just now turned off UFW and now can upload, is anyone else using UFW?

Uncomplicated firewall?

Don’t think I am, unless it’s part of a standard android install on a Moto phone? Or tab digital’s nextcloud setup.

Steve

Sorry for the delayed reply Steven but it was in the nextcloud admin section in the host server for me, I don’t believe UFW is default installed on Android but I know I setup UFW from the menu but only when I disabled it on host was I able to get instant uploads working

Is there a solution available yet? I have the same issue with a docker install… no UFW set up so cannot use that fix.

EDIT: this problem only applies to one (out of 2) user, the other one keeps uploading. I am currently in setup, so there is a larger number of existibg files in upload queue.
The 2 user clients are both new installs on identical android samsung S21…