spotifyd panics `Couldn't initialize logger` 02 February 2021, 09:43:03 I have recently tried setting up spotifyd for spotify-tui. When I go to activate the daemon via "spotifyd" cmd, it errors with this:thread 'main' panicked at 'Couldn't initialize logger: Error(Initialization, State { next_error: Some(Error(Io(Os { code: 2, kind: NotFound, message: "No such file or directory" }), State { next_error: None, backtrace: None })), backtrace: None })', src/main.rs:39:51note: run with `RUST_BACKTRACE=1` environment variable to display a backtraceI have not been able to find a solution.NOTE: This is my first week using linux, etc. I have tried doing my research before making this post.Any help is much appreciated.
Re: spotifyd panics `Couldn't initialize logger` Reply #1 – 02 February 2021, 13:03:55 spotifyd and services have already been added to Universe repo, please use those by adding to your /etc/pacman.conf the following lines:Code: [Select][universe]https://universe.artixlinux.org/$arch Last Edit: 02 February 2021, 13:14:59 by linuxer
Re: spotifyd panics `Couldn't initialize logger` Reply #2 – 03 February 2021, 07:15:30 How does this help?I simply just downloaded it from another repo?I still get this error.thread 'main' panicked at 'Couldn't initialize logger: Error(Initialization, State { next_error: Some(Error(Io(Os { code: 2, kind: NotFound, message: "No such file or directory" }), State { next_error: None, backtrace: None })), backtrace: None })', src/main.rs:38:51note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Re: spotifyd panics `Couldn't initialize logger` Reply #3 – 03 February 2021, 10:47:13 Use in bash "export RUST_BACKTRACE=1" 1 Likes
Re: spotifyd panics `Couldn't initialize logger` Reply #4 – 03 February 2021, 11:32:29 Quote from: exoticmeiz – on 03 February 2021, 07:15:30How does this help?I simply just downloaded it from another repo?I still get this error.thread 'main' panicked at 'Couldn't initialize logger: Error(Initialization, State { next_error: Some(Error(Io(Os { code: 2, kind: NotFound, message: "No such file or directory" }), State { next_error: None, backtrace: None })), backtrace: None })', src/main.rs:38:51note: run with `RUST_BACKTRACE=1` environment variable to display a backtraceInstallation from another repo has references and services for systemd, not for our init systemsSo, the case differs for daemon activation per init (below is Runit).
Re: spotifyd panics `Couldn't initialize logger` Reply #5 – 03 February 2021, 16:59:43 I cannot run spotifyd, how does trying to activate it help?I also cannot locate the service? Do I need to create it manually?Once again, I get the error:thread 'main' panicked at 'Couldn't initialize logger: Error(Initialization, State { next_error: Some(Error(Io(Os { code: 2, kind: NotFound, message: "No such file or directory" }), State { next_error: None, backtrace: None })), backtrace: None })', src/main.rs:38:51note: run with `RUST_BACKTRACE=1` environment variable to display a backtraceI don't understand how trying to activate the daemon will help, when i cannot do it via cmd?
Re: spotifyd panics `Couldn't initialize logger` Reply #6 – 03 February 2021, 17:02:18 thread 'main' panicked at 'Couldn't initialize logger: Error(Initialization, State { next_error: Some(Error(Io(Os { code: 2, kind: NotFound, message: "No such file or directory" }), State { next_error: None, backtrace: Some(stack backtrace: 0: <unknown> 1: <unknown> 2: <unknown> 3: <unknown> 4: <unknown> 5: <unknown> 6: <unknown> 7: <unknown> 8: <unknown> 9: main 10: __libc_start_main 11: <unknown>) })), backtrace: Some(stack backtrace: 0: <unknown> 1: <unknown> 2: <unknown> 3: <unknown> 4: <unknown> 5: <unknown> 6: <unknown> 7: <unknown> 8: <unknown> 9: main 10: __libc_start_main 11: <unknown>) })', src/main.rs:38:51
Re: spotifyd panics `Couldn't initialize logger` Reply #7 – 03 February 2021, 17:07:13 You have not yet described how you run spotifyd daemonThe daemon command line is shown above:Code: [Select]spotifyd -b pulseaudio --no-daemonThis is been executed as a service, if you install spotifyd and sporifyd-<init> service from universe.<init> : openrc or runit or s6After that, just enable the service as per our wiki for your init.Do so, so to have a common base.
Re: spotifyd panics `Couldn't initialize logger` Reply #8 – 03 February 2021, 17:10:21 I cannot run:spotifyd -b pulseaudio --no-daemonIt errors with the error shown above ^
Re: spotifyd panics `Couldn't initialize logger` Reply #9 – 03 February 2021, 17:15:09 Quote from: exoticmeiz – on 03 February 2021, 17:10:21I cannot run:spotifyd -b pulseaudio --no-daemonIt errors with the error shown above ^^ therefore install our packages from Universe, we did not build them for funOn runit with rsm:
Re: spotifyd panics `Couldn't initialize logger` Reply #10 – 03 February 2021, 17:17:34 I have already done this, yet the same occurs.I'm not sure what you expect to happen?
Re: spotifyd panics `Couldn't initialize logger` Reply #11 – 03 February 2021, 17:20:22 send the output of service spotifyd, is it up?
Re: spotifyd panics `Couldn't initialize logger` Reply #12 – 03 February 2021, 17:22:24 It is not in: 'sudo rsm'.But that's cause the startup, run won't work? Is it not?If the exec for run doesn't work manually.
Re: spotifyd panics `Couldn't initialize logger` Reply #13 – 03 February 2021, 17:34:09 if you use runit and you have rsm installed, use Code: [Select]sudo rsm enable spotifydsudo rsm start spotifydsudo rsm status spotifydrsm wiki
Re: spotifyd panics `Couldn't initialize logger` Reply #14 – 03 February 2021, 17:37:15 The service is down, when I try to start it, it says:~ ⬢ sudo rsm start spotifyd[rsm] Running sv command (SVDIR=/run/runit/service/ sv start spotifyd):timeout: down: spotifyd: 1s, normally up, want up[rsm] [sv start spotifyd], exit code: 1