Mpd starts before NAS is mounted.

hi, i am having a bit of an issue.
I have a raspberry pi set up with mpd. On this r-pi i mount my NAS via sshfs on boot.
Problem now is, that my mpd startup fails, because the mountpoint is not ready yet.
the mount works fine:
Jan 01 01:00:05 alarmpi systemd[1]: Starting home-carnager-Music.automount.
Jan 01 01:00:05 alarmpi systemd[1]: Set up automount home-carnager-Music.automount.
but mpd does not:
Jun 01 12:57:04 alarmpi mpd[316]: Failed to stat directory "/home/carnager/Music/Rips": No such file or directory
Jun 01 13:20:42 alarmpi systemd[1]: mpd.service: main process exited, code=dumped, status=6/ABRT
I tried to put
After=home-carnager-Music.automount
to my mpd.service file, but it does not help.
Any ideas?

falconindy wrote:Because you need to order it after the mount, not the automount.
If by this you mean
After=home-carnager-Music.mount
it doesnt work.

Similar Messages

  • Systemd services starting before network is up

    I have a couple services that need the network to be up before they start. I have After=network.target in my .service unit. I have also tried After=netctl@ovh_net_eth0.service both did not work. Services error because no network when they are started. I have tried Google and searching the forums here and I am stumped.
    Services
    systemctl --type=service
    UNIT LOAD ACTIVE SUB DESCRIPTION
    cronie.service loaded active running Periodic Command Scheduler
    dbus.service loaded active running D-Bus System Message Bus
    [email protected] loaded active running Getty on tty1
    kmod-static-nodes.service loaded active exited Create list of required static device nodes for the current kernel
    netctl@ovh_net_eth0.service loaded active exited A basic static ethernet connection
    sshd.service loaded active running OpenSSH Daemon
    systemd-backlight@backlight:acpi_video0.service loaded active exited Load/Save Screen Backlight Brightness of backlight:acpi_video0
    systemd-journal-flush.service loaded active exited Flush Journal to Persistent Storage
    systemd-journald.service loaded active running Journal Service
    systemd-logind.service loaded active running Login Service
    systemd-modules-load.service loaded active exited Load Kernel Modules
    systemd-random-seed.service loaded active exited Load/Save Random Seed
    systemd-remount-fs.service loaded active exited Remount Root and Kernel File Systems
    systemd-sysctl.service loaded active exited Apply Kernel Variables
    systemd-timesyncd.service loaded active running Network Time Synchronization
    systemd-tmpfiles-setup-dev.service loaded active exited Create Static Device Nodes in /dev
    systemd-tmpfiles-setup.service loaded active exited Create Volatile Files and Directories
    systemd-udev-trigger.service loaded active exited udev Coldplug all Devices
    systemd-udevd.service loaded active running udev Kernel Device Manager
    systemd-update-utmp.service loaded active exited Update UTMP about System Boot/Shutdown
    systemd-user-sessions.service loaded active exited Permit User Sessions
    systemd-vconsole-setup.service loaded active exited Setup Virtual Console
    [email protected] loaded active running User Manager for UID 1000
    UNIT LOAD ACTIVE SUB DESCRIPTION
    proc-sys-fs-binfmt_misc.automount loaded active waiting Arbitrary Executable File Formats File System Automount Point
    sys-devices-pci0000:00-0000:00:02.0-backlight-acpi_video0.device loaded active plugged /sys/devices/pci0000:00/0000:00:02.0/backlight/acpi_video0
    sys-devices-pci0000:00-0000:00:1c.0-0000:01:00.0-net-eth0.device loaded active plugged 82574L Gigabit Network Connection
    sys-devices-pci0000:00-0000:00:1f.2-ata1-host0-target0:0:0-0:0:0:0-block-sda-sda1.device loaded active plugged INTEL_SSDSA2CT040G3 1
    sys-devices-pci0000:00-0000:00:1f.2-ata1-host0-target0:0:0-0:0:0:0-block-sda-sda2.device loaded active plugged INTEL_SSDSA2CT040G3 swap-sda2
    sys-devices-pci0000:00-0000:00:1f.2-ata1-host0-target0:0:0-0:0:0:0-block-sda.device loaded active plugged INTEL_SSDSA2CT040G3
    sys-devices-platform-serial8250-tty-ttyS2.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS2
    sys-devices-platform-serial8250-tty-ttyS3.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS3
    sys-devices-pnp0-00:08-tty-ttyS1.device loaded active plugged /sys/devices/pnp0/00:08/tty/ttyS1
    sys-devices-pnp0-00:09-tty-ttyS0.device loaded active plugged /sys/devices/pnp0/00:09/tty/ttyS0
    sys-module-configfs.device loaded active plugged /sys/module/configfs
    sys-subsystem-net-devices-eth0.device loaded active plugged 82574L Gigabit Network Connection
    -.mount loaded active mounted /
    dev-hugepages.mount loaded active mounted Huge Pages File System
    dev-mqueue.mount loaded active mounted POSIX Message Queue File System
    run-user-1000.mount loaded active mounted /run/user/1000
    sys-kernel-config.mount loaded active mounted Configuration File System
    sys-kernel-debug.mount loaded active mounted Debug File System
    tmp.mount loaded active mounted Temporary Directory
    systemd-ask-password-console.path loaded active waiting Dispatch Password Requests to Console Directory Watch
    systemd-ask-password-wall.path loaded active waiting Forward Password Requests to Wall Directory Watch
    session-c2.scope loaded active running Session c2 of user concopa
    cronie.service loaded active running Periodic Command Scheduler
    dbus.service loaded active running D-Bus System Message Bus
    [email protected] loaded active running Getty on tty1
    kmod-static-nodes.service loaded active exited Create list of required static device nodes for the current kern
    netctl@ovh_net_eth0.service loaded active exited A basic static ethernet connection
    sshd.service loaded active running OpenSSH Daemon
    systemd-backlight@backlight:acpi_video0.service loaded active exited Load/Save Screen Backlight Brightness of backlight:acpi_video0
    systemd-journal-flush.service loaded active exited Flush Journal to Persistent Storage
    systemd-journald.service loaded active running Journal Service
    systemd-logind.service loaded active running Login Service
    systemd-modules-load.service loaded active exited Load Kernel Modules
    systemd-random-seed.service loaded active exited Load/Save Random Seed
    systemd-remount-fs.service loaded active exited Remount Root and Kernel File Systems
    systemd-sysctl.service loaded active exited Apply Kernel Variables
    systemd-timesyncd.service loaded active running Network Time Synchronization
    systemd-tmpfiles-setup-dev.service loaded active exited Create Static Device Nodes in /dev
    systemd-tmpfiles-setup.service loaded active exited Create Volatile Files and Directories
    systemd-udev-trigger.service loaded active exited udev Coldplug all Devices
    systemd-udevd.service loaded active running udev Kernel Device Manager
    systemd-update-utmp.service loaded active exited Update UTMP about System Boot/Shutdown
    systemd-user-sessions.service loaded active exited Permit User Sessions
    systemd-vconsole-setup.service loaded active exited Setup Virtual Console
    [email protected] loaded active running User Manager for UID 1000
    -.slice loaded active active Root Slice
    system-getty.slice loaded active active system-getty.slice
    system-netctl.slice loaded active active system-netctl.slice

    I tried adding "Requires=" still not working as planned. OVH dedicated box that had networking installed out of the box. I wonder if I need to do some tweaking there.  I just looked at boot log and services are starting before the network is up. Removed some lines to make it more readable. Dec 29 15:35:52 systemd[254]: Starting autodl screen irssi... is what I need to wait for network to be up before starting.
    Dec 29 15:35:52 systemd[254]: pam_unix(systemd-user:session): session opened for user by (uid=0)
    Dec 29 15:35:52 systemd[254]: Starting Paths.
    Dec 29 15:35:52 systemd[254]: Reached target Paths.
    Dec 29 15:35:52 systemd[254]: Starting Timers.
    Dec 29 15:35:52 systemd[254]: Reached target Timers.
    Dec 29 15:35:52 systemd[254]: Starting -.slice.
    Dec 29 15:35:52 systemd[254]: Created slice -.slice.
    Dec 29 15:35:52 systemd[254]: Starting Sockets.
    Dec 29 15:35:52 systemd[254]: Reached target Sockets.
    Dec 29 15:35:52 systemd[254]: Starting Basic System.
    Dec 29 15:35:52 systemd[254]: Reached target Basic System.
    Dec 29 15:35:52 systemd[254]: Starting autodl screen irssi...
    Dec 29 15:35:52 systemd[254]: Started autodl screen irssi.
    Dec 29 15:35:52 systemd[254]: Starting Default.
    Dec 29 15:35:52 systemd[254]: Reached target Default.
    Dec 29 15:35:52 systemd[254]: Startup finished in 156ms.
    Dec 29 15:35:57 network[294]: Starting network profile 'ovh_net_eth0'...
    Dec 29 15:35:57 kernel: IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
    Dec 29 15:35:58 kernel: e1000e: eth0 NIC Link is Up 100 Mbps Full Duplex, Flow Control: None
    Dec 29 15:35:58 kernel: e1000e 0000:01:00.0 eth0: 10/100 speed: disabling TSO
    Dec 29 15:35:58 kernel: IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
    Dec 29 15:36:00 network[294]: Started network profile 'ovh_net_eth0'

  • MPD starting and stopping at shutdown

    I have added mpd to my gnome3 startup programs by running gnome-session-properties and adding mpd ~/.mpd/mpd.conf but no dice, I have to run the command myself before I can play any music.
    My other issue is it causes my boot-down process to stall. I believe this is because my music in on a NAS. Switching to Alt+F8 on shut down I see it fails to unmount network file-systems because they are busy, then it stops the network, then when it gets to unmounting file-systems it just hangs at 'BUSY'.
    This is avoided if I remember to issue mpd --kill before a reboot or shutdown.
    I was thinking, looking at the other startup programs, maybe MPD will work if I point to the binary explicitly; i.e.  /usr/bin/mpd.

    Use netcfg or wicd and create a pre_down hook (https://wiki.archlinux.org/index.php/Ne … _up.2Fdown)
    Example for netcfg:
    /etc/network.d/interfaces/eth0
    PRE_DOWN="rc.d stop mpd; umount yournetworksharehere"
    You could also place those commands somewhere at the top of your /etc/rc.shutdown or /etc/rc.local.shutdown.
    You just have to find a place where the commands get executed before the filesystems are unmounted. I'd put it in rc.shutdown somewhere before the
    "stat_busy 'Unmounting Filesystems'" part.
    Regards,
    demian
    Last edited by demian (2011-05-26 06:59:35)

  • SBL (start before logon) : Can't get it to work

    I'm trying to get Start before logon working on a Cisco 1941. I've got it setup so it downloads the correct profile but when I test with a PC it doesn't work. It shows the server entry but doesn't even ask for a username and password and thus won't connect.
    I've gone through the Cisco documentation and I'm sure I've done everything right but obviously not. Could someone check my config below and offer advice:
    The only things I've changed for security is the IP details
    Cisco 1941:
    webvpn gateway gateway_1
    ip address 8.8.8.8 port 443
    http-redirect port 80
    ssl trustpoint TP-self-signed-2717103300
    inservice
    webvpn install svc flash0:/webvpn/sslclient-win-1.1.4.176.pkg sequence 1
    webvpn install svc flash0:/webvpn/anyconnect-win-3.0.10055-k9.pkg sequence 2
    webvpn import svc profile newprofile flash:/profile1.xml
    webvpn context customer123
    secondary-color white
    title-color #CCCC66
    text-color black
    ssl authenticate verify all
    policy group policy_1
       functions svc-enabled
       svc address-pool "new" netmask 255.255.255.248
       svc module vpngina
       svc profile newprofile
       svc split dns "10.0.0.253"
       svc split include 10.10.10.0 255.255.255.248
       svc split include 10.0.0.0 255.255.255.0
       svc wins-server primary 10.0.0.253
    default-group-policy policy_1
    aaa authentication list ssl_vpn_xauth_ml_1
    gateway gateway_1
    max-users 6
    inservice
    end
    The actual profile which get's downloaded:
    <?xml version="1.0" encoding="UTF-8"?>
    <AnyConnectProfile xmlns="http://schemas.xmlsoap.org/encoding/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://schemas.xmlsoap.org/encoding/
    AnyConnectProfile.xsd">
    <ClientInitialization>
    <UseStartBeforeLogon UserControllable="false">true</UseStartBeforeLogon>
    </ClientInitialization>
    <ServerList>
      <HostEntry>
        <HostName>Cisco1941</HostName>
        <HostAddress>8.8.8.8</HostAddress>
      </HostEntry> </ServerList>
    </AnyConnectProfile>
    Thanks for any help.
    Andrew

    No ideas?
    It all looks okay to me according to the Cisco configuration guides anyway. SBL still doesn't work however

  • Having problems with Facebook on my ipad2. Updated operating system. Problem started before that and continues. Can't click on like or make comments. Sent email to Facebook. Their response was that they don't answer individual emails but read them. Sigh!

    Stated above, I have issues with Facebook and my iPad 2. I have updated the operating system, but the problem started before that. Can't click on like or enter comments. Problem started about a week ago. Sent email to Facebook and they responded that they don't answer individual emails but read them. Lots help that was.

    Facebook is basically broken, at least as far as it pertains to mobile browsers. THey changed something in their coding and now mobile browsers don't work with facebook. ANd their app, well their app has been less than stellar for a long time.
    Unfortunately, it's up to facebook to fix things, not apple. All you can do is find work arounds. Look for third party apps, I have one called Facely HD which seems to work reasonably well (even though it does seem to not see all posts). There may be others that work better. You can also simply not access facebook on your mobile until they fix it.
    It's all on them and users can only be patient or find other ways to work around it.

  • Downloading is started before pressing save button on save as dialog.

    I select "Always ask me where to save files" radio button in Options menu. And when I download something, I notice that transferring is started before I press save button on "Save as" dialog. Is there any way to prevent the pre-caching before pressing save button?
    Thanks

    Sorry, not that I have ever seen mentioned in this forum. Firefox has always done that when "Ask me ...." is selected in Options.
    Are you having any particular problems with downloads being started before you select a specific location for the "final resting place" for the download?

  • Swf movie starts before preloader is finished

    Hi,
    I tried to implement a simple preloader for an existing swf movie. I've created a new flash document and added the Loader as well as a ProgressBar component. In the action script of the key frame 1, I implemented the following:
    import mx.controls.ProgressBar;
    loader.contentPath = "myMovie.swf";
    pBar.setStyle("themeColor", "0xF49417");
    pBar.setStyle("color","0x3D566F");
    pBar.labelPlacement = "bottom";
    pBar.label = "LOADING %3%%"
    pBar.scaleY = 150;
    pBar.conversion = 1024;
    pBar.source = loader;
    pBar.mode = "polled";
    loader.load();
    The problem is now that the movie starts playing (i.e. its sound) before the progress bar is completely finished. This usually happens around 80%. How can I avoid that the movie starts before the progress bar reaches 100%?
    Thanks,
    Patrik

    Thanks for your replay! I added an empty keyframe to the first scene of the existing flash movie with a stop() action in it. Additionally, I modified the preloader with an action listener that is called in case the movie is loaded completely. The action script of the preloader does now look like follows (without sytle settings):
    import mx.controls.ProgressBar;
    loader.contentPath = "myMovie.swf";
    var pbListener:Object = new Object();
    pbListener.complete = function(evt_obj:Object) {
    trace("movie loaded");
    play();
    pBar.addEventListener("complete", pbListener);
    pBar.source = loader;
    pBar.mode = "polled";
    loader.load();
    It seems now that this play() does not reference to the swf movie (myMovie.swf) with the stop in the first frame since the movie does not start playing after its loaded. How do I reference the play action to the loaded movie?
    Thanks,
    Patrik

  • I am having trouble with yahoo mail, very slow to send never used to be this way started before iOs5 update

    I am having trouble with mail, yahoo has started to have a problem sending, slow or not at all started before latest update, help

    I noticed this at one point and what I did, which worked, was to delete the mailbox from my iPad, then reinstall it.  Give it a try and see if it helps you as well.

  • Cisco AnyConnect Secure Mobility Client 3.0 Start Before Logon PLAP

    This documentation says enabling this "FORCES" this logon method.
    http://www.cisco.com/en/US/docs/security/vpn_client/anyconnect/anyconnect30/administration/guide/ac03vpn.html#wp1134595
    If it is forced, that means the user can only access VPN from a domain-joined computer and cannot connect to VPN from another PC for the pupose of connecting to remote desktop or non-public OWA webmail etc..
    That will not be acceptable.  Is there a way to make Start Before Logon and option so users don't have to use it, but is available as an option when needed?  Some users only need this in case their domain account password expires or is reset wheile they are on the road and would not want to use this method every day or else need to use a personal computer not joined to the domain to access VPN.

    I know this is an old threat but just in case. You can have vpn gina module (SBL) installed and not use it. The only option that will force you to connect and you cannot control is Always-On. But SBL is optional. 
    JP

  • CMS tries to start before Oracle service - therefore cannot contact its CMS database

    Post Author: patrickcoote
    CA Forum: Deployment
    HelloI have a windows XP sp 2 machineOracle 9i installedCrystal Server XI Rel 2 (evaluation copy)My problem is that the Central Management Server (CMS) is starting up before the OracleService that the CMS database is installed on.  Therefore CMS cannot start automatically and any of the jobservers etc cannot register with CMS.In event viewer i get this:"The root server reported an error Initialization Failure. (Reason: Unable to connect to the database using the provided connection string. Reason: ORA-01033: ORACLE initialization or shutdown in progress)."When the PC boots up fully I can go into Central Configuration Manager and start CMS manually and access all of its features with no problems.I looked at this sitehttp://www.microsoft.com/technet/sysinternals/SystemInformation/LoadOrder.mspxThe program here lists processes in their startup order and I can see from there that CMS and the other Crystal services are started before the Oracle services, for example
    BOBJCentralMS starts before OracleServiceBW (alphabetical order)In CCM, on the Dependancy tab for CMS (and all other CR servers) I have added :OracleServiceBWOracleMTSRecoveryServiceOracleOraHome92TNSListenerOracleOraHome92Agent(I thought that maybe this would tell CMS to wait for these to start before starting itself )But still get the same error(s)I can provide any more info if needed.Best regardsCootser

    Post Author: patrickcoote
    CA Forum: Deployment
    I have used Regedit.exe, regedt32.exe and Crystal Central Config manager, all of which aloow you edit the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\BOBJCentralMS\DependOnServiceWhichever way I've loaded in the oracle services to that key (binary) has made no impact.The oracle services start after Crystal and the problem remains.What I have decided to do is use a batch file (see below) to start the services when the machine boots upThis way I know they will start, and it does not take too long
    echo Starting Business Objects Services...
    rem net stop  BOBJCentralMS
    net start BOBJCentralMS
    echo off
    rem Stop and then (Re)Start all other BOBJ services
    net stop  BOBJCrystalReportApplicationServer
    net start BOBJCrystalReportApplicationServer
    net stop  BOBJCrystalReportscacheServer
    net start BOBJCrystalReportsCacheServer
    net stop  BOBJCrystalReportsPageServer
    net start BOBJCrystalReportsPageServer
    net stop  BOBJDestinationServer
    net start BOBJDestinationServer
    net stop  BOBJEventServer
    net start BOBJEventServer
    net stop  BOBJInputFileServer
    net start BOBJInputFileServer
    net stop  BOBJOutputFileServer
    net start BOBJOutputFileServer
    net stop  BOBJProcessServer
    net start BOBJProcessServer
    net stop  BOBJProgramServer
    net start BOBJProgramServer
    net stop  BOBJTomcat
    net start BOBJTomcat
    echo .
    echo Business objects services started.
    Pause**************************************************************************************************************************

  • How can i make Event witch is started before the page render.

    hello i want to do this :
    when i open some JSP no matter from where i want to have a backing bean for this jsp that have a method that starts before the render response.
    my ideas is to have a list of records from a sql server and i need a method that makes a conncetion to the sql server and add everythink in the request so when the jsp is displayed to have content.
    i need example of the backingbean method paste plz.

    I think you can add the sql coneection and all those initial things to the constractor of the bean which contains the variable u need in the page..
    and leave the getters and setters of those variables empty..
    if the DB changes frequently, you can make the scope of the bean: page scope
    otherwise let it be session scope..

  • The engine failed to start before timeout. Restart the application (HDB 10005)

    Hi everyone,
    I experienced many times this type of error starting a SAP Lumira Document (version is 1.17, but even trying with the new version 1.19, right after the installation):
    "An Error Occured: Data Source creation failed .The engine failed to start before timeout. Restart the application. (HDB 10005)".
    I've already found (also in this community) some solutions, but they seems to me like temporary fixing, because sometimes I have to deal with this problem again. Can someone please explain me why this problem happens, and if a definitive fixing is in the works?
    Thank You.

    I am working on Lenovo Helix with Intel i5 processor and 4 GB of fixed memory. And before setting the virtual memory size (paging size) on my laptop it was switched off (no paging). So maybe this was the root cause of the issue for me.
    /Marcin

  • OpenVPN.service starts before network is up

    Hello,
    I have trouble getting an automatic OpenVPN connection at startup to work with systemd. Some troubleshooting revealed that OpenVPN always starts before the network is up (OpenVPN can't resolve the host adress).
    However, I think I have found why it does not work how I want it to:
    — dhcpcd.service - dhcpcd on all interfaces
    Loaded: loaded (/usr/lib/systemd/system/dhcpcd.service; enabled; vendor preset: disabled)
    Active: active (running) since Tue 2015-03-17 02:23:50 CET; 7min ago
    Main PID: 276 (dhcpcd)
    CGroup: /system.slice/dhcpcd.service
    └─276 /usr/bin/dhcpcd -q -b
    Mar 17 02:23:51 <system> dhcpcd[276]: wlp2s0: carrier lost
    Mar 17 02:23:51 <system> dhcpcd[276]: wlp2s0: deleting <address>
    Mar 17 02:23:53 <system> dhcpcd[276]: enp8s0: carrier acquired
    Mar 17 02:23:53 <system> dhcpcd[276]: enp8s0: IAID 0e:69:ff:09
    Mar 17 02:23:53 <system> dhcpcd[276]: enp8s0: rebinding lease of 192.168.32.44
    Mar 17 02:23:53 <system> dhcpcd[276]: enp8s0: soliciting an IPv6 router
    Mar 17 02:24:01 <system> dhcpcd[276]: enp8s0: leased 192.168.32.44 for 3600 seconds
    Mar 17 02:24:01 <system> dhcpcd[276]: enp8s0: adding route to 192.168.32.0/23
    Mar 17 02:24:01 <system> dhcpcd[276]: enp8s0: adding default route via 192.168.32.251
    Mar 17 02:24:06 <system> dhcpcd[276]: enp8s0: no IPv6 Routers available
    Whereas OpenVPN starts much earlier:
    Mar 17 02:23:54 <system> openvpn@<profile>[333]: <Process started plus can not resolve Host stuff>
    Mar 17 02:23:54 <system> openvpn@<profile>[333]: openvpn@<profile>.service failed.
    I tried using
    Wants=network-online.target
    After=network-online.target
    in the [email protected] and had enabled
    systemd-networkd.service
    systemd-networkd-wait-online.service
    but it still did not work as these services finished later as well:
    Mar 17 02:23:50 <system> systemd[1]: Started Network Service.
    Mar 17 02:23:53 <system> systemd-networkd[278]: enp8s0 : gained carrier
    Mar 17 02:25:19 <system> systemd-networkd[278]: tun0 : gained carrier
    Mar 17 02:23:51 <system> systemd-networkd-wait-online[298]: ignore irrelevant link: lo
    Mar 17 02:23:51 <system> systemd-networkd-wait-online[298]: ignore irrelevant link: lo
    Mar 17 02:23:51 <system> systemd-networkd-wait-online[298]: ignore irrelevant link: lo
    Mar 17 02:23:51 <system> systemd-networkd-wait-online[298]: ignore irrelevant link: lo
    Mar 17 02:23:51 <system> systemd-networkd-wait-online[298]: ignore irrelevant link: lo
    Mar 17 02:23:51 <system> systemd-networkd-wait-online[298]: ignore irrelevant link: lo
    Mar 17 02:23:53 <system> systemd-networkd-wait-online[298]: ignore irrelevant link: lo
    Mar 17 02:23:53 <system> systemd-networkd-wait-online[298]: ignore irrelevant link: lo
    Mar 17 02:23:53 <system> systemd-networkd-wait-online[298]: ignore irrelevant link: lo
    Mar 17 02:23:54 <system> systemd[1]: Started Wait for Network to be Configured.
    My guess is, that OpenVPN won't work until this has happened:
    Mar 17 02:25:19 <system> systemd-networkd[278]: tun0 : gained carrier
    I now tried to modify the .service like this (inspiration taken from this thread):
    [Unit]
    Description=OpenVPN connection to %i
    Requires:sys-devices-virtual-net-tun0.device
    After:sys-devices-virtual-net-tun0.device
    [Service]
    Type=forking
    ExecStart=/usr/bin/openvpn --cd /etc/openvpn --config /etc/openvpn/%i.ovpn --daemon openvpn@%i --writepid /run/openvpn@%i.pid
    PIDFile=/run/openvpn@%i.pid
    [Install]
    WantedBy=multi-user.target
    However, the status now looks as follows:
    — [email protected] - OpenVPN connection to stud-wh
    Loaded: error (Reason: Bad message)
    Active: inactive (dead)
    — sys-devices-virtual-net-tun0.device
    Loaded: loaded
    Active: inactive (dead)
    At this point I have no more ideas left. Can anyone confirm my suspicion that OpenVPN needs tun0 gained first? How can I check within a service wheter tun0 has been gained or not? Many thanks!
    Edit: The status of tun0 looks like this:
    — sys-devices-virtual-net-tun0.device - /sys/devices/virtual/net/tun0
    Loaded: loaded
    Active: active (plugged) since Tue 2015-03-17 03:00:52 CET; 17min ago
    Device: /sys/devices/virtual/net/tun0
    but when I try to enable it it says: Failed to execute operation: No such file or directory. This somehow contradicts the earlier status. I guess it got 'plugged' as I started the OpenVPN connection manually?
    Maybe OpenVPN has to wait for TAP aswell?
    Last edited by mrkernelpanic (2015-03-17 02:22:05)

    I just tried your suggestion again and changed the resolv-retry from 0 to 2. Now I have a PID error aswell:
    — openvpn@<profile>.service - OpenVPN connection to <profile>
    Loaded: loaded (/usr/lib/systemd/system/[email protected]; enabled; vendor preset: disabled)
    Active: failed (Result: resources) since Tue 2015-03-17 03:29:59 CET; 42s ago
    Process: 284 ExecStart=/usr/bin/openvpn --cd /etc/openvpn --config /etc/openvpn/%i.ovpn --daemon openvpn@%i --writepid /run/openvpn@%i.pid (code=exited, status=0/SUCCESS)
    Mar 17 03:29:59 <system> openvpn@stud-wh[284]: OpenVPN 2.3.6 x86_64-unknown-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [MH] [IPv6] built on Dec 2 2014
    Mar 17 03:29:59 <system> openvpn@stud-wh[284]: library versions: OpenSSL 1.0.2 22 Jan 2015, LZO 2.09
    Mar 17 03:29:59 <system> openvpn@stud-wh[284]: WARNING: file '/etc/openvpn/auth.conf' is group or others accessible
    Mar 17 03:29:59 <system> openvpn@stud-wh[284]: WARNING: file '/etc/openvpn/ta.key' is group or others accessible
    Mar 17 03:29:59 <system> openvpn@stud-wh[284]: Control Channel Authentication: using '/etc/openvpn/ta.key' as a OpenVPN static key file
    Mar 17 03:29:59 <system> openvpn@stud-wh[284]: RESOLVE: Cannot resolve host address: <hostaddress>: Name or service not known
    Mar 17 03:29:59 <system> systemd[1]: PID 295 read from file /run/openvpn@<profile>.pid does not exist or is a zombie.
    Mar 17 03:29:59 <system> systemd[1]: Failed to start OpenVPN connection to <profile>.
    Mar 17 03:29:59 <system> systemd[1]: Unit openvpn@<profile>.service entered failed state.
    Mar 17 03:29:59 <system> systemd[1]: openvpn@<profile>.service failed.
    The config looks like this:
    # <a number>
    client
    dev tun
    proto tcp
    ca /etc/openvpn/cachain.crt
    remote <hostaddress> 2711
    remote <hostaddress> 2712
    remote <hostaddress> 2713
    remote <hostaddress> 2714
    remote-random
    tls-remote <hostaddress>
    resolv-retry 2
    connect-retry 2
    #connect-retry-max 2
    connect-timeout 2
    nobind
    user nobody
    group nogroup
    persist-key
    persist-tun
    mute-replay-warnings
    tls-auth /etc/openvpn/ta.key 1
    auth-user-pass /etc/openvpn/auth.conf
    auth-retry interact
    comp-lzo no
    reneg-sec 43200
    Edit: Tried it with systemd-networkd.service enabled aswell. Not much of a difference:
    — openvpn@<profile>.service - OpenVPN connection to stud-wh
    Loaded: loaded (/usr/lib/systemd/system/[email protected]; enabled; vendor preset: disabled)
    Active: failed (Result: exit-code) since Tue 2015-03-17 03:37:51 CET; 26s ago
    Process: 293 ExecStart=/usr/bin/openvpn --cd /etc/openvpn --config /etc/openvpn/%i.ovpn --daemon openvpn@%i --writepid /run/openvpn@%i.pid (code=exited, status=0/SUCCESS)
    Main PID: 306 (code=exited, status=1/FAILURE)
    Mar 17 03:37:51 <system> openvpn@stud-wh[293]: library versions: OpenSSL 1.0.2 22 Jan 2015, LZO 2.09
    Mar 17 03:37:51 <system> openvpn@stud-wh[293]: WARNING: file '/etc/openvpn/auth.conf' is group or others accessible
    Mar 17 03:37:51 <system> openvpn@stud-wh[293]: WARNING: file '/etc/openvpn/ta.key' is group or others accessible
    Mar 17 03:37:51 <system> openvpn@stud-wh[293]: Control Channel Authentication: using '/etc/openvpn/ta.key' as a OpenVPN static key file
    Mar 17 03:37:51 <system> openvpn@stud-wh[293]: RESOLVE: Cannot resolve host address: <hostaddress>: Name or service not known
    Mar 17 03:37:51 <system> openvpn@stud-wh[306]: NOTE: UID/GID downgrade will be delayed because of --client, --pull, or --up-delay
    Mar 17 03:37:51 <system> systemd[1]: Started OpenVPN connection to <profile>.
    Mar 17 03:37:51 <system> systemd[1]: [email protected]: main process exited, code=exited, status=1/FAILURE
    Mar 17 03:37:51 <system> systemd[1]: Unit openvpn@<profile>.service entered failed state.
    Mar 17 03:37:51 <system> systemd[1]: openvpn@<profile> failed.
    Last edited by mrkernelpanic (2015-03-17 02:56:45)

  • User experience of Start Before Login?

    If you enable this ability, does it remove the ability to start VPN without logging out of Windows?  In other words, can they log in both ways or does it take the place of starting the Cisco Anyconnect Secure Mobility Client 3.1 from within Windows XP or Windows 7?
    There are some users who say if they are working locally on their laptop at home and then later decide to connect to VPN to access a file share or intranet web site, it will be a huge hassle for them to have to close all their open applications, log off and then log back on just to start the VPN.
    What if they use SBL to start VPN and their connection gets dropped later?  Will they have to log out of Windows to get reconnected?
    It will be much easier to keep the local login credentials in sync with the domain and receive certain group policies if SBL is enabled, but if it adds a lot of other inconvenience, it may not be worth it.
    Can we have users continue to connect they way they normally do from the Windows desktop and then use SBL whenever needed (such as if they forgot the old cached Windows password and needed to login with their current password)?
    Pros and cons?  Is it more or less convenient to have Start Before Login enabled?

    I would recommend reading the following information.
    ASA 8.X: AnyConnect Start Before Logon Feature Configuration
    Configuring Start Before Logon
    Portu.

  • How can i make sure ejb container starts before web server

    When starting the application server which one starts first?
    Our system requires ejb container to start first.
    Currently when i test it, the web container starts before ejb sometimes.
    Is there any way to force the ejb container to start up before the web container starts?

    What exactly is the dependency you have in your application? The Java EE spec does not
    impose any requirements on the order in which the different modules within an .ear are
    instantiated.
    --ken                                                                                                                                                                                                                                                                                                                                                                                                               

Maybe you are looking for