GoXLR-on-Linux / goxlr-utility

An unofficial GoXLR App replacement for Linux, Windows and MacOS
MIT License
635 stars 36 forks source link

Error: Unable to create log directory: Permission denied (os error 13) #133

Closed Noxmore closed 7 months ago

Noxmore commented 7 months ago

I'm on Manjaro, I've tried installing goxlr-utility via the AUR (pamac with && without sudo), and extracting files directly from the RPM release, and every i try to run the .desktop file, goxlr-launcher, or goxlr-daemon, i get the error in the title, and nothing else. Strangely, goxlr-client seems to work, but that won't be much use anyway without the daemon.

I'm not sure where it's trying to create the log directory, i had a quick peek in the code and couldn't find anything. I have had problems with rust trying to make .rustup and .cargo in root, which i fixed by installing it without running pamac with sudo, but that had no effect here, help is much appreciated!

FrostyCoolSlug commented 7 months ago

If you're installing from AUR, on first run it should attempt to create a file in ~/.config/goxlr-utility/settings.json, and the other directories in ~/.local/share/goxlr-utility (icons logs mic-profiles presets profiles samples).

If you run goxlr-daemon from the command line, what output do you see?

[EDIT] If you attempted to run the util as root, it should have failed, but if it had created local directories, there may be some ownership issues (hence error 13). The daemon should always (and only) be run as the current active user, you may need to chown / chmod any created directories to ensure they're running correctly.

When installing from AUR, once install is complete you should simply launch the 'GoXLR Utility' from your DEs application launcher, you don't need to run the .desktop files directly.

Noxmore commented 7 months ago

I was running pamac as root, not the program

It matters not though, as it turns out logs_directory in settings.json was referencing the user of my previous Linux install! (I copied over most of my home directory to avoid re-configuring everything)

Thank you much for your help, and with that, i pronounce this issue CLOSED