After I ran a standard system update over the weekend, swaybar fails to load. This has had a minor impact on my productivity, but I would like to get into it for anyone elseβs sake.
Saturday evening I ran # pacman -Syyu and woke up the following morning after restarting my system to find the swaybar refuses to load. Searching topics I found one could reload sway manually using swaymsg reload however, this did not resolve the problem.
Summary
swaymsg reload
Feb 26 08:13:44 tower1 systemd[2291]: Stopping Foot terminal server mode...
ββ Subject: A stop job for unit UNIT has begun execution
ββ Defined-By: systemd
ββ Support: https://forum.manjaro.org/c/support
ββ
ββ A stop job for unit UNIT has begun execution.
ββ
ββ The job identifier is 514.
Feb 26 08:13:44 tower1 systemd[2291]: Stopped Foot terminal server mode.
ββ Subject: A stop job for unit UNIT has finished
ββ Defined-By: systemd
ββ Support: https://forum.manjaro.org/c/support
ββ
ββ A stop job for unit UNIT has finished.
ββ
ββ The job identifier is 514 and the job result is done.
Feb 26 08:13:44 tower1 systemd[2291]: Started Foot terminal server mode.
ββ Subject: A start job for unit UNIT has finished successfully
ββ Defined-By: systemd
ββ Support: https://forum.manjaro.org/c/support
ββ
ββ The job identifier is 514.
Feb 26 08:13:44 tower1 systemd[1]: Starting Locale Service...
ββ Subject: A start job for unit systemd-localed.service has begun execution
ββ Defined-By: systemd
ββ Support: https://forum.manjaro.org/c/support
ββ
ββ A start job for unit systemd-localed.service has begun execution.
ββ
ββ The job identifier is 2485.
Feb 26 08:13:45 tower1 foot[12265]: warn: wayland.c:1509: fractional scaling not available
Feb 26 08:13:45 tower1 foot[12265]: warn: wayland.c:1512: no server-side cursors available, falling back to client-side cursors
Feb 26 08:13:45 tower1 foot[12265]: wayland: fractional scaling not available
Feb 26 08:13:45 tower1 foot[12265]: wayland: no server-side cursors available, falling back to client-side cursors
A topic was published a few weeks ago describing a similar case: [link could not be added] Topic #156039. I could not determine how one would enable sway-service within the greetd config at /etc/greetd/config.toml file. Any insight on this would help.
Running journalctl -xe fails to provide any errors related to swaybar, in fact none are reported.
Whenever I manually try to start swaybar from systemd, I get the following error;
doas systemctl --user restart waybar.service
Failed to connect to bus: No medium found
Iβm not really sure how to proceed aside from completely re-installing sway-desktop and restoring from a fresh backup. This will kill an entire day for me, but Iβll probably end up doing it sooner than later. Please let me know if there is any possible way to debug for more info or restore swaybar. Iβve of course attempted re-installing sway-settings and the swaybar application, but the issue persisted.
I run the systemd command as me, this is the error I get now;
Summary
systemctl --user start waybar.service
Feb 26 21:05:08 tower1 systemd[2291]: Current sway user session is inactive.
Feb 26 21:05:08 tower1 systemd[2291]: Dependency failed for Highly customizable Wayland bar for Sway and Wlroots based compositors..
ββ Subject: A start job for unit UNIT has failed
ββ Defined-By: systemd
ββ Support: https://forum.manjaro.org/c/support
ββ
ββ A start job for unit UNIT has finished with a failure.
ββ
ββ The job identifier is 601 and the job result is dependency.
Feb 26 21:05:08 tower1 systemd[2291]: waybar.service: Job waybar.service/start failed with result 'dependency'.
Where do I find these config changes, specifically, within the update log? Please provide a link. I looked through the github issue tracker. I looked through the forums here. This is not a useful hint unless I have the exact link. Thank you.
I took a closer look⦠on my side the services are all dead, did you switch? Usually waybar is started within the sway config.
waybar.sh is defined in definitions as statusbar and it is started with the normal config.
You would see that while updating and it is recorded in /var/log/pacman.log. That is what I mean with βupdate logβ. Example:
[2024-02-22T12:46:28+0100] [ALPM] upgraded manjaro-sway-settings (16.12.1-6 -> 16.14.0-6)
[2024-02-22T12:46:28+0100] [ALPM-SCRIPTLET] ## in order to update your user configuration, run: skel
[2024-02-22T12:46:28+0100] [ALPM-SCRIPTLET] ## in order to apply your user configuration, run: swaymsg reload
Personally I have not issue, but I am on unstable branch.
Update
I did an upgrade today.
[2024-02-27T14:08:06+0100] [ALPM] upgraded manjaro-sway-settings (16.14.0-6 -> 16.15.0-7)
[2024-02-27T14:08:06+0100] [ALPM-SCRIPTLET] ## in order to update your user configuration, run: skel
[2024-02-27T14:08:06+0100] [ALPM-SCRIPTLET] ## in order to apply your user configuration, run: swaymsg reload
Just run skel
reboot (due kernel upgrade), otherwise a reload (SUPER+SHIFT+C) is not enough (it works, but the theme of waybar gets not applied), but a restart, so: logout β login.
Thanks for the clarification, I checked the update log and it matched what you had posted. I ran skel and ran swaymsg reload - the waybar does not come back.
I rebooted and the waybar did not come back.
I navigated to /usr/share/sway/scripts and ran waybar.sh manually, this is the error I get now.
waybar: error while loading shared libraries: libcava.so: cannot open shared object file: No such file or directory
I tried to install libcava with pacman, but this package no longer seems to exist.
I cannot even get waybar to shoot back which version it is, the missing dependency completely breaks it. Checking pacman - it reports I have version 0.9.24-3
I tried to install libcava and cava from the AUR. Rebooted and still stuck on this problem.
perhaps my next step in this chain is to completely purge waybar, reboot then reinstall waybar? No?
Sorry, but hard to believe. It must be a waybar binary which compiled with -Dcava=enabled. The waybar binary of archlinux/manjaro is not compiled with that parameter.
My next step was purging manjaro-sway-settings and waybar, rebooting. Confirming the sway settings had been removed. I then reinstalled them from a shell (use CTRL+ALT+F3) However this didnβt immediately resolve the issue. The dependency was still broken.
I did a little more digging as to what was causing the libcava dependency to fail, and I found this note on the official AUR page for the library β
'ninja -C build' failing
[19/19] Linking target libcava.so FAILED: libcava.so ... {standard input}: Assembler messages: {standard input}:11: Error: file not found: example_files/config {standard input}:31: Error: file not found: src/output/shaders/bar_spectrum.frag {standard input}:51: Error: file not found: src/output/shaders/northern_lights.frag {standard input}:71: Error: file not found: src/output/shaders/pass_through.vert make: *** [/tmp/ccgCo6KP.mk:2: /tmp/ccLMBjXP.ltrans0.ltrans.o] Error 1
For whatever reason, manually building it works allowing anyone to continue after this process.
This summarizes my exact issues when attempting to install libcava from AUR so I went and installed it manually from the github page. Follow the manual installation steps.
libcava will be installed into the /usr/lib/ directory, you will need to create a symlink to the root /lib directory. After this was done I reloaded sway and the manjaro themed waybar appeared.
The actual problem here likely is, that you didnβt start the βserviceβ session, which you should select from the greeter. The regular sway session starts sway, but services depending on certain targets to be reached, wonβt start.
Has somebody got an idea how to βhideβ the regular sway session? I could try and add a fallback for the regular session, but systemd is the way I want to structure more things going forward and I wouldnβt want to add fallbacks for too many things. Also waybar sometimes tried to start before sway was fully started, effectively leading to it not being started at all. So using targets, things should be more stable.
Hi,
I have the same problem from the same reason: an update.
Could you speicify how to fix? Thanks!
I lost a lot of services:
A dependency job for way-displays.service failed. See 'journalctl -xe' for details.
A dependency job for sworkstyle.service failed. See 'journalctl -xe' for details.
A dependency job for sworkstyle.service failed. See 'journalctl -xe' for details.
A dependency job for pcmanfm.service failed. See 'journalctl -xe' for details.
A dependency job for waybar.service failed. See 'journalctl -xe' for details.
A dependency job for foot-server.service failed. See 'journalctl -xe' for details.
For the swaybar, if I start swaybar in the command line:
swaybar ξ² β
00:00:00.000 [swaybar/main.c:77] No bar_id passed. Provide --bar_id or let sway start swaybar
Then I
$ swaymsg -t get_bar_config
[]
Is it normal to have this empyt list as the bar id in bar config?
Iβm also having the same problem since ~20 minutes. When I start sway I get few error messages :
A dependency job for sworkstyle.service failed. See 'journalctl -xe' for details.
A dependency job for sworkstyle.service failed. See 'journalctl -xe' for details.
A dependency job for waybar.service failed. See 'journalctl -xe' for details.
A dependency job for foot-server.service failed. See 'journalctl -xe' for details.
journalctl -xe gives
mars 15 17:11:38 tibo-precision5540 systemd[762]: Current sway user session is inactive.
mars 15 17:11:38 tibo-precision5540 systemd[762]: Dependency failed for Renames workspaces to the icons configured.
ββ Subject: A start job for unit UNIT has failed
ββ Defined-By: systemd
ββ Support: https://forum.manjaro.org/c/support
ββ
ββ A start job for unit UNIT has finished with a failure.
ββ
ββ The job identifier is 1487 and the job result is dependency.
mars 15 17:11:38 tibo-precision5540 systemd[762]: sworkstyle.service: Job sworkstyle.service/start failed with result 'dependency'.
mars 15 17:11:38 tibo-precision5540 systemd[762]: Dependency failed for Highly customizable Wayland bar for Sway and Wlroots based compositors..
ββ Subject: A start job for unit UNIT has failed
ββ Defined-By: systemd
ββ Support: https://forum.manjaro.org/c/support
ββ
ββ A start job for unit UNIT has finished with a failure.
ββ
ββ The job identifier is 1576 and the job result is dependency.
mars 15 17:11:38 tibo-precision5540 systemd[762]: waybar.service: Job waybar.service/start failed with result 'dependency'.
mars 15 17:11:38 tibo-precision5540 systemd[762]: Reloading requested from client PID 13270 ('systemctl')...
mars 15 17:11:38 tibo-precision5540 systemd[762]: Reloading...
mars 15 17:11:38 tibo-precision5540 systemd[762]: Reloading finished in 75 ms.
mars 15 17:11:38 tibo-precision5540 systemd[762]: Current sway user session is inactive.
mars 15 17:11:38 tibo-precision5540 systemd[762]: Dependency failed for Foot terminal server mode.
ββ Subject: A start job for unit UNIT has failed
ββ Defined-By: systemd
ββ Support: https://forum.manjaro.org/c/support
ββ
ββ A start job for unit UNIT has finished with a failure.
ββ
ββ The job identifier is 1620 and the job result is dependency.
mars 15 17:11:38 tibo-precision5540 systemd[762]: foot-server.service: Job foot-server.service/start failed with result 'dependency'.
Also note that thatβs not the only problem Iβm facing, sway is way longer to start, my background is not displayed (I have a black screen instead).
I tried to log via sway-user-service but it did not help.
Same here. I spent about 1 hour fixing it but no success.
At my side:
I type my password to login the Greetd, then it hangs a bit about 2 seconds, then I can see sway but no swaybar and other functionalites as Super+Enter to get shell.
As mentionned before I tried that already and it did nothing more than my other sway session. Sway takes a lot of time to load, few services are broken, no background, and many more things that I have not diagnosticated (?)
The next version will readd waybar for the non-session mode. Other than that, you bug report isnβt giving me enough to work with. I have three different machines that I continuously update. Apparently I didnβt catch something that you haveβ¦