[Solved] Systemd user service and timer dbus error

I have installed arch recently and added a few of my own services, for example the acpi_call commands and such. Now I want to create a systemd service that runs every 5 minutes and execute a script.
I searched a lot and I found that I must use timers. I got the thing with the timers working, but because my script has to do with a specific user, I want it to run only every 5 minutes when i am logged in as that user.
I tried to put the files in /etc/systemd/users, .config/local/users and all the possibilities but everytime i want to enable it, it says dbus connection refused.
Can somebody please provide me a way to execute a systemd service every 5 minutes while I am logged in as a specific user?
I did follow the wiki and created a dbus service and all. Everything works on that side but i can't enable my user service.
thanks!
Last edited by nopemopes (2015-03-25 11:10:06)

jasonwryan wrote:
What errors are you getting? https://bbs.archlinux.org/viewtopic.php?id=57855
Not a Sysadmin issue, moving to NC...
sorry, didn't mean to be incomplete.
The error says "Failed to get D-Bus connection: Connection refused".
I did what the wiki said: Create the dbus files, enable them and such.
No i put my service files + timer in the places mentioned by the wiki but everytime i try to enable them, that error shows up.
systemctl status dbus gives me all good
dbus.service - D-Bus System Message Bus
Loaded: loaded (/usr/lib/systemd/system/dbus.service; static; vendor preset: disabled)
Active: active (running) since ma 2015-03-23 19:39:24 CET; 1h 18min ago
Docs: man:dbus-daemon(1)
Main PID: 246 (dbus-daemon)
CGroup: /system.slice/dbus.service
└─246 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation
mrt 23 19:39:34 Jordy-Laptop dbus[246]: [system] Activating via systemd: service name='org.freedesktop.ModemManager1' unit='...ervice'
mrt 23 19:39:34 Jordy-Laptop dbus[246]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.ModemManager1....ectory.
mrt 23 19:39:34 Jordy-Laptop dbus[246]: [system] Activating via systemd: service name='org.freedesktop.ModemManager1' unit='...ervice'
mrt 23 19:39:34 Jordy-Laptop dbus[246]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.ModemManager1....ectory.
mrt 23 19:39:39 Jordy-Laptop dbus[246]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='...ervice'
mrt 23 19:39:39 Jordy-Laptop dbus[246]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
mrt 23 19:47:01 Jordy-Laptop dbus[246]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='...ervice'
mrt 23 19:47:01 Jordy-Laptop dbus[246]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
mrt 23 20:51:38 Jordy-Laptop dbus[246]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='...ervice'
mrt 23 20:51:38 Jordy-Laptop dbus[246]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
that's the log for dbus and these are my files:
drive_sync.service
[Unit]
Description=Drive sync
[Service]
Type=simple
ExecStart=drive_script.sh
drive_sync.timer
[Unit]
Description=Drive sync
[Service]
Type=simple
ExecStart=drive_script.sh
these files are located in ~/.config/systemd/user
Last edited by nopemopes (2015-03-23 20:00:55)

