Closed magnetophon closed 7 years ago
ls -al /nix/store/17g8x2bd9sv3c30v4ld28ldpzr7r513p-freewheeling-2017-04-03/share/fweelin/
ls -al /home/bart/.fweelin/
chmod -R 0777 ~/.fweelin
. IDK what the permissions where before, sorry.total 468
dr-xr-xr-x 2 root root 4096 Jan 1 1970 .
dr-xr-xr-x 3 root root 4096 Jan 1 1970 ..
-r--r--r-- 1 root root 3576 Jan 1 1970 basic.sf2
-r--r--r-- 1 root root 8520 Jan 1 1970 basics.xml
-r--r--r-- 1 root root 1717 Jan 1 1970 bcf2000-help.txt
-r--r--r-- 1 root root 10373 Jan 1 1970 bcf2000-synthedit.xml
-r--r--r-- 1 root root 31835 Jan 1 1970 bcf2000.xml
-r--r--r-- 1 root root 4184 Jan 1 1970 browsers.xml
-r--r--r-- 1 root root 36981 Jan 1 1970 config-help.txt
-r--r--r-- 1 root root 40964 Jan 1 1970 coreinterface.xml
-r--r--r-- 1 root root 6580 Jan 1 1970 dancemat.xml
-r--r--r-- 1 root root 1770 Jan 1 1970 fweelin.xml
-r--r--r-- 1 root root 205 Jan 1 1970 gdb-stackdump-cmds
-r--r--r-- 1 root root 4840 Jan 1 1970 graphics.xml
-r--r--r-- 1 root root 1496 Jan 1 1970 interfaces.xml
-r--r--r-- 1 root root 12470 Jan 1 1970 mercury.xml
-r--r--r-- 1 root root 3414 Jan 1 1970 midifootswitch.xml
-r--r--r-- 1 root root 10639 Jan 1 1970 midikeyboard.xml
-r--r--r-- 1 root root 25356 Jan 1 1970 patches1.xml
-r--r--r-- 1 root root 25266 Jan 1 1970 patches2.xml
-r--r--r-- 1 root root 4623 Jan 1 1970 patches3.xml
-r--r--r-- 1 root root 417 Jan 1 1970 patches-b3.xml
-r--r--r-- 1 root root 886 Jan 1 1970 patches-channels.xml
-r--r--r-- 1 root root 7261 Jan 1 1970 pckeyboard.xml
-r--r--r-- 1 root root 15466 Jan 1 1970 pcr-m1.xml
-r--r--r-- 1 root root 4927 Jan 1 1970 rme-hdsp.xml
-r--r--r-- 1 root root 11086 Jan 1 1970 synthedit.xml
-r--r--r-- 1 root root 58716 Jan 1 1970 verabd.ttf
-r--r--r-- 1 root root 65932 Jan 1 1970 vera.ttf
ls -al /home/bart/.fweelin/
total 1136
drwxrwxrwx 2 bart users 4096 Jun 16 19:35 .
drwxr-xr-x 100 bart root 12288 Jun 16 19:33 ..
-rwxrwxrwx 1 bart users 8520 Jun 16 19:35 basics.xml
-rwxrwxrwx 1 bart users 8520 Jun 16 19:30 basics.xml.backup.1
-rwxrwxrwx 1 bart users 8520 Jun 16 19:31 basics.xml.backup.2
-rwxr-xr-x 1 bart users 8520 Jun 16 19:35 basics.xml.backup.3
-rwxrwxrwx 1 bart users 10373 Jun 16 19:35 bcf2000-synthedit.xml
-rwxrwxrwx 1 bart users 10373 Jun 16 19:30 bcf2000-synthedit.xml.backup.1
-rwxrwxrwx 1 bart users 10373 Jun 16 19:31 bcf2000-synthedit.xml.backup.2
-rwxr-xr-x 1 bart users 10373 Jun 16 19:35 bcf2000-synthedit.xml.backup.3
-rwxrwxrwx 1 bart users 31835 Jun 16 19:35 bcf2000.xml
-rwxrwxrwx 1 bart users 31835 Jun 16 19:30 bcf2000.xml.backup.1
-rwxrwxrwx 1 bart users 31835 Jun 16 19:31 bcf2000.xml.backup.2
-rwxr-xr-x 1 bart users 31835 Jun 16 19:35 bcf2000.xml.backup.3
-rwxrwxrwx 1 bart users 4184 Jun 16 19:35 browsers.xml
-rwxrwxrwx 1 bart users 4184 Jun 16 19:30 browsers.xml.backup.1
-rwxrwxrwx 1 bart users 4184 Jun 16 19:31 browsers.xml.backup.2
-rwxr-xr-x 1 bart users 4184 Jun 16 19:35 browsers.xml.backup.3
-rwxrwxrwx 1 bart users 40964 Jun 16 19:35 coreinterface.xml
-rwxrwxrwx 1 bart users 40964 Jun 16 19:30 coreinterface.xml.backup.1
-rwxrwxrwx 1 bart users 40964 Jun 16 19:31 coreinterface.xml.backup.2
-rwxr-xr-x 1 bart users 40964 Jun 16 19:35 coreinterface.xml.backup.3
-rwxrwxrwx 1 bart users 6580 Jun 16 19:35 dancemat.xml
-rwxrwxrwx 1 bart users 6580 Jun 16 19:30 dancemat.xml.backup.1
-rwxrwxrwx 1 bart users 6580 Jun 16 19:31 dancemat.xml.backup.2
-rwxr-xr-x 1 bart users 6580 Jun 16 19:35 dancemat.xml.backup.3
-rwxrwxrwx 1 bart users 1770 Jun 16 19:35 fweelin.xml
-rwxrwxrwx 1 bart users 1770 Jun 16 19:30 fweelin.xml.backup.1
-rwxrwxrwx 1 bart users 1770 Jun 16 19:31 fweelin.xml.backup.2
-rwxr-xr-x 1 bart users 1770 Jun 16 19:35 fweelin.xml.backup.3
-rwxrwxrwx 1 bart users 4840 Jun 16 19:35 graphics.xml
-rwxrwxrwx 1 bart users 4840 Jun 16 19:30 graphics.xml.backup.1
-rwxrwxrwx 1 bart users 4840 Jun 16 19:31 graphics.xml.backup.2
-rwxr-xr-x 1 bart users 4840 Jun 16 19:35 graphics.xml.backup.3
-rwxrwxrwx 1 bart users 1496 Jun 16 19:35 interfaces.xml
-rwxrwxrwx 1 bart users 1496 Jun 16 19:30 interfaces.xml.backup.1
-rwxrwxrwx 1 bart users 1496 Jun 16 19:31 interfaces.xml.backup.2
-rwxr-xr-x 1 bart users 1496 Jun 16 19:35 interfaces.xml.backup.3
-rwxrwxrwx 1 bart users 12470 Jun 16 19:35 mercury.xml
-rwxrwxrwx 1 bart users 12470 Jun 16 19:30 mercury.xml.backup.1
-rwxrwxrwx 1 bart users 12470 Jun 16 19:31 mercury.xml.backup.2
-rwxr-xr-x 1 bart users 12470 Jun 16 19:35 mercury.xml.backup.3
-rwxrwxrwx 1 bart users 3414 Jun 16 19:35 midifootswitch.xml
-rwxrwxrwx 1 bart users 3414 Jun 16 19:30 midifootswitch.xml.backup.1
-rwxrwxrwx 1 bart users 3414 Jun 16 19:31 midifootswitch.xml.backup.2
-rwxr-xr-x 1 bart users 3414 Jun 16 19:35 midifootswitch.xml.backup.3
-rwxrwxrwx 1 bart users 10639 Jun 16 19:35 midikeyboard.xml
-rwxrwxrwx 1 bart users 10639 Jun 16 19:30 midikeyboard.xml.backup.1
-rwxrwxrwx 1 bart users 10639 Jun 16 19:31 midikeyboard.xml.backup.2
-rwxr-xr-x 1 bart users 10639 Jun 16 19:35 midikeyboard.xml.backup.3
-rwxrwxrwx 1 bart users 25356 Jun 16 19:35 patches1.xml
-rwxrwxrwx 1 bart users 25356 Jun 16 19:30 patches1.xml.backup.1
-rwxrwxrwx 1 bart users 25356 Jun 16 19:31 patches1.xml.backup.2
-rwxr-xr-x 1 bart users 25356 Jun 16 19:35 patches1.xml.backup.3
-rwxrwxrwx 1 bart users 25266 Jun 16 19:35 patches2.xml
-rwxrwxrwx 1 bart users 25266 Jun 16 19:30 patches2.xml.backup.1
-rwxrwxrwx 1 bart users 25266 Jun 16 19:31 patches2.xml.backup.2
-rwxr-xr-x 1 bart users 25266 Jun 16 19:35 patches2.xml.backup.3
-rwxrwxrwx 1 bart users 4623 Jun 16 19:35 patches3.xml
-rwxrwxrwx 1 bart users 4623 Jun 16 19:30 patches3.xml.backup.1
-rwxrwxrwx 1 bart users 4623 Jun 16 19:31 patches3.xml.backup.2
-rwxr-xr-x 1 bart users 4623 Jun 16 19:35 patches3.xml.backup.3
-rwxrwxrwx 1 bart users 417 Jun 16 19:35 patches-b3.xml
-rwxrwxrwx 1 bart users 417 Jun 16 19:30 patches-b3.xml.backup.1
-rwxrwxrwx 1 bart users 417 Jun 16 19:31 patches-b3.xml.backup.2
-rwxr-xr-x 1 bart users 417 Jun 16 19:35 patches-b3.xml.backup.3
-rwxrwxrwx 1 bart users 886 Jun 16 19:35 patches-channels.xml
-rwxrwxrwx 1 bart users 886 Jun 16 19:30 patches-channels.xml.backup.1
-rwxrwxrwx 1 bart users 886 Jun 16 19:31 patches-channels.xml.backup.2
-rwxr-xr-x 1 bart users 886 Jun 16 19:35 patches-channels.xml.backup.3
-rwxrwxrwx 1 bart users 7261 Jun 16 19:35 pckeyboard.xml
-rwxrwxrwx 1 bart users 7261 Jun 16 19:30 pckeyboard.xml.backup.1
-rwxrwxrwx 1 bart users 7261 Jun 16 19:31 pckeyboard.xml.backup.2
-rwxr-xr-x 1 bart users 7261 Jun 16 19:35 pckeyboard.xml.backup.3
-rwxrwxrwx 1 bart users 15466 Jun 16 19:35 pcr-m1.xml
-rwxrwxrwx 1 bart users 15466 Jun 16 19:30 pcr-m1.xml.backup.1
-rwxrwxrwx 1 bart users 15466 Jun 16 19:31 pcr-m1.xml.backup.2
-rwxr-xr-x 1 bart users 15466 Jun 16 19:35 pcr-m1.xml.backup.3
-rwxrwxrwx 1 bart users 4927 Jun 16 19:35 rme-hdsp.xml
-rwxrwxrwx 1 bart users 4927 Jun 16 19:30 rme-hdsp.xml.backup.1
-rwxrwxrwx 1 bart users 4927 Jun 16 19:31 rme-hdsp.xml.backup.2
-rwxr-xr-x 1 bart users 4927 Jun 16 19:35 rme-hdsp.xml.backup.3
-rwxrwxrwx 1 bart users 11086 Jun 16 19:35 synthedit.xml
-rwxrwxrwx 1 bart users 11086 Jun 16 19:30 synthedit.xml.backup.1
-rwxrwxrwx 1 bart users 11086 Jun 16 19:31 synthedit.xml.backup.2
-rwxr-xr-x 1 bart users 11086 Jun 16 19:35 synthedit.xml.backup.3
the error from cp kinda says it all
cp: cannot create regular file '/home/bart/.fweelin/basics.xml': Permission denied
the program gets $HOME from the user's environment so that strongly indicates that the user running the program was 'bart' and bart did not have permissions in bart's ~/.fweelin dir - if you had freewheeling installed before the most likely thing that happened was that the permissions on the orphaned ~/.fweelin dir got changed somehow at some time - if you can make it print "cp: cannot create regular file '/home/bart/.fweelin/basics.xml': Permission denied" again i would be interested to see what the output of ls -al /home/bart/.fweelin/
looks like immediately afterward
i would not be too concerned about this unless it happens again - it seems like a fluke but it could be made more robust if need be - if you would like to experiment, you can delete that entire directory at any time if you like and run the program again - it is harmless unless you made customizations in there - it will just reset everything
rm -rf /home/bart/.fweelin/
perhaps also uninstall the package and make sure the nix buld dir gets deleted too (to force it to rebuild) then try to reproduce the issue - we can always re-open the issue if you can make it happen deterministically
*** UNINSTALL THE PACKAGE PROPERLY BEFORE RUNNING THE NEXT COMMAND ***
rm -rf /nix/store/17g8x2bd9sv3c30v4ld28ldpzr7r513p-freewheeling-2017-04-03/
btw - the defualt perms for that dir are 700 and all files under it are 644 on my system - you should be able to set it like that with no trouble
chmod 700 /home/bart/.fweelin/
chmod 644 /home/bart/.fweelin/*
OK, thanks.
oh also i was going to ask - do you plan to submit your nix recipe to nix? i see that they have been packaging it for years a very old version
in any case i would be happy to accept a PR with the nix recipe in the ./packaging dir once it works well
Yeah, I wanted to upstream it, but atm it barely runs.
After #9 happened, I got:
And similar lines for the other config files. Ending with:
These didn't go away until I manually changed the permissions.