#StackBounty: #linux #systemd #autossh Autossh fails on startup

Bounty: 100

I am trying to make autossh set up a reverse tunnel to a server I have at home automatically with systemd. I set up a unit in /etc/systemd/system called autossh.service

It all works fine if I start the service once I am connected to the Internet. However, that is not the case on startup. It fails saying “Could not resolve hostname” since it is not connected to the Internet.

In /etc/systemd/system/autossh.service I have the line

After=network-online.target

which should in theory take care of this problem but it doesn’t. The command fails on startup (it is not online yet so it says it could not resolve the hostname) and it does not try again.

How can I solve this?


Get this bounty!!!

#StackBounty: #systemd #boot How to make network loads after (or parallel to) graphics on boot

Bounty: 50

I want to speed up my boot. I checked systemd-analyze critical-chain output:

graphical.target @13.691s
└─multi-user.target @13.691s
  └─cups-browsed.service @13.690s
    └─org.cups.cupsd.service @13.419s +269ms
      └─network.target @13.412s
        └─dhcpcd@enp6s0.service @5.850s +7.561s
          └─basic.target @5.838s
            └─sockets.target @5.838s
              └─avahi-daemon.socket @5.838s
                └─sysinit.target @5.837s
                  └─systemd-update-done.service @5.828s +8ms
                    └─ldconfig.service @5.183s +643ms
                      └─local-fs.target @5.180s
                        └─run-mount-extra.mount @3.333s +1.846s
                          └─systemd-fsck@dev-disk-byx2duuid-abd2e996x2db30bx2d4e55x2db52ex2dccd74242221a.service @1.650s +1.680s
                            └─local-fs-pre.target @1.649s
                              └─lvm2-monitor.service @216ms +1.432s
                                └─lvm2-lvmetad.service @235ms
                                  └─systemd-journald.socket @207ms
                                    └─-.mount @181ms
                                      └─systemd-journald.socket @207ms
                                        └─...

dhcpcd@enp6s0.service takes 7 seconds. But I don’t really need network on the first seconds of my boot and can wait for a few seconds after WM start. What should I change to make it possible?


Get this bounty!!!

#StackBounty: #debian #systemd #services #systemctl systemd: Can't unmask root mount (-.mount)

Bounty: 50

(Dist: Debian 10)

I have a reoccurring error message that mainly pops up when using systemctl (also when installing a package, and occasionally in a few other places that escape me),

Unit -.mount is masked.

Sometimes (depending on what command called the error message) it is more verbose, such as

Error: GDBus.Error:org.freedesktop.systemd1.UnitMasked: Unit -.mount is masked.

This error doesn’t impede installing packages or any systemd services which are enabled already (and as such are loaded at boot), but using systemctl or service to restart, start or stop a service fails. This means I have to reboot the whole server to restart a service, which can be a little annoying.

Trying to unmask the root mount with systemctl unmask -- -.mount appears to work (nothing is returned), but systemctl status -- -.mount still outputs the following after:

● -.mount - Root Mount
   Loaded: masked (Reason: Unit -.mount is masked.)
   Active: active (mounted) since Mon 2019-08-05 15:03:38 AEST; 4h 8min ago
    Where: /
     What: /dev/sde1
    Tasks: 0 (limit: 4915)
   Memory: 0B
   CGroup: /system.slice/-.mount

Any ideas? I’m don’t want to start from a fresh install for this server, so either I find a fix or just deal with having to restart if I need to reload a service.


Get this bounty!!!

#StackBounty: #debian #systemd #services #systemctl systemd: Can't unmask root mount (-.mount)

Bounty: 50

(Dist: Debian 10)

I have a reoccurring error message that mainly pops up when using systemctl (also when installing a package, and occasionally in a few other places that escape me),

Unit -.mount is masked.

Sometimes (depending on what command called the error message) it is more verbose, such as

Error: GDBus.Error:org.freedesktop.systemd1.UnitMasked: Unit -.mount is masked.

This error doesn’t impede installing packages or any systemd services which are enabled already (and as such are loaded at boot), but using systemctl or service to restart, start or stop a service fails. This means I have to reboot the whole server to restart a service, which can be a little annoying.

Trying to unmask the root mount with systemctl unmask -- -.mount appears to work (nothing is returned), but systemctl status -- -.mount still outputs the following after:

