Kodi 18 - 'cannot save setting' for backup location on usb
|
10th Mar, 2019, 07:26 AM
Post: #1
|
|||
|
|||
Kodi 18 - 'cannot save setting' for backup location on usb
RP1 2B
Kodi 18, latest on stable release I used to run daily/weekly backups on home folder and system. Place of storage was a plugged in additional USB stick. I had some issues since I converted the OS from SD to a dedicated USB-stick. Afterwards I also formatted the additional USB-stick from NTFS to exFAT, because during my trials with the 'USB-OS', sometimes the NTFS stick was recognized properly, ther other time it wasn't. The XBIAN config setting in the GUI allows me to select a folder for backup of home and system. As long as I choose a location in my /home folder, it goes well, but when I select a folder on the mounted additional USB stick, the 'do you want to save' setting results in a notification 'cannot save setting' followed by xbian-worker updated'. The backup location is always renamed back to to previously given /home directory. Since backing up on the additional USB stick always worked, do I wonder what is going on. The kodi.log doesn't say a thing, unfortunately. |
|||
16th Mar, 2019, 08:35 AM
Post: #2
|
|||
|
|||
Kodi 18 - 'cannot save setting' for backup location on usb
Any tips that I can try? Last time I updated, kodi didn't want to boot. Therefore I rather have a proper backup in place up front.
|
|||
18th Mar, 2019, 12:18 AM
Post: #3
|
|||
|
|||
RE: Kodi 18 - 'cannot save setting' for backup location on usb
Terminal xbian@avr ~ $ ps -aux | grep '[U]SER\|[k]odi.bin' USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 29981 0.0 0.2 4708 2064 ? S Feb10 0:00 sudo -u xbian -g xbian -s /usr/local/lib/kodi/kodi.bin --standalone -fs --lircdev /run/lirc/lircd xbian 29987 80.6 46.0 1003088 352924 ? Rl Feb10 41376:37 /usr/local/lib/kodi/kodi.bin --standalone -fs --lircdev /run/lirc/lircd As you can see from above, Kodi is started with the xbian user. So you have to make sure the xbian user has permissions to write to that backup location. If you change user to xbian with below one, are you able to create a file with for example the touch command on that backup location ? Code: sudo su - xbian There are only 10 types of people in the world: those who understand binary, and those who don't |
|||
19th Mar, 2019, 03:02 AM
Post: #4
|
|||
|
|||
RE: Kodi 18 - 'cannot save setting' for backup location on usb
@jakenl Sorry for the late response
I tried to reproduce your issue and the good news is, I can reproduce it . The bad news is, still not knowing what's going on there Will have to investigate later Please be patient |
|||
19th Mar, 2019, 03:55 AM
Post: #5
|
|||
|
|||
RE: Kodi 18 - 'cannot save setting' for backup location on usb
(19th Mar, 2019 03:02 AM)Nachteule Wrote: @jakenl Sorry for the late responseHey, it's free. No excuses needed. Thanks for looking into it! |
|||
19th Mar, 2019, 03:59 AM
(This post was last modified: 19th Mar, 2019 04:01 AM by Nachteule.)
Post: #6
|
|||
|
|||
RE: Kodi 18 - 'cannot save setting' for backup location on usb
@jakenl, found my issue, do you have '@' character in your destination file/path? This character is confusing the script
|
|||
19th Mar, 2019, 09:35 AM
Post: #7
|
|||
|
|||
RE: Kodi 18 - 'cannot save setting' for backup location on usb
(19th Mar, 2019 03:59 AM)Nachteule Wrote: @jakenl, found my issue, do you have '@' character in your destination file/path? This character is confusing the scriptIn my case I use the location /media/128gb_ultra/xbmc/backup/ The only special character is the underscore |
|||
19th Mar, 2019, 09:39 AM
(This post was last modified: 19th Mar, 2019 09:53 AM by Nachteule.)
Post: #8
|
|||
|
|||
RE: Kodi 18 - 'cannot save setting' for backup location on usb
(19th Mar, 2019 09:35 AM)jakenl Wrote:(19th Mar, 2019 03:59 AM)Nachteule Wrote: @jakenl, found my issue, do you have '@' character in your destination file/path? This character is confusing the scriptIn my case I use the location /media/128gb_ultra/xbmc/backup/ Hmmm, and what's the filename? Are you using the default one, which is $(hostname)_xbian_image_$(date +%F).img Anyway, you could run following command in ssh session and post output: Terminal sudo xbian-config xbiancopy imgdest '/media/128gb_ultra/xbmc/backup/$(hostname)_xbian_image_$(date +%F).img' I suppose you get -1 as output, which means no write access or folder structure does not exist |
|||
20th Mar, 2019, 04:25 AM
Post: #9
|
|||
|
|||
RE: Kodi 18 - 'cannot save setting' for backup location on usb
(19th Mar, 2019 09:39 AM)Nachteule Wrote: Hmmm, and what's the filename? Are you using the default one, which is $(hostname)_xbian_image_$(date +%F).img Yes, I do use the default given file name, no changes there No, I get a '1' as result of the command line action. |
|||
20th Mar, 2019, 04:55 AM
Post: #10
|
|||
|
|||
RE: Kodi 18 - 'cannot save setting' for backup location on usb
Arrrrghhh
Can you please post your /etc/default/xbian-snap file as next step. And BTW, there must be something in kodi's log, but you have to enable debug log You should get something like that after saving setting and running command Terminal grep xbian-config.*img /home/xbian/.kodi/temp/kodi.log Code: 2019-03-19 19:47:23.532 T:1727668976 DEBUG: XBian-config : xbian-config xbiancopy imgdest nfs://kmcubie/media/system/backup/kmxbilr2/$\(hostname\)_xbian_image_$\(date\ +%F\).img : ['1'] The ['1'] is the result code, and if you get an error, a result code 0 or -1 must occur (anything else expect 1 is interpreted as and error) |
|||
20th Mar, 2019, 07:59 AM
Post: #11
|
|||
|
|||
RE: Kodi 18 - 'cannot save setting' for backup location on usb
(20th Mar, 2019 04:55 AM)Nachteule Wrote: Arrrrghhhxbian-snap content Code: # Code: 2019-03-19 22:41:02.863 T:1503654640 DEBUG: XBian-config : xbian-config xbiancopy imgplan daily : ['1'] This is the result of the grep command after I try to alter the home backup location: Code: xbian@xbian /media/128gb_ultra/xbmc/backup $ grep xbian-config.*img /home/xbian/.kodi/temp/kodi.log |
|||
20th Mar, 2019, 08:02 AM
(This post was last modified: 20th Mar, 2019 08:02 AM by Nachteule.)
Post: #12
|
|||
|
|||
RE: Kodi 18 - 'cannot save setting' for backup location on usb
Yeah, no we got it:
Destination (in your case home) on the same device as the source is not allowed Does not make sense |
|||
20th Mar, 2019, 09:01 AM
Post: #13
|
|||
|
|||
RE: Kodi 18 - 'cannot save setting' for backup location on usb
(20th Mar, 2019 08:02 AM)Nachteule Wrote: Yeah, no we got it:Yes, I understand. When I tried to point to the /media/128gb.... direction, I got this error. When I tried my 2nd USB-drive which is connected, also on /media, I had the same. Therefore I tried a location the home partition and that was accepted. Not what I wanted ofcourse, so since that didn't thrown an error, I tried the /media locations again, but to no avail. After the error message of not able to save settings, it retuns the backup location back to the previous setting ( in my case the tryout of the thome folder). I manually updated the backup location, straight in that xbian-snap file and my home folder backup works great now. The system image location sticks as wel in the /media location, however, when I for instance change from 1 file to 2, it 'can't save settings'. I tried to run a system backup anyway, but that is cancelled within seconds with the on screen message of: Please wait while creating backup file. /dev/root /media/128gb_etcetc.img Sorry, operation failed with error #005! Can this have to do with my system running on a USB-stick, while booted from an SD-card (RPI 2b)? My /etc/fstab: Code: # Configured /etc/fstab for XBian system |
|||
20th Mar, 2019, 10:18 AM
Post: #14
|
|||
|
|||
RE: Kodi 18 - 'cannot save setting' for backup location on usb
(20th Mar, 2019 09:01 AM)jakenl Wrote: Can this have to do with my system running on a USB-stick, while booted from an SD-card (RPI 2b)? No! I have similar configuation, booting from sd-card (PINN) and root partition is on external usb disk Was reading your first post, your destination is located on exFAT partiton. Maybe this is the culprit for all the strange issues you have. Would it be possible to reformat this to an ext4 fs? |
|||
21st Mar, 2019, 06:53 AM
(This post was last modified: 21st Mar, 2019 07:39 AM by Nachteule.)
Post: #15
|
|||
|
|||
RE: Kodi 18 - 'cannot save setting' for backup location on usb
@jakenl, Update:
Testing with an exFAT partition, and I'm getting same issue. It depends on exFAT but exFAT is not the culprit. The problem is that XBian-config GUI sends wrong filename, no idea why, nothing changed for years [1] Will have to investigate what's going on, being quite confused [1] Filename for example is /media/exFAT/$\(hostname\)_xbian_image_$\(date\ +%F\).img for example, '(' and ' ' character is escaped and this is the problem |
|||
« Next Oldest | Next Newest »
|