Sync does not work properly

Running latest NCP version on Pi 4, latest NC version, latest NC client apps on LInux and Android.
Getting sync errors on photos (from phone), .pdf files and .epub file (from Linux Mint laptop). Android app says “Unknown error”. Linux app says “HEADERS on invalid streams”.

I cannot locate any nextcloud.log or error.log files. Where are they supposed to be?

1 Like

Can run

sudo ncp-report

to get info and logs.

Standard Linux location for logs is /var/log/

nextcloud.log default location would be /var/www/nextcloud/data/nextcloud.log,
unless you used nc-datadir to move data to another location.
You can also view nc log entries from NC admin page.

Thank you!

ncp-report has several errors with the same
“message”:“Temporary directory /var/www/nextcloud/data/tmp is not present or writable”

nextcloud.log is full of that same error message.

I have moved the data to USB disk, and /media/MX500/ncdata/data/tmp does exist (empty). But apparently not everyone is made aware of that within NCP.

Check and edit the value of

‘tempdirectory’ =>

in your /var/www/nextcloud/config/config.php

‘tempdirectory’ corrected in the config.php file

But the sync problem persists. Same files are still a problem, and Instant Upload from Android phone (OpenCamera photos) does not work (‘Bad request’).
And now the Linux desktop client says “Error while loading the list of folders from the server. Unknown error”. Access through the web interface is fine, however.

After 3 restarts and a couple of file moves, the sync suddenly works and even the list of folders is retrieved. :slightly_smiling_face::grinning:

1 Like