Random disconnecting and auto upload transfer stopping

,

Hi,
my NextCloud installation seems to have an issue with disconnecting and becoming unavailable randomly. What I also noticed is that when I went to backup all the images from my iPhone 12 Pro Max, that the autoupload feature stops whenever I go away and come back. I have 19k photos on my phone from when I toured Europe. After switching autoupload switch off and on again, then the photos appear again in Transfer but if someone calls me and then I go back to transfer the list of uploads is gone. I also seem to get random disconnection when my NextCloud Pi install is idle? See image.

I’m running Metrics for Grafana on my Nvidia Jetson Nano and my NextCloud Install is on a Raspberry Pi 3B+. I have a USB to SATA cable connected to a 3TB SATA drive. Its super annoying as it ties up my phone for hours when I’m trying to upload all my images and I have to leave my phone with the screen permanently unlocked which also means I need it connected to a power supply.

IS this a bug? software issue and should I upload my logs. All other functions seem to work OK.

Thanks in advanced, regards, Spence

I hope 24.0.5.1 is not the Nextcloud version you are currently running.

With the logs, it might be easier to tell if there is a real issue. Seeing your CPU going really high, perhaps some configuration can be improved, however on the NCPi images, it shouldn’t be too bad for such devices.
Rpi3+ is not really high performance, not sure how much RAM you have, perhaps adjusting a bit the memory limits for database/php might help a bit.
Mysql slow queries can also be a good indicator, at which point/which app could be limiting performance.

If you are at 100% CPU during upload, it can also be for i/o wait (processes wait on disk operations).

Just to have less pain, I’d consider using a Rpi4 or 5…

Thank you for the reply. Hhmmm that is very interesting and the CPU issue I assumed had been quite normal considering the tasks involved. I was unsure why the disconnecting happened while idle?.

I will order a Pi4 perhaps even a Pi5 and also look at freeing up some memory.

Thanks again and shall report back with my findings.

the i/o wait can be one point, not sure if that is really the case for you (such issue might occur as well if your disk starts to fail …).

no idea about that. What means disconnections, the server is not reachable during this time?

Hi, sorry for the late reply but yes, the server goes totally offline.

+1 for auto upload issues in iOS app.
I’m struggling to encourage it to upload the phots/videos while manual upload works fine.
The not yet loaded files are also dissapearing like reported in first post of this thread.
Toggling auto upload not necessarily make them to reapear.
I’ve disabled auto upload → terminated the iOS app → opened the app again → enabled auto upload → no uploads or new files visible → enabled loading all photos → files reappeared and marked as queued but now the app is uploading all the stuff which was already uploaded and this will take ages…
I had the same issue at begining of July (I havent check how it works between then and now, but now the issue is back for sure).

I hope that this issue can be investigated and fixed as it’s really painful.

The server going completely offline, that should not happen. So you cannot even connect through ssh? (so e.g. just the webserver is killed).

Logs would be really interesting.

no it hangs and often gives 500 server unreachable error