aaronwmorris / indi-allsky

Software to manage a Linux-based All Sky Camera.
GNU General Public License v3.0
220 stars 35 forks source link

Web only setup failing on DBUS_SESSION_BUS_ADDRESS test #1416

Closed gordtulloch closed 1 day ago

gordtulloch commented 1 month ago

I updated the remote install on my Ubuntu 22.04 server (no GUI) via a "git pull origin main" but forgot that there's a web only setup, so I ran setup.sh. This failed on if [ -z "$DBUS_SESSION_BUS_ADDRESS" ]; then so I went Doh! and ran the web_only_setup.sh, but it fails on the same error. I tried installing the dbus-x11 package even tho this is a headless server but the error remained the same. I tried commenting out the test to see what would happen and got the following:

Enabling services Failed to connect to bus: $DBUS_SESSION_BUS_ADDRESS and $XDG_RUNTIME_DIR not defined (consider using --machine=@.host --user to connect to bus of other user)

Not sure where to go here, my remote server is still operating but I need to update it. Not urgent, but any advice would be appreciated thanks!

aaronwmorris commented 1 month ago

Are you running your session through screen, tmux, or byobu? I had someone using byobu and it caused the dbus/systemd environment variables to not be passed to the session.

gordtulloch commented 1 month ago

Nope just putty

aaronwmorris commented 1 month ago

The only package that should be necessary is dbus-user-session. Did you reboot your VPS after receiving this error?

aaronwmorris commented 1 month ago

@gordtulloch Did you get this worked out?