Similar Messages

  • [SOLVED] Getting my systemd user service to talk to dbus

    I'm currently trying to set up a nice email workflow with mbsync, msmtp and notmuch.
    My passwords are saved in the Gnome keyring "login", and I've configured mbsync to use secret-tool to retrieve them. Unfortunately when secret-tool is invoked from this systemd user service there is an error when it in turn tries to call dbus-launch.
    Here is the error:
    $ systemctl --user status -l mbsync.service
    ● mbsync.service - Synchronise IMAP folders
    Loaded: loaded (/home/leo/.config/systemd/user/mbsync.service; static; vendor preset: enabled)
    Active: failed (Result: exit-code) since Sun 2015-05-10 20:10:56 BST; 17min ago
    Process: 3691 ExecStart=/usr/bin/mbsync -a (code=exited, status=1/FAILURE)
    Main PID: 3691 (code=exited, status=1/FAILURE)
    May 10 20:10:55 think3 mbsync[3691]: (secret-tool:3696): GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
    May 10 20:10:55 think3 mbsync[3691]: secret-tool: Error spawning command line 'dbus-launch --autolaunch=388eb9d3cc5542d5922d60c8f9605b31 --binary-syntax --close-stderr': Child process exited with code 1
    May 10 20:10:55 think3 mbsync[3691]: Skipping account ymail, password command exited with status 1
    May 10 20:10:56 think3 mbsync[3691]: (secret-tool:3698): GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
    May 10 20:10:56 think3 mbsync[3691]: secret-tool: Error spawning command line 'dbus-launch --autolaunch=388eb9d3cc5542d5922d60c8f9605b31 --binary-syntax --close-stderr': Child process exited with code 1
    May 10 20:10:56 think3 mbsync[3691]: Skipping account gmail, password command exited with status 1
    May 10 20:10:56 think3 systemd[716]: mbsync.service: main process exited, code=exited, status=1/FAILURE
    May 10 20:10:56 think3 systemd[716]: Failed to start Synchronise IMAP folders.
    May 10 20:10:56 think3 systemd[716]: Unit mbsync.service entered failed state.
    May 10 20:10:56 think3 systemd[716]: mbsync.service failed.
    The file mbsync.service is simply
    [Unit]
    Description=Synchronise IMAP folders
    Wants=network-online.target
    After=network-online.target
    [Service]
    Type=oneshot
    ExecStart=/usr/bin/mbsync -a
    Any ideas how I can use secret-tool from within a systemd user service? The Wiki includes some information about DBus and systemd here but it looks a little outdated...
    Last edited by curiousleo (2015-05-22 22:02:33)

    barbae wrote:Please could you post the output of 'journalctl -b' just after user login into gnome through gdm?
    Sure thing. Here it is (I've cut out some stuff that obviously had nothing to do with the problem at hand):
    May 17 17:17:11 think3 systemd[1]: systemd 219 running in system mode. (+PAM -AUDIT -SELINUX -IMA -APPARMOR +SMACK -SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID -ELFUTILS +KMOD +IDN)
    May 17 17:17:11 think3 systemd[1]: Created slice Root Slice.
    May 17 17:17:11 think3 systemd[1]: Starting Root Slice.
    May 17 17:17:11 think3 systemd[1]: Created slice System Slice.
    May 17 17:17:11 think3 systemd[1]: Starting System Slice.
    May 17 17:17:11 think3 systemd[1]: Started Forward Password Requests to Wall Directory Watch.
    May 17 17:17:11 think3 systemd[1]: Starting Forward Password Requests to Wall Directory Watch.
    May 17 17:17:11 think3 systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
    May 17 17:17:11 think3 systemd[1]: Starting Dispatch Password Requests to Console Directory Watch.
    May 17 17:17:11 think3 systemd[1]: Reached target Login Prompts.
    May 17 17:17:11 think3 systemd[1]: Starting Login Prompts.
    May 17 17:17:11 think3 systemd[1]: Created slice User and Session Slice.
    May 17 17:17:11 think3 systemd[1]: Starting User and Session Slice.
    May 17 17:17:11 think3 systemd[1]: Reached target Slices.
    May 17 17:17:11 think3 systemd[1]: Starting Slices.
    May 17 17:17:11 think3 systemd[1]: Started Create System Users.
    May 17 17:17:11 think3 systemd[1]: Created slice system-systemd\x2drfkill.slice.
    May 17 17:17:11 think3 systemd[1]: Starting system-systemd\x2drfkill.slice.
    May 17 17:17:11 think3 systemd[1]: Started Commit a transient machine-id on disk.
    May 17 17:17:11 think3 systemd[1]: Started Daily verification of password and group files.
    May 17 17:17:11 think3 systemd[1]: Starting Daily verification of password and group files.
    May 17 17:17:11 think3 systemd[1]: Listening on D-Bus System Message Bus Socket.
    May 17 17:17:11 think3 systemd[1]: Starting D-Bus System Message Bus Socket.
    May 17 17:17:11 think3 systemd[1]: Reached target Sockets.
    May 17 17:17:11 think3 systemd[1]: Starting Sockets.
    May 17 17:17:11 think3 systemd[1]: Reached target Basic System.
    May 17 17:17:11 think3 systemd[1]: Starting Basic System.
    May 17 17:17:11 think3 systemd[1]: Starting Login Service...
    May 17 17:17:11 think3 systemd[1]: Starting Permit User Sessions...
    May 17 17:17:11 think3 systemd[1]: Started D-Bus System Message Bus.
    May 17 17:17:11 think3 systemd[1]: Starting D-Bus System Message Bus...
    May 17 17:17:11 think3 systemd[1]: Reached target Timers.
    May 17 17:17:11 think3 systemd[1]: Starting Timers.
    May 17 17:17:11 think3 systemd[1]: Started Permit User Sessions.
    May 17 17:17:11 think3 systemd[1]: Starting GNOME Display Manager...
    May 17 17:17:11 think3 systemd[1]: Started Login Service.
    May 17 17:17:12 think3 systemd[1]: Started GNOME Display Manager.
    May 17 17:17:12 think3 systemd[1]: Reached target Multi-User System.
    May 17 17:17:12 think3 systemd[1]: Starting Multi-User System.
    May 17 17:17:12 think3 systemd[1]: Reached target Graphical Interface.
    May 17 17:17:12 think3 systemd[1]: Starting Graphical Interface.
    May 17 17:17:12 think3 systemd-logind[293]: New seat seat0.
    May 17 17:17:12 think3 dbus[301]: [system] Activating via systemd: service name='org.freedesktop.Accounts' unit='accounts-daemon.service'
    May 17 17:17:12 think3 systemd[1]: Reached target User and Group Name Lookups.
    May 17 17:17:12 think3 systemd[1]: Starting User and Group Name Lookups.
    May 17 17:17:12 think3 systemd[1]: Starting Accounts Service...
    May 17 17:17:13 think3 dbus[301]: [system] Activating via systemd: service name='org.freedesktop.PolicyKit1' unit='polkit.service'
    May 17 17:17:13 think3 systemd[1]: Starting Authorization Manager...
    May 17 17:17:13 think3 polkitd[443]: Started polkitd version 0.112
    May 17 17:17:13 think3 polkitd[443]: Loading rules from directory /etc/polkit-1/rules.d
    May 17 17:17:13 think3 polkitd[443]: Loading rules from directory /usr/share/polkit-1/rules.d
    May 17 17:17:13 think3 polkitd[443]: Finished loading, compiling and executing 3 rules
    May 17 17:17:13 think3 dbus[301]: [system] Successfully activated service 'org.freedesktop.PolicyKit1'
    May 17 17:17:13 think3 polkitd[443]: Acquired the name org.freedesktop.PolicyKit1 on the system bus
    May 17 17:17:13 think3 systemd[1]: Started Authorization Manager.
    May 17 17:17:13 think3 accounts-daemon[436]: started daemon version 0.6.40
    May 17 17:17:13 think3 dbus[301]: [system] Successfully activated service 'org.freedesktop.Accounts'
    May 17 17:17:13 think3 systemd[1]: Started Accounts Service.
    May 17 17:17:13 think3 systemd[1]: Created slice user-120.slice.
    May 17 17:17:13 think3 systemd[1]: Starting user-120.slice.
    May 17 17:17:13 think3 systemd[1]: Starting User Manager for UID 120...
    May 17 17:17:13 think3 systemd-logind[293]: New session c1 of user gdm.
    May 17 17:17:13 think3 systemd[1]: Started Session c1 of user gdm.
    May 17 17:17:13 think3 systemd[1]: Starting Session c1 of user gdm.
    May 17 17:17:13 think3 systemd[454]: pam_unix(systemd-user:session): session opened for user gdm by (uid=0)
    May 17 17:17:13 think3 systemd[454]: Unit type .busname is not supported on this system.
    May 17 17:17:13 think3 systemd[454]: Reached target Paths.
    May 17 17:17:13 think3 systemd[454]: Starting Paths.
    May 17 17:17:13 think3 systemd[454]: Reached target Timers.
    May 17 17:17:13 think3 systemd[454]: Starting Timers.
    May 17 17:17:13 think3 systemd[454]: Reached target Sockets.
    May 17 17:17:13 think3 systemd[454]: Starting Sockets.
    May 17 17:17:13 think3 systemd[454]: Reached target Basic System.
    May 17 17:17:13 think3 systemd[454]: Starting Basic System.
    May 17 17:17:13 think3 systemd[454]: Reached target Default.
    May 17 17:17:13 think3 systemd[454]: Startup finished in 3ms.
    May 17 17:17:13 think3 systemd[454]: Starting Default.
    May 17 17:17:13 think3 systemd[1]: Started User Manager for UID 120.
    May 17 17:17:13 think3 gnome-session[460]: glamor: EGL version 1.4 (DRI2):
    May 17 17:17:13 think3 org.a11y.Bus[459]: Activating service name='org.a11y.atspi.Registry'
    May 17 17:17:13 think3 org.a11y.Bus[459]: Successfully activated service 'org.a11y.atspi.Registry'
    May 17 17:17:13 think3 org.a11y.atspi.Registry[518]: SpiRegistry daemon is running with well-known name - org.a11y.atspi.Registry
    May 17 17:17:14 think3 polkitd[443]: Registered Authentication Agent for unix-session:c1 (system bus name :1.9 [gnome-shell --mode=gdm --wayland --display-server], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_GB.utf8)
    May 17 17:17:18 think3 gdm-password][674]: pam_unix(gdm-password:session): session opened for user leo by (uid=0)
    May 17 17:17:18 think3 systemd[1]: Created slice user-1000.slice.
    May 17 17:17:18 think3 systemd[1]: Starting user-1000.slice.
    May 17 17:17:18 think3 systemd[1]: Starting User Manager for UID 1000...
    May 17 17:17:18 think3 systemd[1]: Started Session c2 of user leo.
    May 17 17:17:18 think3 systemd-logind[293]: New session c2 of user leo.
    May 17 17:17:18 think3 systemd[1]: Starting Session c2 of user leo.
    May 17 17:17:18 think3 systemd[717]: pam_unix(systemd-user:session): session opened for user leo by (uid=0)
    May 17 17:17:18 think3 systemd[717]: Unit type .busname is not supported on this system.
    May 17 17:17:18 think3 systemd[717]: Started Synchronise e-mails and create database dump once a day.
    May 17 17:17:18 think3 systemd[717]: Starting Synchronise e-mails and create database dump once a day.
    May 17 17:17:18 think3 systemd[717]: Reached target default.target.
    May 17 17:17:18 think3 systemd[717]: Startup finished in 13ms.
    May 17 17:17:18 think3 systemd[717]: Starting default.target.
    May 17 17:17:18 think3 /usr/lib/gdm/gdm-x-session[725]: /etc/gdm/Xsession: Beginning session setup...
    May 17 17:17:18 think3 /usr/lib/gdm/gdm-x-session[725]: localuser:leo being added to access control list
    May 17 17:17:18 think3 /usr/lib/gdm/gdm-x-session[725]: /etc/gdm/Xsession: Setup done, will execute: /usr/bin/ssh-agent -- gnome-session
    May 17 17:17:18 think3 /usr/lib/gdm/gdm-x-session[725]: Activating service name='org.a11y.Bus'
    May 17 17:17:19 think3 /usr/lib/gdm/gdm-x-session[725]: Successfully activated service 'org.a11y.Bus'
    May 17 17:17:19 think3 org.a11y.Bus[732]: Activating service name='org.a11y.atspi.Registry'
    May 17 17:17:19 think3 org.a11y.Bus[732]: Successfully activated service 'org.a11y.atspi.Registry'
    May 17 17:17:19 think3 org.a11y.atspi.Registry[756]: SpiRegistry daemon is running with well-known name - org.a11y.atspi.Registry
    May 17 17:17:19 think3 gnome-session[734]: SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
    May 17 17:17:19 think3 gnome-session[734]: SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
    May 17 17:17:19 think3 gnome-session[734]: GPG_AGENT_INFO=/run/user/1000/keyring/gpg:0:1
    May 17 17:17:20 think3 polkitd[443]: Registered Authentication Agent for unix-session:c2 (system bus name :1.43 [/usr/bin/gnome-shell], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_GB.utf8)
    May 17 17:17:20 think3 gnome-session[734]: Entering running state
    May 17 17:17:21 think3 gnome-shell[804]: GNOME Shell started at Sun May 17 2015 17:17:20 GMT+0100 (BST)
    May 17 17:17:52 think3 /usr/lib/gdm/gdm-x-session[725]: Activating service name='org.gnome.seahorse.Application'
    May 17 17:17:52 think3 /usr/lib/gdm/gdm-x-session[725]: Successfully activated service 'org.gnome.seahorse.Application'
    May 17 17:20:48 think3 /usr/lib/gdm/gdm-x-session[725]: Activating service name='org.gnome.seahorse.Application'
    May 17 17:20:48 think3 /usr/lib/gdm/gdm-x-session[725]: Successfully activated service 'org.gnome.seahorse.Application'

  • [SOLVED] Trouble with running systemd user service on login

    I'm trying to get emacs to run as a systemd/user service so that it will start up faster, as suggested in the wiki article, but I'm having some problems.
    I can't get the service to run as soon as I log in. I can run the service with
    systemctl --user start emacs
    and it will run for the rest of my session, but if I try to run
    systemctl --user enable emacs
    I get the following error:
    The unit files have no [Install] section. They are not meant to be enabled
    using systemctl.
    Possible reasons for having this kind of units are:
    1) A unit may be statically enabled by being symlinked from another unit's
    .wants/ or .requires/ directory.
    2) A unit's purpose may be to act as a helper for some other unit which has
    a requirement dependency on it.
    3) A unit may be started when needed via activation (socket, path, timer,
    D-Bus, udev, scripted systemctl call, ...).
    I ran
    systemctl --user is-enabled emacs
    and that returned
    static
    but I'm not sure what that means. Any help would be greatly appreciated.
    Last edited by whitebrice (2014-06-28 17:20:13)

    Are you sure there isn't a typo in your unit file? The example you linked to in the wiki does have an [Install] section.
    Post your ~/.config/systemd/user/emacs.service file here so we can take a look.

  • [Solved] systemd-user-session: Best way to pass global ENV vars?

    Hey guys,
    So when using the [email protected] from the user-session-units what's the best / cleanest way to set global environment variables for that systemd --user instance (and thus, all programs spawned from it)?
    What I'm talking about is /etc/profile and $HOME/.profile.
    For example, I usally configure my XDG_CONFIG_HOME and XDG_CACHE_HOME in my ~/.profile. But since systemd --user is being started by systemd --session none of these environment variables are loaded.
    The solution I've come up is to change the ExecStart in the [email protected] file to something like this:
    ExecStart=/usr/bin/sh -c "source /etc/profile; source $HOME/.config/bash/environment; exec /usr/lib/systemd/systemd --user"
    I know I could use the `EnvironmentFile` option to load the environment variables from a file, but it's not as flexable as a bash script.
    Am I thinking about this problem wrong? Is there a more "systemd --user"-y way of solving the problem?
    Last edited by EvanPurkhiser (2013-08-12 03:02:48)

    I've more or less solved this using my own user-session units. I still don't know if my method would really be considered the proper way or not though.
    Last edited by EvanPurkhiser (2013-08-12 03:02:19)

  • I've bought an Iphone 4S in the UK. Using the phone in Argentina, it displays the "No Service" and "Invalid SIM" errors sporadically. The only solution is to reset the phone (switching it ON/OFF). Any suggestions?

    I've bought an Iphone 4S in the UK. Using the phone in Argentina, it displays the "No Service" and "Invalid SIM" errors sporadically. The only solution is to reset the phone (switching it ON/OFF). Also most of the time, the SMS are not sent nor received...
    The phone was checked by my carrier (phone company, Movistar) and they replaced the micro SIM card. bear in mind that there's no Apple shop here and the Iphone 4S is NOT available in Argentina!!!
    Any suggestions?

    Dear all,
    (THIS CONCERNS MTC TOUCH CUSTOMERS IN LEBANON)
    I've received an email with a solution to the problem; you have to update to the new iOS 5.0.1 firmware (9A406)!! It's been 1Hour and so far my iPHone 4S is working just fine. Please follow carefully the below instructions:
    RUN A FULL BACK UP BEFORE DOING ANY OF THIS
    1. Download the new iOS 5.0.1 firmware (9A406) from the internet. (800MB)
    2. Connect your iPhone 4S to iTunes.
    3. Once connected, two options will show: ‘restore’ and ‘check for update’.
    4. Press down SHIFT and choose ‘check for update’. (if you click ‘check for update’ without pressing down SHIFT doesn’t work.)
    5. Select the new firmware (9A406). Note that the file should be renamed ‘iPhone4,1_5.0.1_9A406_Restore.ipsw’  (instead of ‘iPhone4,1_5.0.1_9A406_Restore.zip’), i.e. changing the file extension from ZIP to IPSW. iTunes will now work alone and update your iPhone 4S.
    A full back up is recommended before firmware upgrade.
    HOPE THIS HELPS

  • Re: (forte-users) DateTimeData and time zones, I need amagictrick !

    You might try externalizing as textdata whenever its passed between partitions.
    kelsey.petrychynsasktel.sk.ca on 04/26/2000 03:45:28 PM
    To: "Guylain Rochon" <GRochonInfluatec.ca>
    cc: kamranaminyahoo.com (bcc: Charlie Shell/Bsg/MetLife/US)
    Subject: Re: (forte-users) DateTimeData and time zones, I need a magic trick !
    I haven't done a lot of work with time zones, but I have some ideas that just
    may work. If it is important for this object to pass in and out of time-zones
    untouched by the destination try passing it by reference. The idea is that the
    actual object will remain in one time zone. You may need to "anchor it down"
    somehow where it resides (Make it private, READ_ONLY or ??).
    Another thing to try is: If it is passed via a method set the mechanism as
    "input". I believe this will stop the destination from changing it. (i.e. It
    will receive it as input only).
    Just some ideas. Good luck.
    Kelsey PetrychynSaskTel Technical Analyst
    ITM - Technology Solutions - Distributed Computing
    Tel (306) 777 - 4906, Fax (306) 359 - 0857
    Internet:kelsey.petrychynSasktel.sk.ca
    Quality is not job 1. It is the only job!
    Guylain Rochon <GRochonInfluatec.ca> on 04/26/2000 01:15:47 PM
    To: "\[FORTE\] Maling list" <kamranaminyahoo.com>
    cc: (bcc: Kelsey Petrychyn/SaskTel/CA)
    Subject: (forte-users) DateTimeData and time zones, I need a magic trick !
    Help, I'm drowning and Fort

    I haven't done a lot of work with time zones, but I have some ideas that just
    may work. If it is important for this object to pass in and out of time-zones
    untouched by the destination try passing it by reference. The idea is that the
    actual object will remain in one time zone. You may need to "anchor it down"
    somehow where it resides (Make it private, READ_ONLY or ??).
    Another thing to try is: If it is passed via a method set the mechanism as
    "input". I believe this will stop the destination from changing it. (i.e. It
    will receive it as input only).
    Just some ideas. Good luck.
    Kelsey PetrychynSaskTel Technical Analyst
    ITM - Technology Solutions - Distributed Computing
    Tel (306) 777 - 4906, Fax (306) 359 - 0857
    Internet:kelsey.petrychynSasktel.sk.ca
    Quality is not job 1. It is the only job!
    Guylain Rochon <GRochonInfluatec.ca> on 04/26/2000 01:15:47 PM
    To: "\[FORTE\] Maling list" <kamranaminyahoo.com>
    cc: (bcc: Kelsey Petrychyn/SaskTel/CA)
    Subject: (forte-users) DateTimeData and time zones, I need a magic trick !
    Help, I'm drowning and Fort

  • Capturing User Id and Time

    Hi All,
    I need to keep track of the user ID and Time for the data entered through a web interface.
    Please suggest the way to achieve this.
    Thanks,
    Deepthi.

    Hi Deepthi,
    there is a how to paper: How to Line Items in SEM-BPS.
    It describes how to add user and time to each dataset enterd/changed.
    Best regards
    Steffen

  • [SOLVED] systemd/User, starting a Dependent service

    I am missing something simple here.  I have two services.  Once is dependent on the other.
    I got the first service to start with:
    $ cat ~/.config/systemd/user/[email protected]
    [Unit]
    Description=Syncthing - Open Source Continuous File Synchronization for %I
    Documentation=https://github.com/syncthing/syncthing/wiki
    After=network.target
    [Service]
    #User=%i
    Environment=STNORESTART=yes
    ExecStart=/usr/bin/syncthing -no-browser -logflags=0
    Restart=on-failure
    SuccessExitStatus=2 3 4
    RestartForceExitStatus=3 4
    [Install]
    #WantedBy=multi-user.target
    WantedBy=default.target
    This autostarts upon logging in with i3 and gnome.  No problem (now).
    The problem I have is with the notifier/watcher:
    $ cat ~/.config/systemd/user/[email protected]
    [Unit]
    Description=Syncthing Inotify File Watcher for %I
    Documentation=https://github.com/syncthing/syncthing-inotify/blob/master/README.md
    After=network.target [email protected]
    [email protected]
    [Service]
    #User=%i
    ExecStart=/usr/bin/syncthing-inotify -logflags=0
    SuccessExitStatus=2
    Restart=on-failure
    ProtectSystem=full
    ProtectHome=read-only
    [Install]
    #WantedBy=multi-user.target
    WantedBy=default.target
    Installed it into my namespace, like I did with the parent service:
    $ systemctl --user enable [email protected]
    On system startup/login, the service is "Dead (inactive)."
    But, I can start it manually:
    $ systemctl --user start [email protected]
    And the status of the service shows it logging and working, picking up changes, etc.
    I must be missing a configuration parameter in the service file.
    Last edited by eduncan911 (2015-05-25 14:39:38)

    mauritiusdadd wrote:
    Just a shot in the dark, but try to change the After= and Requires= lines in [email protected] to
    After=network.target syncthing@%i.service
    Requires=syncthing@%i.service
    You know how you stay up late and everything you do right seems to be wrong?
    When I ran:
    systemctl status [email protected]
    ...it showed inactive (dead) and is the reason I made this thread. 
    Changed it to this:
    systemctl --user status [email protected]
    Allowed me to see it started.  *head smack*
    And btw, I tried "syncthing@%i.service" and it worked too!  I reverted back to "[email protected]" to verify %i fixed it, but it started as well as before.  So "%i" seems agnostic and would work as well.

  • [solved] allow a systemd user service to shutdown the pc (mythtv)

    Hi,
    I have a problem with my mythtv htpc. What I want is to shutdown the PC if the PC idles.
    Mythtv (a pvr htpc software) recognizes if nobody is watching something and starts to shutdown the PC. This is not working ;(
    By default, mythtv is running als a system service with a "User=xxx" line in his .service file. I managed to configure mythtv to run as user service, so the user can start/stop it with "systemctl --user start/stop mythbackend" ... but this doesn't solve the problem.
    I installed polkit and now the user is able to shutdown the pc (systemctl poweroff) but this also doesn't help.
    I already asked in the german forum but nobody has a idea.
    Here is the german thread: https://bbs.archlinux.de/viewtopic.php?id=25290
    in the first post, you can see my journald output.
    can somebody help me? google can't
    I don't think this is a mythtv related problem, I think user services are just not allowed to shutdown the pc.
    thx for your help!
    Last edited by muh3 (2014-01-10 13:26:36)

    To handle power from XBMC polkit rule is needed. It is probably the same with mythtv.
    polkit.addRule(function(action, subject) {
    if (action.id.match("org.freedesktop.login1.") && subject.isInGroup("mythtv")) {
    return polkit.Result.YES;
    Save this as /etc/polkit-1/rules.d/10-mythtv.rules and add user to mythtv group.

  • [SOLVED] systemd --user: "Failed to open private bus connection:"

    EDIT: The solution was to set DBUS_SESSION_BUS_ADDRESS, as suggested by gtmanfred in irc.  By putting the following before executing systemd --user, the error vanished:
    export DBUS_SESSION_BUS_ADDRESS=/run/user/$(id -u)/dbus/user_bus_socket
    ===================
    Original problem:
    Everything on my box appears to be working ok, but I'm getting this error consistently in tty1 and at the top of journalctl (as user) whenever I start systemd --user:
    systemd[3975]: Failed to open private bus connection: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
    I roughly have my system setup per this wiki section https://wiki.archlinux.org/index.php/Sy … ur_Session.  I start systemd --user via a small script in my .bash_profile. Here are my relevant dbus{.service,socket} files, from the package user-session-units mentioned in the wiki:  (Edit: xorg is started through xorg-launch-helper, also from that wiki page)  Edit2: I'm not using autologin.  I noticed that under the autologin section of that page, DBUS_SESSION_BUS_ADDRESS is set to some path.  In my setup that isn't set anywhere, so I may try to copy that later but I don't have time to play with it right now.  Will post back later.
    =====/usr/lib/systemd/user/dbus.service=====
    [Unit]
    Description=D-Bus System Message Bus
    Requires=dbus.socket
    [Service]
    ExecStart=/usr/bin/dbus-daemon --session --address=systemd: --nofork --systemd-activation
    ExecReload=/usr/bin/dbus-send --print-reply --session --type=method_call --dest=org.freedesktop.DBus / org.freedesktop.DBus.ReloadConfig
    =====/usr/lib/systemd/user/dbus.socket=====
    [Unit]
    Description=D-Bus System Message Bus Socket
    [Socket]
    ListenStream=%t/dbus/user_bus_socket
    And the output of sudo systemctl status dbus:
    dbus.service - D-Bus System Message Bus
    Loaded: loaded (/usr/lib/systemd/system/dbus.service; static)
    Active: active (running) since Tue 2013-02-05 14:50:30 EST; 22min ago
    Main PID: 369 (dbus-daemon)
    CGroup: name=systemd:/system/dbus.service
    └─369 /usr/bin/dbus-daemon --system --address=systemd: --no...
    Feb 05 14:50:30 sellers-laptop systemd[1]: Starting D-Bus System Message Bus...
    Feb 05 14:50:30 sellers-laptop systemd[1]: Started D-Bus System Message Bus.
    Feb 05 14:51:18 sellers-laptop dbus-daemon[369]: dbus[369]: [system] Activating via systemd: service name='org.freedesktop.Avahi' unit='dbus-org.freedesktop.Avahi.service'
    Feb 05 14:51:18 sellers-laptop dbus[369]: [system] Activating via systemd: service name='org.freedesktop.Avahi' unit='dbus-org.freedesktop.Avahi.service'
    Feb 05 14:51:18 sellers-laptop dbus[369]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.Avahi.service': Unit dbus-org.freedesktop.Avahi.service failed to load: No such file or directory. See system logs and 'systemctl status dbus-org.freedesktop.Avahi.service' for details.
    Feb 05 14:51:18 sellers-laptop dbus-daemon[369]: dbus[369]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.Avahi.service': Unit dbus-org.freedesktop.Avahi.service failed to load: No such file or directory. See system logs and 'systemctl status dbus-org.freedesktop.Avahi.service' for details.
    I'm not sure what the error even means or how to go about debugging it.  Any suggestions would be appreciated.
    Last edited by Feynman (2013-02-05 22:07:23)

    NVM...didn't notice it was already solved.
    Last edited by the sad clown (2013-02-05 22:33:10)

  • [SOLVED] systemd: Failed to open private dbus connection

    Below is a snapshot from journalctl -b:
    systemd[1]: Starting user-1000.slice.
    systemd[1]: Created slice user-1000.slice.
    systemd[1]: Starting User Manager for 1000...
    systemd[1]: Starting Session 1 of user me.
    systemd[1]: Started Session 1 of user me.
    systemd-logind[195]: New session 1 of user me.
    systemd[261]: pam_unix(systemd-user:session): session opened for user me by (uid=0)
    systemd[261]: Failed to open private dbus connection: Failed to connect to socet /run/usr/1000/dbususer_bus_socket: No such file or directory
    systemd[261]: Mounted /sys/kernel/config.
    systemd[261]: Stopped target Bluetooth.
    systemd[261]: Stopped target Sound Card.
    systemd[261] Starting Default.
    systemd[261]: Reached target Default.
    systemd[261]: Startup finished in 135ms.
    systemd[1]: Started User Manager for 1000.
    login[199]: LOGIN ON tty1 BY me
    It's a fresh Arch Linux install and I didn't even had a time yet to tinker with systemd so it's unlikely that I've messed things up. I suspect that it might be the cause of the following problem:
    $ systemctl status --user
    Failed to issue method call: Process /bin/false exited with status 1
    For reference, systemd version:
    $ systemctl --version
    systemd 207
    +PAM -LIBWRAP -AUDIT -SELINUX -IMA -SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ
    Any ideas how can I solve the private dbus connection problem?
    Last edited by vox23 (2013-09-25 17:02:22)

    65kid wrote:do you actually experience any problems?
    I thought that it might be related to:
    $ systemctl status --user
    Failed to issue method call: Process /bin/false exited with status 1
    however when I followed wiki and created:
    $cat /etc/systemd/system/[email protected]/environment.conf
    [Service]
    Environment=DISPLAY=:0
    Environment=XDG_RUNTIME_DIR=/run/user/%I
    Environment=SHELL=%s
    then /bin/false error went away. I still have some problems with systemd managing my user session but unrelated to the above. Marking as solved.

  • [SOLVED] systemd/user interface not working

    I cannot use user service files, because systemctl gives me this error:
    $ systemctl --user status
    Failed to get D-Bus connection: No such file or directory
    It's been a while since I used a user service file, so I don't know when it started exactly.
    How can I further diagnose this? I've done everything in the wiki related pages, so I'm clueless right now...
    Thanks in advance
    Last edited by hermes (2014-04-20 17:24:31)

    t3kk3n wrote:I would verify dbus is running by 'ps aux | grep dbus' and, if so, check your logs in journalctl. You can grep journalctl using the '--no-pager' option if you desire, otherwise just use less/more. I'd look at the boot logs and see if it spit any errors out about creating the session, etc.
    Thanks for your reply!
    DBus is running. The following processes are active:
    /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation
    dbus-launch --sh-syntax --exit-with-session
    /usr/bin/dbus-daemon --fork --print-pid 4 --print-address 6 --session
    Here's the output of journalctl --this-boot --no-pager | grep -i dbus:
    apr 16 21:03:29 archlinux dbus[546]: [system] Activating systemd to hand-off: service name='org.freedesktop.PolicyKit1' unit='polkit.service'
    apr 16 21:03:29 archlinux dbus[546]: [system] Successfully activated service 'org.freedesktop.systemd1'
    apr 16 21:03:29 archlinux dbus[546]: [system] Activating via systemd: service name='org.freedesktop.ColorManager' unit='colord.service'
    apr 16 21:03:29 archlinux dbus[546]: [system] Successfully activated service 'org.freedesktop.ColorManager'
    apr 16 21:03:29 archlinux dbus[546]: [system] Successfully activated service 'org.freedesktop.PolicyKit1'
    apr 16 21:03:30 archlinux dbus[546]: [system] Activating via systemd: service name='fi.w1.wpa_supplicant1' unit='wpa_supplicant.service'
    apr 16 21:03:30 archlinux dbus[546]: [system] Activating via systemd: service name='org.bluez' unit='dbus-org.bluez.service'
    apr 16 21:03:30 archlinux dbus[546]: [system] Successfully activated service 'fi.w1.wpa_supplicant1'
    apr 16 21:03:30 archlinux dbus[546]: [system] Successfully activated service 'org.bluez'
    apr 16 21:03:30 archlinux dbus[546]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service'
    apr 16 21:03:30 archlinux dbus[546]: [system] Successfully activated service 'org.freedesktop.hostname1'
    apr 16 21:03:38 archlinux dbus[546]: [system] Activating via systemd: service name='org.freedesktop.UPower' unit='upower.service'
    apr 16 21:03:38 archlinux dbus[546]: [system] Successfully activated service 'org.freedesktop.UPower'
    apr 16 21:03:38 archlinux dbus[546]: [system] Activating via systemd: service name='org.freedesktop.UDisks2' unit='udisks2.service'
    apr 16 21:03:38 archlinux dbus[546]: [system] Successfully activated service 'org.freedesktop.UDisks2'
    apr 16 21:03:41 archlinux org.kde.kuiserver[2061]: QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
    apr 16 21:03:41 archlinux org.kde.kuiserver[2061]: QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
    apr 16 21:03:46 archlinux dbus[546]: [system] Activating via systemd: service name='org.freedesktop.RealtimeKit1' unit='rtkit-daemon.service'
    apr 16 21:03:46 archlinux dbus[546]: [system] Successfully activated service 'org.freedesktop.RealtimeKit1'
    apr 16 23:50:46 archlinux org.a11y.atspi.Registry[13309]: ** (at-spi2-registryd:13312): WARNING **: Failed to register client: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
    apr 17 12:05:00 archlinux dbus[546]: [system] Rejected send message, 2 matched rules; type="method_return", sender=":1.19" (uid=0 pid=2237 comm="/usr/lib/udisks2/udisksd --no-debug ") interface="(unset)" member="(unset)" error name="(unset)" requested_reply="0" destination=":1.20" (uid=1000 pid=2262 comm="kdeinit4: plasma-desktop [kdeinit] ")
    apr 17 16:50:15 archlinux dbus[546]: [system] Reloaded configuration
    apr 17 16:50:15 archlinux dbus[546]: [system] Reloaded configuration
    apr 17 16:52:06 archlinux dbus[546]: [system] Rejected send message, 3 matched rules; type="error", sender=":1.24" (uid=1000 pid=2332 comm="/usr/bin/pulseaudio --start --log-target=syslog ") interface="(unset)" member="(unset)" error name="org.bluez.MediaEndpoint1.Error.NotImplemented" requested_reply="0" destination=":1.11" (uid=0 pid=1771 comm="/usr/lib/bluetooth/bluetoothd ")
    apr 17 16:52:06 archlinux dbus[546]: [system] Rejected send message, 3 matched rules; type="error", sender=":1.24" (uid=1000 pid=2332 comm="/usr/bin/pulseaudio --start --log-target=syslog ") interface="(unset)" member="(unset)" error name="org.bluez.MediaEndpoint1.Error.NotImplemented" requested_reply="0" destination=":1.11" (uid=0 pid=1771 comm="/usr/lib/bluetooth/bluetoothd ")
    apr 17 16:52:06 archlinux dbus[546]: [system] Rejected send message, 3 matched rules; type="error", sender=":1.24" (uid=1000 pid=2332 comm="/usr/bin/pulseaudio --start --log-target=syslog ") interface="(unset)" member="(unset)" error name="org.bluez.MediaEndpoint1.Error.NotImplemented" requested_reply="0" destination=":1.11" (uid=0 pid=1771 comm="/usr/lib/bluetooth/bluetoothd ")
    apr 17 16:52:06 archlinux dbus[546]: [system] Rejected send message, 3 matched rules; type="error", sender=":1.24" (uid=1000 pid=2332 comm="/usr/bin/pulseaudio --start --log-target=syslog ") interface="(unset)" member="(unset)" error name="org.bluez.MediaEndpoint1.Error.NotImplemented" requested_reply="0" destination=":1.11" (uid=0 pid=1771 comm="/usr/lib/bluetooth/bluetoothd ")
    apr 17 16:52:06 archlinux dbus[546]: [system] Rejected send message, 3 matched rules; type="method_return", sender=":1.37" (uid=1000 pid=2720 comm="/usr/lib/bluetooth/obexd ") interface="(unset)" member="(unset)" error name="(unset)" requested_reply="0" destination=":1.11" (uid=0 pid=1771 comm="/usr/lib/bluetooth/bluetoothd ")
    apr 17 16:52:06 archlinux dbus[546]: [system] Rejected send message, 3 matched rules; type="method_return", sender=":1.37" (uid=1000 pid=2720 comm="/usr/lib/bluetooth/obexd ") interface="(unset)" member="(unset)" error name="(unset)" requested_reply="0" destination=":1.11" (uid=0 pid=1771 comm="/usr/lib/bluetooth/bluetoothd ")
    apr 17 16:52:06 archlinux dbus[546]: [system] Rejected send message, 3 matched rules; type="method_return", sender=":1.37" (uid=1000 pid=2720 comm="/usr/lib/bluetooth/obexd ") interface="(unset)" member="(unset)" error name="(unset)" requested_reply="0" destination=":1.11" (uid=0 pid=1771 comm="/usr/lib/bluetooth/bluetoothd ")
    apr 17 16:52:06 archlinux dbus[546]: [system] Rejected send message, 3 matched rules; type="method_return", sender=":1.37" (uid=1000 pid=2720 comm="/usr/lib/bluetooth/obexd ") interface="(unset)" member="(unset)" error name="(unset)" requested_reply="0" destination=":1.11" (uid=0 pid=1771 comm="/usr/lib/bluetooth/bluetoothd ")
    apr 17 16:52:06 archlinux dbus[546]: [system] Rejected send message, 3 matched rules; type="method_return", sender=":1.37" (uid=1000 pid=2720 comm="/usr/lib/bluetooth/obexd ") interface="(unset)" member="(unset)" error name="(unset)" requested_reply="0" destination=":1.11" (uid=0 pid=1771 comm="/usr/lib/bluetooth/bluetoothd ")
    apr 17 16:52:06 archlinux dbus[546]: [system] Rejected send message, 3 matched rules; type="method_return", sender=":1.37" (uid=1000 pid=2720 comm="/usr/lib/bluetooth/obexd ") interface="(unset)" member="(unset)" error name="(unset)" requested_reply="0" destination=":1.11" (uid=0 pid=1771 comm="/usr/lib/bluetooth/bluetoothd ")
    apr 17 16:52:06 archlinux dbus[546]: [system] Activating via systemd: service name='org.bluez' unit='dbus-org.bluez.service'
    apr 17 16:52:07 archlinux dbus[546]: [system] Successfully activated service 'org.bluez'
    apr 18 12:26:24 archlinux org.gtk.vfs.Daemon[2061]: g_dbus_connection_real_closed: Remote peer vanished with error: Underlying GIOStream returned 0 bytes on an async read (g-io-error-quark, 0). Exiting.
    apr 18 12:26:24 archlinux org.gtk.Private.GPhoto2VolumeMonitor[2061]: g_dbus_connection_real_closed: Remote peer vanished with error: Underlying GIOStream returned 0 bytes on an async read (g-io-error-quark, 0). Exiting.
    apr 18 12:26:24 archlinux org.a11y.Bus[2061]: g_dbus_connection_real_closed: Remote peer vanished with error: Underlying GIOStream returned 0 bytes on an async read (g-io-error-quark, 0). Exiting.
    apr 18 12:26:24 archlinux org.gtk.vfs.Daemon[2061]: g_dbus_connection_real_closed: Remote peer vanished with error: Underlying GIOStream returned 0 bytes on an async read (g-io-error-quark, 0). Exiting.
    apr 18 12:26:24 archlinux org.gtk.Private.UDisks2VolumeMonitor[2061]: g_dbus_connection_real_closed: Remote peer vanished with error: Underlying GIOStream returned 0 bytes on an async read (g-io-error-quark, 0). Exiting.
    apr 18 12:26:24 archlinux ca.desrt.dconf[2061]: g_dbus_connection_real_closed: Remote peer vanished with error: Underlying GIOStream returned 0 bytes on an async read (g-io-error-quark, 0). Exiting.
    apr 18 12:26:24 archlinux NetworkManager[1247]: <warn> error requesting auth for org.freedesktop.NetworkManager.enable-disable-wimax: (3) GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not get UID of name ':1.58': no such name
    apr 18 12:26:24 archlinux NetworkManager[1247]: <warn> error requesting auth for org.freedesktop.NetworkManager.network-control: (3) GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not get UID of name ':1.58': no such name
    apr 18 12:26:24 archlinux NetworkManager[1247]: <warn> error requesting auth for org.freedesktop.NetworkManager.wifi.share.protected: (3) GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not get UID of name ':1.58': no such name
    apr 18 12:26:24 archlinux NetworkManager[1247]: <warn> error requesting auth for org.freedesktop.NetworkManager.wifi.share.open: (3) GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not get UID of name ':1.58': no such name
    apr 18 12:26:24 archlinux NetworkManager[1247]: <warn> error requesting auth for org.freedesktop.NetworkManager.settings.modify.system: (3) GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not get UID of name ':1.58': no such name
    apr 18 12:26:24 archlinux NetworkManager[1247]: <warn> error requesting auth for org.freedesktop.NetworkManager.settings.modify.own: (3) GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not get UID of name ':1.58': no such name
    apr 18 12:26:24 archlinux NetworkManager[1247]: <warn> error requesting auth for org.freedesktop.NetworkManager.settings.modify.hostname: (3) GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not get UID of name ':1.58': no such name
    apr 18 12:26:24 archlinux NetworkManager[1247]: <warn> error requesting auth for org.freedesktop.NetworkManager.enable-disable-network: (3) GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not get UID of name ':1.33': no such name
    apr 18 12:26:24 archlinux NetworkManager[1247]: <warn> error requesting auth for org.freedesktop.NetworkManager.sleep-wake: (3) GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not get UID of name ':1.33': no such name
    apr 18 12:26:24 archlinux NetworkManager[1247]: <warn> error requesting auth for org.freedesktop.NetworkManager.enable-disable-wifi: (3) GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not get UID of name ':1.33': no such name
    apr 18 12:26:24 archlinux NetworkManager[1247]: <warn> error requesting auth for org.freedesktop.NetworkManager.enable-disable-wwan: (3) GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not get UID of name ':1.33': no such name
    apr 18 12:26:24 archlinux NetworkManager[1247]: <warn> error requesting auth for org.freedesktop.NetworkManager.enable-disable-wimax: (3) GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not get UID of name ':1.33': no such name
    apr 18 12:26:24 archlinux NetworkManager[1247]: <warn> error requesting auth for org.freedesktop.NetworkManager.network-control: (3) GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not get UID of name ':1.33': no such name
    apr 18 12:26:24 archlinux NetworkManager[1247]: <warn> error requesting auth for org.freedesktop.NetworkManager.wifi.share.protected: (3) GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not get UID of name ':1.33': no such name
    apr 18 12:26:24 archlinux NetworkManager[1247]: <warn> error requesting auth for org.freedesktop.NetworkManager.wifi.share.open: (3) GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not get UID of name ':1.33': no such name
    apr 18 12:26:24 archlinux NetworkManager[1247]: <warn> error requesting auth for org.freedesktop.NetworkManager.settings.modify.system: (3) GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not get UID of name ':1.33': no such name
    apr 18 12:26:24 archlinux NetworkManager[1247]: <warn> error requesting auth for org.freedesktop.NetworkManager.settings.modify.own: (3) GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not get UID of name ':1.33': no such name
    apr 18 12:26:24 archlinux NetworkManager[1247]: <warn> error requesting auth for org.freedesktop.NetworkManager.settings.modify.hostname: (3) GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not get UID of name ':1.33': no such name
    apr 18 12:26:33 archlinux org.kde.kuiserver[31022]: QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
    apr 18 12:26:33 archlinux org.kde.kuiserver[31022]: QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
    apr 18 12:26:38 archlinux org.a11y.atspi.Registry[31238]: ** (at-spi2-registryd:31241): WARNING **: Failed to register client: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
    apr 18 12:26:42 archlinux polkitd[1292]: Error converting subject to JS object: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not get PID of name ':1.141': no such name
    apr 18 12:26:42 archlinux NetworkManager[1247]: <warn> error requesting auth for org.freedesktop.NetworkManager.sleep-wake: (3) GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not get UID of name ':1.141': no such name
    apr 18 12:26:42 archlinux NetworkManager[1247]: <warn> error requesting auth for org.freedesktop.NetworkManager.enable-disable-wifi: (3) GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not get UID of name ':1.141': no such name
    apr 18 12:26:42 archlinux NetworkManager[1247]: <warn> error requesting auth for org.freedesktop.NetworkManager.enable-disable-wwan: (3) GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not get UID of name ':1.141': no such name
    apr 18 12:26:42 archlinux NetworkManager[1247]: <warn> error requesting auth for org.freedesktop.NetworkManager.enable-disable-wimax: (3) GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not get UID of name ':1.141': no such name
    apr 18 12:26:42 archlinux NetworkManager[1247]: <warn> error requesting auth for org.freedesktop.NetworkManager.network-control: (3) GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not get UID of name ':1.141': no such name
    apr 18 12:26:42 archlinux NetworkManager[1247]: <warn> error requesting auth for org.freedesktop.NetworkManager.wifi.share.protected: (3) GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not get UID of name ':1.141': no such name
    apr 18 12:26:42 archlinux NetworkManager[1247]: <warn> error requesting auth for org.freedesktop.NetworkManager.wifi.share.open: (3) GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not get UID of name ':1.141': no such name
    apr 18 12:26:42 archlinux NetworkManager[1247]: <warn> error requesting auth for org.freedesktop.NetworkManager.settings.modify.system: (3) GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not get UID of name ':1.141': no such name
    apr 18 12:26:42 archlinux NetworkManager[1247]: <warn> error requesting auth for org.freedesktop.NetworkManager.settings.modify.own: (3) GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not get UID of name ':1.141': no such name
    apr 18 12:26:42 archlinux NetworkManager[1247]: <warn> error requesting auth for org.freedesktop.NetworkManager.settings.modify.hostname: (3) GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not get UID of name ':1.141': no such name
    apr 19 03:28:20 archlinux org.gtk.vfs.Daemon[31022]: g_dbus_connection_real_closed: Remote peer vanished with error: Underlying GIOStream returned 0 bytes on an async read (g-io-error-quark, 0). Exiting.
    apr 19 03:28:20 archlinux org.a11y.Bus[31022]: g_dbus_connection_real_closed: Remote peer vanished with error: Underlying GIOStream returned 0 bytes on an async read (g-io-error-quark, 0). Exiting.
    apr 19 03:28:20 archlinux org.gtk.Private.GPhoto2VolumeMonitor[31022]: g_dbus_connection_real_closed: Remote peer vanished with error: Underlying GIOStream returned 0 bytes on an async read (g-io-error-quark, 0). Exiting.
    apr 19 03:28:20 archlinux org.gtk.Private.UDisks2VolumeMonitor[31022]: g_dbus_connection_real_closed: Remote peer vanished with error: Underlying GIOStream returned 0 bytes on an async read (g-io-error-quark, 0). Exiting.
    apr 19 03:30:18 archlinux dbus[546]: [system] Reloaded configuration
    apr 19 03:30:18 archlinux dbus[546]: [system] Reloaded configuration
    apr 19 03:30:24 archlinux dbus[546]: [system] Reloaded configuration
    apr 19 03:30:24 archlinux dbus[546]: [system] Reloaded configuration
    apr 19 03:30:40 archlinux dbus[546]: [system] Reloaded configuration
    apr 19 03:30:41 archlinux dbus[546]: [system] Reloaded configuration
    apr 19 03:30:41 archlinux dbus[546]: [system] Reloaded configuration
    apr 19 03:30:42 archlinux dbus[546]: [system] Reloaded configuration
    apr 19 03:30:51 archlinux dbus[546]: [system] Reloaded configuration
    apr 19 03:30:51 archlinux dbus[546]: [system] Reloaded configuration
    apr 19 03:30:51 archlinux dbus[546]: [system] Reloaded configuration
    apr 19 03:30:54 archlinux dbus[546]: [system] Reloaded configuration
    apr 19 03:30:54 archlinux dbus[546]: [system] Reloaded configuration
    apr 19 03:30:54 archlinux dbus[546]: [system] Reloaded configuration
    apr 19 03:30:54 archlinux dbus[546]: [system] Reloaded configuration
    apr 19 03:30:55 archlinux dbus[546]: [system] Reloaded configuration
    apr 19 03:30:55 archlinux dbus[546]: [system] Reloaded configuration
    apr 19 03:31:37 archlinux dbus[546]: [system] Reloaded configuration
    apr 19 03:31:37 archlinux dbus[546]: [system] Reloaded configuration
    apr 19 03:31:37 archlinux dbus[546]: [system] Reloaded configuration
    apr 19 03:31:37 archlinux dbus[546]: [system] Reloaded configuration
    apr 19 03:31:39 archlinux dbus[546]: [system] Reloaded configuration
    apr 19 03:31:39 archlinux dbus[546]: [system] Reloaded configuration
    apr 19 03:31:39 archlinux dbus[546]: [system] Reloaded configuration
    apr 19 03:31:39 archlinux dbus[546]: [system] Reloaded configuration
    apr 19 03:33:20 archlinux org.kde.kuiserver[23937]: QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
    apr 19 03:33:20 archlinux org.kde.kuiserver[23937]: QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
    I can't tell if these errors are significant regarding my issue though, they don't mean a lot to me.

  • Excel service and OWA - getting ERROR while trying to open/edit Excel documents

    Hi All,
    We have configured SharePoint 2013 with Excel Service and OWA (Office Web Apps).
    After configuring, we are able to view/edit Word or PowerPoint documents from the browser (as OWA is configured). But we are getting errors while trying to open/edit Excel documents.
    We are not able to view/edit the excel workbook from the browser (through OWA).
    To open the excel in the browser, decision has to be taken at the farm level on what to be used – Excel Service or OWA Server? Is it possible to do setting at site collection level?
    Error details are given below:
    Event code: 3005
    Event message: An unhandled exception has occurred.
    Event time: 3/25/2013 1:29:08 PM
    Event time (UTC): 3/25/2013 7:59:08 AM
    Event ID: fc2e0530f493493896e6c8b6297a0423
    Event sequence: 10
    Event occurrence: 3
    Event detail code: 0
    Application information:
        Application domain: /LM/W3SVC/2/ROOT/x-1-130086717598089315
        Trust level: Full
        Application Virtual Path: /x
        Application Path: C:\Program Files\Microsoft Office Web Apps\ExcelServicesWfe\
        Machine name: VHYDMANTHSTP-02
    Process information:
        Process ID: 1252
        Process name: w3wp.exe
        Account name: NT AUTHORITY\NETWORK SERVICE
    Exception information:
        Exception type: ArgumentException
        Exception message: An entry with the same key already exists.
       at System.Collections.Generic.TreeSet`1.AddIfNotPresent(T item)
       at System.Collections.Generic.SortedDictionary`2..ctor(IDictionary`2 dictionary, IComparer`1 comparer)
       at Microsoft.Office.Excel.Server.ServiceHost.ServiceHost.GetInstalledUICultures()
       at Microsoft.Office.Excel.Server.ExcelServerRegionalSettings.IsUICultureSupported(String cultureTag, CultureInfo& cultureInfo)
       at Microsoft.Office.Excel.Server.ExcelServerRegionalSettings.SafeSetCurrentUICulture(String cultureTag, Boolean useOleo, Boolean allowCustomFallback)
       at Microsoft.Office.Excel.Server.ExcelServerRegionalSettings.SafeSetCurrentUICultureFromFrontEnd(String uiCultureTag, Boolean allowFallback)
       at Microsoft.Office.Excel.Server.ExcelServerRegionalSettings.SafeSetCurrentCulturesFromFrontEnd(String uiCultureTag, String dataCultureTag)
       at Microsoft.Office.Excel.Server.ServiceHost.ServiceHost.Microsoft.Office.Excel.Server.Host.IEwaHost.SetCurrentCulturesFromContext(HttpContext context)
       at Microsoft.Office.Excel.Server.ServiceHost.ServiceHost.Microsoft.Office.Excel.Server.Host.IEwaHost.PreProcessRequest(HttpContext context)
       at Microsoft.Office.Excel.WebUI.XlPreview.OnLoad(EventArgs e)
       at System.Web.UI.Control.LoadRecursive()
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    Request information:
        Request URL:
    http://mysrevr/x/_layouts/xlpreview.aspx?ui=en-US&rs=en-US&WOPISrc=http://myservernames1/_vti_bin/wopi.ashx/files/f36d669ceb814d67bdad0e1e1f98e466&wdSmallView=1
        Request path: /x/_layouts/xlpreview.aspx
        User host address: 10.81.138.92
        User: 
        Is authenticated: False
        Authentication Type: 
        Thread account name: NT AUTHORITY\NETWORK SERVICE
    Thread information:
        Thread ID: 13
        Thread account name: NT AUTHORITY\NETWORK SERVICE
        Is impersonating: False
        Stack trace:    at System.Collections.Generic.TreeSet`1.AddIfNotPresent(T item)
       at System.Collections.Generic.SortedDictionary`2..ctor(IDictionary`2 dictionary, IComparer`1 comparer)
       at Microsoft.Office.Excel.Server.ServiceHost.ServiceHost.GetInstalledUICultures()
       at Microsoft.Office.Excel.Server.ExcelServerRegionalSettings.IsUICultureSupported(String cultureTag, CultureInfo& cultureInfo)
       at Microsoft.Office.Excel.Server.ExcelServerRegionalSettings.SafeSetCurrentUICulture(String cultureTag, Boolean useOleo, Boolean allowCustomFallback)
       at Microsoft.Office.Excel.Server.ExcelServerRegionalSettings.SafeSetCurrentUICultureFromFrontEnd(String uiCultureTag, Boolean allowFallback)
       at Microsoft.Office.Excel.Server.ExcelServerRegionalSettings.SafeSetCurrentCulturesFromFrontEnd(String uiCultureTag, String dataCultureTag)
       at Microsoft.Office.Excel.Server.ServiceHost.ServiceHost.Microsoft.Office.Excel.Server.Host.IEwaHost.SetCurrentCulturesFromContext(HttpContext context)
       at Microsoft.Office.Excel.Server.ServiceHost.ServiceHost.Microsoft.Office.Excel.Server.Host.IEwaHost.PreProcessRequest(HttpContext context)
       at Microsoft.Office.Excel.WebUI.XlPreview.OnLoad(EventArgs e)
       at System.Web.UI.Control.LoadRecursive()
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

    I have the same issue while opening the file , i have checked every thing twice. but unable to fix this thing . can any one help.
    One more thing which is i am wondering none of the MS representative replied on this post which is originally posted on March 27-2013.
    is microsoft alive??
    Imran Bashir Network Administrator MCP, JNCIA-EX,ER,JNIOUS +92-333-4330176

  • [SOLVED] systemd user unit for lsyncd

    After following the the systemd/User - Basic setup wiki article I have successfully setup user services for systemd.  I've also setup a systemd user "unit" to run lsyncd.  The user unit appears to start successfully based on the unit status shown below.  Only problem is lsyncd isn't running and I'm not seeing any relevant errors or info with journalctl.  If I run the script defined in ExecStart on the command line lsyncd starts as expected.  Any ideas or pointers?
    OUTPUT from "systemctl --user lsyncd.service":
    lsyncd.service - lsyncd
    Loaded: loaded (/home/maseone/.config/systemd/user/lsyncd.service; enabled)
    Active: inactive (dead) since Thu 2014-08-28 18:14:50 PDT; 21min ago
    Process: 630 ExecStart=/home/maseone/.lsyncd/start_lsyncd_simple.sh (code=exited, status=0/SUCCESS)
    Main PID: 630 (code=exited, status=0/SUCCESS)
    Aug 28 18:14:50 archie230x systemd[610]: Starting lsyncd...
    Aug 28 18:14:50 archie230x systemd[610]: Started lsyncd.
    UNIT for lsyncd:
    [Unit]
    Description=lsyncd
    [Service]
    ExecStart=/home/maseone/.lsyncd/start_lsyncd_simple.sh
    [Install]
    WantedBy=default.target
    SCRIPT defined in ExecStart:
    #! /bin/sh
    /bin/lsyncd -log all /home/maseone/.lsyncd/lsyncd.lua
    Last edited by maseone (2014-08-29 04:07:58)

    firecat53 wrote:
    Try changing the service type to forking instead of simple. Or look for an lsycd option that keeps it running in the foreground.
    Scott
    Thanks for the pointer, it worked!  After reading in detail the different types available "forking" does seem the most appropriate type for a daemon written as lsyncd.  I believe using an lsyncd option named "detach" would have worked with the "simple" type but forking seemd more appropriate in my case.
    Also as an update to my original post I have completely removed the use of the shell script and am now calling lsyncd directly in my defined systemd unit.  Also using the %h variable for the home directory now.
    REVISED unit file:
    [Unit]
    Description=lsyncd
    [Service]
    Type=forking
    ExecStart=/bin/lsyncd -log scarce %h/.lsyncd/lsyncd.lua
    [Install]
    WantedBy=default.target

  • [SOLVED] Unable to Print from CUPS - DBus Errors?

    Hi all-
    I'm unable to print on CUPS after doing a recent system upgrade. Not excatly sure what's going on, but below is an output of the error log. Just as a side note- I have two arch machines. The one I'm having problems with has XFCE, my other arch has aweosme and cups works fine. So we can rule out the actual printer as being the problem.
    A few of the errors below are attempts to cancel a test print page job and getting forbidden. Not sure why this would happen other than possibly not logging in as root, but that's not even the main issue. So yea, any help would be appreciated.
    Just one more thing, I've noticed in /etc/cups that one of the config files was renamed to cupsd.conf.pacnew. Anyone know why pacman is over-writting those config files?
    W [27/Mar/2013:12:37:37 -0400] AddProfile failed: org.freedesktop.DBus.Error.UnknownMethod:No such interface `org.freedesktop.ColorManager' on object at path /org/freedesktop/ColorManager/devices/cups_EPSON_Stylus_Photo_R220
    E [27/Mar/2013:15:37:31 -0400] Returning HTTP Forbidden for Cancel-Job (ipp://localhost/jobs/44) from localhost
    E [27/Mar/2013:15:39:22 -0400] Returning HTTP Forbidden for CUPS-Add-Modify-Printer (ipp://localhost/printers/EPSON_Stylus_Photo_R220) from localhost
    E [27/Mar/2013:15:40:34 -0400] Returning HTTP Forbidden for CUPS-Get-Devices (no URI) from localhost
    E [27/Mar/2013:15:40:34 -0400] [CGI] CUPS-Get-Devices request failed with status 401: Forbidden
    E [27/Mar/2013:15:41:19 -0400] Returning HTTP Forbidden for Cancel-Job (ipp://localhost/jobs/44) from localhost
    E [27/Mar/2013:15:42:07 -0400] Returning HTTP Forbidden for Purge-Jobs (ipp://localhost/printers/EPSON_Stylus_Photo_R220) from localhost
    E [27/Mar/2013:15:42:31 -0400] Returning HTTP Forbidden for CUPS-Get-Devices (no URI) from localhost
    E [27/Mar/2013:15:42:31 -0400] [CGI] CUPS-Get-Devices request failed with status 401: Forbidden
    Last edited by w201 (2013-03-27 21:57:26)

    Inxsible wrote:
    w201 wrote:Just one more thing, I've noticed in /etc/cups that one of the config files was renamed to cupsd.conf.pacnew. Anyone know why pacman is over-writting those config files?
    In fact, it's not overwriting the config file, which is why you have a pacnew file. You need to read up a bit more on pacman and pacnew and pacsave in general.
    You should merge any and all pacnews with your corresponding config files if pacman tells you that it has created a pacnew file during upgrade. Don't just replace them with newer versions though, because it can lead to bad things like locking you out of the system if you do that for certain files like group or gshadow etc.
    You're completely right, it's not overwriting the files, hence pacnew... bad choice of words.
    ***EDIT***
    Okay....well, I read up on pacnew and pacsave. Thanks for pointing that out, Inxsible. Merging the files solved the problem.
    Thanks again!
    Last edited by w201 (2013-03-27 21:57:00)

Maybe you are looking for