Having issues with your DietPi installation, or, found a bug? Post it here.
Mr.Roboto
Posts: 24 Joined: Tue Nov 05, 2019 10:28 am
Post
by Mr.Roboto » Thu Oct 08, 2020 11:29 am
My DietPi is running a lot of stuff, mostly without any problems. So thanks a lot for this great piece of software!
Today I wanted to add Syncthing to my DietPi and got this error:
Code: Select all
Configuring Syncthing: backup and sync server with web interface
11:09:43 WARNING: Failed to generate config and keys: mkdir /mnt/dietpi_userdata/syncthing: permission denied
sed: can't read /mnt/dietpi_userdata/syncthing/config.xml: No such file or directory
sed: can't read /mnt/dietpi_userdata/syncthing/config.xml: No such file or directory
sed: can't read /mnt/dietpi_userdata/syncthing/config.xml: No such file or directory
I moved dietpi_userdata to a harddrive after I booted dietpi for the first time (more than a year ago), so it should recognise that the directory was moved. But to me it looks like it didn't, right? What can I do about this? I'm learning a lot about Linux but users and permissions are still beyond me. I'm lost.
Joulinar
Posts: 3340 Joined: Sat Nov 16, 2019 12:49 am
Post
by Joulinar » Thu Oct 08, 2020 11:47 am
Hi,
many thanks for your report. Which version of DietPi you are running? Pls can you post output of ls -ls /mnt/dietpi_userdata/
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Mr.Roboto
Posts: 24 Joined: Tue Nov 05, 2019 10:28 am
Post
by Mr.Roboto » Thu Oct 08, 2020 12:06 pm
I'm running DietPi v6.32.2
Code: Select all
insgesamt 16
0 drwxrwxr-x 1 komga dietpi 0 Mai 17 09:41 comics
4 drwxrwxr-x 1 dietpi dietpi 4096 Jul 6 12:08 downloads
0 drwxrwxr-x 1 komga dietpi 0 Mai 17 09:41 ebooks
4 drwx------ 1 jellyfin jellyfin 4096 Sep 1 22:10 jellyfin
4 drwxr-xr-x 1 komga root 4096 Okt 2 16:24 komga
0 drwxrwxr-x 1 dietpi dietpi 0 Sep 1 21:41 Music
0 drwxrwxr-x 1 dietpi dietpi 0 Mai 17 09:39 Pictures
0 drwxr-xr-x 1 dietpi dietpi 0 Aug 15 09:31 syncthing_data
4 drwxr-xr-x 1 ubooquity root 4096 Aug 3 18:38 ubooquity
0 drwxrwxr-x 1 dietpi dietpi 0 Mai 17 09:39 Video
Joulinar
Posts: 3340 Joined: Sat Nov 16, 2019 12:49 am
Post
by Joulinar » Thu Oct 08, 2020 12:13 pm
looks like
/mnt/dietpi_userdata is not owned by user DietPi?? Could that be? That's way Syncthing is not able to create the directory.
Code: Select all
11:09:43 WARNING: Failed to generate config and keys: mkdir /mnt/dietpi_userdata/syncthing: permission denied
Anyway to have it fixed, you can created folder yourselves by running the following as user
root :
Code: Select all
mkdir /mnt/dietpi_userdata/syncthing
chown -R dietpi:dietpi /mnt/dietpi_userdata/syncthing*
systemctl restart syncthing
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Mr.Roboto
Posts: 24 Joined: Tue Nov 05, 2019 10:28 am
Post
by Mr.Roboto » Thu Oct 08, 2020 12:40 pm
Ok, I did that and then reinstalled it with "dietpi-software reinstall 50". No more error messages, but the web interface is still not working.
Might it still be a problem that the actual userdata is on a mounted drive?
Mr.Roboto
Posts: 24 Joined: Tue Nov 05, 2019 10:28 am
Post
by Mr.Roboto » Thu Oct 08, 2020 12:43 pm
I have two dietpi-userdata folder now, one in /mnt/ and one in mnt/123MYDRIVE123/. Both contain syncthing and syncthing_data subfolders.
Joulinar
Posts: 3340 Joined: Sat Nov 16, 2019 12:49 am
Post
by Joulinar » Thu Oct 08, 2020 12:48 pm
dietpi-userdata should be a sym link to your HDD. Did you changed anything on this? Or how did you moved user data to you HDD
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Mr.Roboto
Posts: 24 Joined: Tue Nov 05, 2019 10:28 am
Post
by Mr.Roboto » Thu Oct 08, 2020 12:50 pm
No, I didn't do anything manually. Just pointing to a new drive by using dietpi-drive-manager after launching DietPi for the first time.
Joulinar
Posts: 3340 Joined: Sat Nov 16, 2019 12:49 am
Post
by Joulinar » Thu Oct 08, 2020 12:55 pm
pls post entire output of following commands. Don't cut anything on the output.
Code: Select all
ls -la /mnt/
ls -la /mnt/123MYDRIVE123/
ls -la /mnt/123MYDRIVE123/dietpi_userdata/
ls -la /mnt/dietpi_userdata/
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Mr.Roboto
Posts: 24 Joined: Tue Nov 05, 2019 10:28 am
Post
by Mr.Roboto » Thu Oct 08, 2020 1:19 pm
Code: Select all
root@MediaPi:~# ls -la /mnt/
insgesamt 52
drwxr-xr-x 12 root root 4096 Sep 25 14:23 .
drwxr-xr-x 21 root root 4096 Jul 6 11:24 ..
drwxr-xr-x 2 root root 4096 Jun 28 10:26 10BE00F8BE00D7DC
drwxrwxrwx 1 root root 12288 Sep 12 12:12 14BEBE5BBEBE3558
drwxr-xr-x 2 root root 4096 Jul 9 11:19 16FA-2E47
drwxr-xr-x 2 root root 4096 Jun 4 19:20 7F2D-F959
drwxr-xr-x 2 root root 0 Feb 14 2019 9E5F-53C1
drwxr-xr-x 2 root root 4096 Aug 13 23:26 BackuPi
drwxr-xr-x 2 root root 4096 Jun 14 14:45 BD7D-4F18
lrwxrwxrwx 1 root root 37 Mai 18 13:09 dietpi_userdata -> /mnt/14BEBE5BBEBE3558/dietpi_userdata
drwxr-xr-x 2 root root 4096 Mai 15 23:25 E69271EA9271BF9B
drwxr-xr-x 2 root root 4096 Jan 7 2020 ftp_client
drwxr-xr-x 2 root root 4096 Jan 7 2020 nfs_client
Code: Select all
root@MediaPi:~# ls -la /mnt/14BEBE5BBEBE3558/
insgesamt 464
drwxrwxrwx 1 root root 12288 Sep 12 12:12 .
drwxr-xr-x 12 root root 4096 Sep 25 14:23 ..
drwxrwxrwx 1 root root 0 Aug 14 11:06 '$RECYCLE.BIN'
drwxrwxrwx 1 root root 4096 Okt 5 04:03 Backups
drwxrwxrwx 1 root root 4096 Mär 7 2020 Bücher
drwxrwxrwx 1 root root 4096 Mai 18 10:43 Comics
drwxr-xr-x 1 root root 4096 Okt 8 12:25 dietpi_userdata
-rwxrw-r-- 1 dietpi dietpi 4096 Sep 12 12:12 ._.DS_Store
-rwxrw-r-- 1 dietpi dietpi 10244 Sep 12 12:12 .DS_Store
drwxrwxrwx 1 root root 69632 Okt 1 21:23 Filme
drwxrwxrwx 1 root root 311296 Okt 7 14:10 Musik
drwxrwxrwx 1 root root 32768 Sep 23 2018 Roms
drwxrwxrwx 1 root root 4096 Feb 22 2016 'SRQ Backup'
drwxrwxrwx 1 root root 4096 Okt 3 10:16 Serien
drwx------ 1 root root 0 Dez 31 2016 'System Volume Information'
drwxrwxrwx 1 root root 0 Apr 18 2016 .Trashes
drwxrwxrwx 1 root root 4096 Aug 2 21:36 Videos
Code: Select all
root@MediaPi:~# ls -la /mnt/14BEBE5BBEBE3558/dietpi_userdata/
insgesamt 32
drwxr-xr-x 1 root root 4096 Okt 8 12:25 .
drwxrwxrwx 1 root root 12288 Sep 12 12:12 ..
drwxrwxr-x 1 komga dietpi 0 Mai 17 09:41 comics
drwxrwxr-x 1 dietpi dietpi 4096 Jul 6 12:08 downloads
drwxrwxr-x 1 komga dietpi 0 Mai 17 09:41 ebooks
drwx------ 1 jellyfin jellyfin 4096 Sep 1 22:10 jellyfin
drwxr-xr-x 1 komga root 4096 Okt 2 16:24 komga
drwxrwxr-x 1 dietpi dietpi 0 Sep 1 21:41 Music
drwxrwxr-x 1 dietpi dietpi 0 Mai 17 09:39 Pictures
drwx------ 1 dietpi dietpi 0 Okt 8 12:25 syncthing
drwxr-xr-x 1 dietpi dietpi 0 Aug 15 09:31 syncthing_data
drwxr-xr-x 1 ubooquity root 4096 Aug 3 18:38 ubooquity
drwxrwxr-x 1 dietpi dietpi 0 Mai 17 09:39 Video
Code: Select all
root@MediaPi:~# ls -la /mnt/dietpi_userdata/
insgesamt 32
drwxr-xr-x 1 root root 4096 Okt 8 12:25 .
drwxrwxrwx 1 root root 12288 Sep 12 12:12 ..
drwxrwxr-x 1 komga dietpi 0 Mai 17 09:41 comics
drwxrwxr-x 1 dietpi dietpi 4096 Jul 6 12:08 downloads
drwxrwxr-x 1 komga dietpi 0 Mai 17 09:41 ebooks
drwx------ 1 jellyfin jellyfin 4096 Sep 1 22:10 jellyfin
drwxr-xr-x 1 komga root 4096 Okt 2 16:24 komga
drwxrwxr-x 1 dietpi dietpi 0 Sep 1 21:41 Music
drwxrwxr-x 1 dietpi dietpi 0 Mai 17 09:39 Pictures
drwx------ 1 dietpi dietpi 0 Okt 8 12:25 syncthing
drwxr-xr-x 1 dietpi dietpi 0 Aug 15 09:31 syncthing_data
drwxr-xr-x 1 ubooquity root 4096 Aug 3 18:38 ubooquity
drwxrwxr-x 1 dietpi dietpi 0 Mai 17 09:39 Video