vincelwt / harmony

:musical_note: Sleek music player for Spotify, SoundCloud, Google Play Music and your local files
http://getharmony.xyz
859 stars 58 forks source link

harmony.json is not created #187

Closed yochananmarqos closed 7 years ago

yochananmarqos commented 7 years ago

The harmony.json file mentioned below does not exist.

~ $ harmony
A JavaScript error occurred in the main process
Uncaught Exception:
Error: EACCES: permission denied, open '/home/yochanan/.config/configstore/harmony.json.1253428018'
You don't have access to this file.

    at Object.fs.openSync (fs.js:584:18)
    at Object.module.(anonymous function) [as openSync] (ELECTRON_ASAR.js:173:20)
    at Function.writeFileSync [as sync] (/opt/Harmony/resources/app.asar/node_modules/write-file-atomic/index.js:114:17)
    at Configstore.set (/opt/Harmony/resources/app.asar/node_modules/configstore/index.js:62:21)
    at Configstore (/opt/Harmony/resources/app.asar/node_modules/configstore/index.js:27:11)
    at Object.<anonymous> (/opt/Harmony/resources/app.asar/main.js:9:14)
    at Object.<anonymous> (/opt/Harmony/resources/app.asar/main.js:384:3)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)

harmony-0.7.2-x64 (deb) Linux Mint 18.2

vincelwt commented 7 years ago

Seems like Harmony doesn't have sufficient rights to open/create this file, do you have some special permissions on your home folder or .config folder ? You can try resetting the permissions of the .config folder and every subfolders.

yochananmarqos commented 7 years ago

I just did a fresh install of Mint today, so I don't see how permissions would be screwed up.

~ $ ls -la /home/yochanan/.config/Harmony
total 8
drwx------  2 yochanan yochanan 4096 Sep 16 12:21 .
drwxr-xr-x 23 yochanan yochanan 4096 Sep 16 12:21 ..
~ $ ls -la /home/yochanan/.config/configstore
total 12
drwxr-xr-x  2 root     root     4096 Sep 16 09:10 .
drwxr-xr-x 23 yochanan yochanan 4096 Sep 16 12:21 ..
-rw-------  1 root     root       55 Sep 16 09:10 update-notifier-npm.json
vincelwt commented 7 years ago

Seems more like an issue with configstore instead of Harmony. According to this issue you can try:

sudo chown -R $USER:$GROUP ~/.npm
sudo chown -R $USER:$GROUP ~/.config
yochananmarqos commented 7 years ago

That worked, thank you!

vincelwt commented 7 years ago

Great!