nextcloudpi icon indicating copy to clipboard operation
nextcloudpi copied to clipboard

No ocdata since 0.24.1

Open deljones opened this issue 9 years ago • 7 comments

Hi..

Since updating to 0.24.1 I can no longer get access to ocdata...:(

Should I just restore to previous back up?

Del

0241 error

deljones avatar Aug 23 '17 15:08 deljones

Hi del,

How did you update?

nachoparker avatar Aug 23 '17 15:08 nachoparker

I also had this issue a few days back, I just did a sudo df -h , saw that it wasn't mounted in the correct directory, kept doing sudo umount /media/USBdrive(whatever number) and finally manually mount it to the correct directory (in my case, though I believe yours is the same) with sudo mount /dev/sda1 /media/USBdrive

Reboot, and all is fine again. Don't know what caused it to begin with, but when this happens you need to fix manually your data directory

ObfuscateTheWeb avatar Aug 23 '17 15:08 ObfuscateTheWeb

Thanks, @ObfuscateTheWeb

I fixed some stuff with automount, where it was being incorrectly being mounted to /media/USBdrive1 instead of /media/USBdrive. In any case, the most failproof thing to do is to use /media/disklabel because that will always point to the right place even if you plug in more than one HDD.

In any case, if you verify that it should be /media/USBdrive, check (and correct) the value in /var/www/nextcloud/config/config.php

nachoparker avatar Aug 23 '17 15:08 nachoparker

I just did a check for updates, did the upgrade date, restated and voila... No access 😕

Dj

deljones avatar Aug 23 '17 17:08 deljones

I'll have a quick ssh and see which USBdrive number ocdata is on..

Dj

deljones avatar Aug 23 '17 17:08 deljones

Hi... Yes fixed. Had to edit config.php and edit the location from USBdisk to USBdisk1

Don't a few updates with no issues. First time that happens..

Thanks all for your help. Back up again

Dj

deljones avatar Aug 23 '17 17:08 deljones

Cool, I have to review automount with Stretch because it seems like it works differently in the new Raspbian version now :S

nachoparker avatar Aug 23 '17 18:08 nachoparker