● -.mount - Root Mount
   Loaded: masked (Reason: Unit -.mount is masked.)
   Active: active (mounted) since Mon 2019-08-05 15:03:38 AEST; 4h 8min ago
    Where: /
     What: /dev/sde1
    Tasks: 0 (limit: 4915)
   Memory: 0B
   CGroup: /system.slice/-.mount

Any ideas? I’m don’t want to start from a fresh install for this server, so either I find a fix or just deal with having to restart if I need to reload a service.


Get this bounty!!!

#StackBounty: #debian #systemd #services #systemctl systemd: Can't unmask root mount (-.mount)

Bounty: 50

(Dist: Debian 10)

I have a reoccurring error message that mainly pops up when using systemctl (also when installing a package, and occasionally in a few other places that escape me),

Unit -.mount is masked.

Sometimes (depending on what command called the error message) it is more verbose, such as

Error: GDBus.Error:org.freedesktop.systemd1.UnitMasked: Unit -.mount is masked.

This error doesn’t impede installing packages or any systemd services which are enabled already (and as such are loaded at boot), but using systemctl or service to restart, start or stop a service fails. This means I have to reboot the whole server to restart a service, which can be a little annoying.

Trying to unmask the root mount with systemctl unmask -- -.mount appears to work (nothing is returned), but systemctl status -- -.mount still outputs the following after:

● -.mount - Root Mount
   Loaded: masked (Reason: Unit -.mount is masked.)
   Active: active (mounted) since Mon 2019-08-05 15:03:38 AEST; 4h 8min ago
    Where: /
     What: /dev/sde1
    Tasks: 0 (limit: 4915)
   Memory: 0B
   CGroup: /system.slice/-.mount

Any ideas? I’m don’t want to start from a fresh install for this server, so either I find a fix or just deal with having to restart if I need to reload a service.


Get this bounty!!!

#StackBounty: #debian #systemd #services #systemctl systemd: Can't unmask root mount (-.mount)

Bounty: 50

(Dist: Debian 10)

I have a reoccurring error message that mainly pops up when using systemctl (also when installing a package, and occasionally in a few other places that escape me),

Unit -.mount is masked.

Sometimes (depending on what command called the error message) it is more verbose, such as

Error: GDBus.Error:org.freedesktop.systemd1.UnitMasked: Unit -.mount is masked.

This error doesn’t impede installing packages or any systemd services which are enabled already (and as such are loaded at boot), but using systemctl or service to restart, start or stop a service fails. This means I have to reboot the whole server to restart a service, which can be a little annoying.

Trying to unmask the root mount with systemctl unmask -- -.mount appears to work (nothing is returned), but systemctl status -- -.mount still outputs the following after:

● -.mount - Root Mount
   Loaded: masked (Reason: Unit -.mount is masked.)
   Active: active (mounted) since Mon 2019-08-05 15:03:38 AEST; 4h 8min ago
    Where: /
     What: /dev/sde1
    Tasks: 0 (limit: 4915)
   Memory: 0B
   CGroup: /system.slice/-.mount

Any ideas? I’m don’t want to start from a fresh install for this server, so either I find a fix or just deal with having to restart if I need to reload a service.


Get this bounty!!!

#StackBounty: #debian #systemd #services #systemctl systemd: Can't unmask root mount (-.mount)

Bounty: 50

(Dist: Debian 10)

I have a reoccurring error message that mainly pops up when using systemctl (also when installing a package, and occasionally in a few other places that escape me),

Unit -.mount is masked.

Sometimes (depending on what command called the error message) it is more verbose, such as

Error: GDBus.Error:org.freedesktop.systemd1.UnitMasked: Unit -.mount is masked.

This error doesn’t impede installing packages or any systemd services which are enabled already (and as such are loaded at boot), but using systemctl or service to restart, start or stop a service fails. This means I have to reboot the whole server to restart a service, which can be a little annoying.

Trying to unmask the root mount with systemctl unmask -- -.mount appears to work (nothing is returned), but systemctl status -- -.mount still outputs the following after:

● -.mount - Root Mount
   Loaded: masked (Reason: Unit -.mount is masked.)
   Active: active (mounted) since Mon 2019-08-05 15:03:38 AEST; 4h 8min ago
    Where: /
     What: /dev/sde1
    Tasks: 0 (limit: 4915)
   Memory: 0B
   CGroup: /system.slice/-.mount

