Problem after updating Nextcloudpi


i just recently did the update to the latest version, via the command line. As it looked fine, i did a reboot and now i’m running in some serious problems.

When i try to access my cloud, i get the message that the data dir is incorrect. Also, when i try to access the NextcloudPi Webpanel, it tell’s me “Unauthorized request. Try reloading the page” on every single option of the interface.

When i’m going to the mounted dir of my external hdd, there are no more files in it. Maybe it’s not mounted anymore? The hdd still shows up in fdisk.

Really could use some help, as i’m not the most experienced linux user

best regards

okay, i think the update has destroyed the mounting process… when i type “systemctl status nc-automount”, i get the following output:

pi@cloudserver:/media $ systemctl status nc-automount
● nc-automount.service - Automount USB drives
Loaded: loaded (/usr/lib/systemd/system/nc-automount.service; enabled)
Active: failed (Result: start-limit) since Do 2017-09-21 04:48:09 CEST; 1min 12s ago
Process: 590 ExecStart=/usr/bin/udiskie -NTF (code=exited, status=203/EXEC)
Main PID: 590 (code=exited, status=203/EXEC)

EDIT: when i mount the drive manually using “sudo mount -t ext4 /dev/sda1 /media/USBdrive”, the files are showing up again and the cloud is useable again. But the problem with the webinterface and automount still persists. Telling me “read error”.


about unauthourized request: open a new tab. It’s a security token issue. Your session has expired, we still have to improve that situation.

the automount system haven’t been touched in a while. Seems like udiskie is failing to find it’s interpreter.

Have you by any chance removed python3? What is the output of

head -1 /usr/bin/udiskie
udiskie --help
python3 /usr/bin/udiskie --help

Indeed, i have touched absolutly nothing at the server configuration.

The outputs are:
head: „/usr/bin/udiskie“ kann nicht zum Lesen geöffnet werden: Datei oder Verzeichnis nicht gefunden
(Translation: “dir” cannot be opened for reading. File or folder not found)

udiskie --help:
-bash: udiskie: Kommando nicht gefunden.
(Translation: command not found)

python3 /usr/bin/udiskie --help
python3: can’t open file ‘/usr/bin/udiskie’: [Errno 2] No such file or directory

So it really looks like, there is no plugin called “udiskie”, but as i said, i did not touch the standard configuration at all…

Maybe you didn’t update for a loooong time?

Try this

sudo rm /usr/local/etc/nextcloudpi-config.d/
sudo ncp-update
sudo reboot

And after reboot, it should be working again

ls -l /media
systemctl status nc-automount

this doesn’t work… it tells me, that there is a problem with some python3 packages

What is the error?

1 Like

I haven‘t saved it… can i somehow reproduce it?

run those commands again

Sorry for my delay… University just started recently. If i run the update command, i get the following output (as my pi is configured in german, you might use a translator):

pi@cloudserver:~ $ sudo ncp-update
Downloading updates
Performing updates
Installing nc-automount
Holen:1 jessie InRelease [22,9 kB]
OK:2 jessie InRelease
OK:3 stretch InRelease
Es wurden 22,9 kB in 1 s geholt (15,1 kB/s).
Paketlisten werden gelesen… Fertig
Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen… Fertig
Einige Pakete konnten nicht installiert werden. Das kann bedeuten, dass
Sie eine unmögliche Situation angefordert haben oder, wenn Sie die
Unstable-Distribution verwenden, dass einige erforderliche Pakete noch
nicht erstellt wurden oder Incoming noch nicht verlassen haben.
Die folgenden Informationen helfen Ihnen vielleicht, die Situation zu lösen:

Die folgenden Pakete haben unerfüllte Abhängigkeiten:
udiskie : Hängt ab von: python3-gi soll aber nicht installiert werden
Hängt ab von: python3-yaml soll aber nicht installiert werden
E: Probleme können nicht korrigiert werden, Sie haben zurückgehaltene defekte Pakete.
Activating unattended-upgrades
Unattended upgrades active: yes (autoreboot yes)
NextCloudPi updated to version v0.31.14

thanks already for your help

sorry, don’t speak german :stuck_out_tongue:

I try to translate the most important things…


The following packages have unfulfilled dependencies:

udiskie: depends on python3-gi, but should not be installed
Depends on: python3-yaml, but should not be installed
E: problems could not be corrected, they have restrained packages.


Die folgenden Pakete haben unerfüllte Abhängigkeiten:
udiskie : Hängt ab von: python3-gi soll aber nicht installiert werden
Hängt ab von: python3-yaml soll aber nicht installiert werden
E: Probleme können nicht korrigiert werden, Sie haben zurückgehaltene defekte Pakete.

It might not be 100% translated correctly, but i think you can work with it

and i got still read errors from the webpanel :frowning:

so you got no idea how to solv it ?


I have been away for a few days.

Are you on Raspbian 9 Stretch? did you intall an old image and not upgrade to Stretch?

What image did you install? Eg: NextCloudPi_03-03-2017.img

no problem, i downloaded the latest NextcloudPi Version in July i think and updated every two weeks since then

I’m facing, that i maybe have to do a clean reinstall of the system. Can you tell me if there is a guide to do this, with backing up the old state? Because i really don’t want to reconfigure the hole user structure etc., that would be a pain in the ass :D. And should rescan the files from the connected ext hdd.

or has any one finally a solution for my problem -.- ?

Unfortunately, I don’t have a solution for your problem directly, but if you wind up having to reinstall, it should be reasonably straightforward; there is a guide for migrating an NC instance (which is essentially what you’d be doing) here:

This should allow you to move your entire NC installation to a new host. You shouldn’t have to worry about the DNS stuff as long as you have a fresh NCP installation on the same physical machine, and make sure the name on the local network is the same (e.g., “nextcloudpi”, or “raspberrypi”). It’s not pain-free, but it should be a lot easier than having to rebuild your NC installation from scratch.

Hi, I suggest you do a nc-backup and then you can restore it in the new image with nc-restore.

That way it will be easy to start from a new clean image.

You will have to do all the stuff again for NCP, such as automount, letsencrypt, DDNS, nc-datadir but Nextcloud you can just restore it in the new instance.