Any ideas? I’m don’t want to start from a fresh install for this server, so either I find a fix or just deal with having to restart if I need to reload a service.


Get this bounty!!!

#StackBounty: #debian #systemd #services #systemctl systemd: Can't unmask root mount (-.mount)

Bounty: 50

(Dist: Debian 10)

I have a reoccurring error message that mainly pops up when using systemctl (also when installing a package, and occasionally in a few other places that escape me),

Unit -.mount is masked.

Sometimes (depending on what command called the error message) it is more verbose, such as

Error: GDBus.Error:org.freedesktop.systemd1.UnitMasked: Unit -.mount is masked.

This error doesn’t impede installing packages or any systemd services which are enabled already (and as such are loaded at boot), but using systemctl or service to restart, start or stop a service fails. This means I have to reboot the whole server to restart a service, which can be a little annoying.

Trying to unmask the root mount with systemctl unmask -- -.mount appears to work (nothing is returned), but systemctl status -- -.mount still outputs the following after:

● -.mount - Root Mount
   Loaded: masked (Reason: Unit -.mount is masked.)
   Active: active (mounted) since Mon 2019-08-05 15:03:38 AEST; 4h 8min ago
    Where: /
     What: /dev/sde1
    Tasks: 0 (limit: 4915)
   Memory: 0B
   CGroup: /system.slice/-.mount

Any ideas? I’m don’t want to start from a fresh install for this server, so either I find a fix or just deal with having to restart if I need to reload a service.


Get this bounty!!!

#StackBounty: #debian #systemd #services #systemctl systemd: Can't unmask root mount (-.mount)

Bounty: 50

(Dist: Debian 10)

I have a reoccurring error message that mainly pops up when using systemctl (also when installing a package, and occasionally in a few other places that escape me),

Unit -.mount is masked.

Sometimes (depending on what command called the error message) it is more verbose, such as

Error: GDBus.Error:org.freedesktop.systemd1.UnitMasked: Unit -.mount is masked.

This error doesn’t impede installing packages or any systemd services which are enabled already (and as such are loaded at boot), but using systemctl or service to restart, start or stop a service fails. This means I have to reboot the whole server to restart a service, which can be a little annoying.

Trying to unmask the root mount with systemctl unmask -- -.mount appears to work (nothing is returned), but systemctl status -- -.mount still outputs the following after:

● -.mount - Root Mount
   Loaded: masked (Reason: Unit -.mount is masked.)
   Active: active (mounted) since Mon 2019-08-05 15:03:38 AEST; 4h 8min ago
    Where: /
     What: /dev/sde1
    Tasks: 0 (limit: 4915)
   Memory: 0B
   CGroup: /system.slice/-.mount

Any ideas? I’m don’t want to start from a fresh install for this server, so either I find a fix or just deal with having to restart if I need to reload a service.


Get this bounty!!!

#StackBounty: #debian #systemd #services #systemctl systemd: Can't unmask root mount (-.mount)

Bounty: 50

(Dist: Debian 10)

I have a reoccurring error message that mainly pops up when using systemctl (also when installing a package, and occasionally in a few other places that escape me),

Unit -.mount is masked.

Sometimes (depending on what command called the error message) it is more verbose, such as

Error: GDBus.Error:org.freedesktop.systemd1.UnitMasked: Unit -.mount is masked.

This error doesn’t impede installing packages or any systemd services which are enabled already (and as such are loaded at boot), but using systemctl or service to restart, start or stop a service fails. This means I have to reboot the whole server to restart a service, which can be a little annoying.

Trying to unmask the root mount with systemctl unmask -- -.mount appears to work (nothing is returned), but systemctl status -- -.mount still outputs the following after:

● -.mount - Root Mount
   Loaded: masked (Reason: Unit -.mount is masked.)
   Active: active (mounted) since Mon 2019-08-05 15:03:38 AEST; 4h 8min ago
    Where: /
     What: /dev/sde1
    Tasks: 0 (limit: 4915)
   Memory: 0B
   CGroup: /system.slice/-.mount

Any ideas? I’m don’t want to start from a fresh install for this server, so either I find a fix or just deal with having to restart if I need to reload a service.


Get this bounty!!!