hobbit-client fails to load config due to missing /var/run/hobbit

Bug #235137 reported by WebMan
32
This bug affects 2 people
Affects Status Importance Assigned to Milestone
hobbit (Ubuntu)
Confirmed
Undecided
Unassigned
Nominated for Dapper by hexagram
Nominated for Hardy by Alain Baeckeroot
Nominated for Intrepid by hexagram
Nominated for Jaunty by hexagram
Nominated for Karmic by hexagram

Bug Description

Binary package hint: hobbit-client

root@adamg-desktop:/etc/init.d# ./hobbit-client start
./hobbit-client: 79: cannot create /var/run/hobbit/bbdisp-runtime.cfg: Directory nonexistent
./hobbit-client: 79: cannot create /var/run/hobbit/clientlaunch-include.cfg: Directory nonexistent
Starting Hobbit Client: hobbitclient.

These errors are due to /var/run/hobbit not existing.
At each reboot, it seems the /var/run/hobbit directory is removed again.

Details:
1) Description: Ubuntu 8.04
Release: 8.04
2) hobbit-client:
  Installed: 4.2.0.dfsg-10
  Candidate: 4.2.0.dfsg-10
  Version table:
 *** 4.2.0.dfsg-10 0
        500 http://au.archive.ubuntu.com hardy/universe Packages
        100 /var/lib/dpkg/status
3) Hobbit client to start reporting it's status to my Hobbit server
4) Hobbit status went purple, as the hobbit client was not reporting to my Hobbit server due to not knowing where the hobbit server is.

Revision history for this message
WebMan (adam-websitemanagers) wrote :
Revision history for this message
Daniel Paufler (d-paufler-ergomedia) wrote :

same here. We set the following in our init.d script

--- snipp ---
test -x $DAEMON || exit 0

# Create hobbitclient PIDDIR
if [ -d /var/run -a ! -d /var/run/hobbit ]; then
        mkdir -p /var/run/hobbit
        chown hobbit.hobbit /var/run/hobbit
fi

# Set the right rights
if [ -d /var/lib/hobbit/tmp ]; then
        chown -R hobbit.hobbit /var/lib/hobbit/tmp
        chown -R hobbit.hobbit /usr/lib/hobbit/client/tmp
fi

# Include hobbitclient defaults if available
if [ -f /etc/default/hobbit-client ] ; then
        . /etc/default/hobbit-client
fi
--- snipp ---

Changed in hobbit:
status: New → Confirmed
Revision history for this message
Slight Slightly (slight--deactivatedaccount) wrote :

Same problem here. Thanks for the fix Daniel.

Revision history for this message
Christoph Berg (myon) wrote :

Please consider forwarding bugs to Debian so I can also fix them in the hobbit package there.

Revision history for this message
Arie Skliarouk (skliarie) wrote :

The problem exists in hobbit-client from ubuntu 9.04 (Jaunty) as well.

Revision history for this message
hexagram (denis-crewhub) wrote :

Christoph, there is not the same issue on debian due to the system architecture of directories which is different on debian.
Arie, the problem is in every version of ubuntu packages (even in 9.10)
I'm suprised that nothing has be one since early 2008...

Revision history for this message
Asif (vadud3) wrote :

We are experiencing the same issue as well.

Currently we are doing the following manually.

~$ sudo mkdir /var/run/hobbit
~$ sudo pkill -u hobbit
~$ sudo /etc/init.d/hobbit-client start
 * Starting Hobbit Client hobbitclient
   ...done.

We could add the change that ourself, but would be nice if the package gets fixed in the repo.

Revision history for this message
C Schuman (k4gbb1-embarqmail) wrote : Re: [Bug 235137] Re: hobbit-client fails to load config due to missing /var/run/hobbit

I have approx 22 client sites setup on Ubuntu servers.
While we are waiting for the Packages to be updated.

add :

# Set the correct rights
if [ -d /var/lib/hobbit/tmp ]; then
        chown -R hobbit.hobbit /var/lib/hobbit/tmp
        chown -R hobbit.hobbit /usr/lib/hobbit/client/tmp
fi

I add this behind :

# Create hobbitclient PIDDIR
if [ -d /var/run -a ! -d /var/run/hobbit ]; then
        mkdir -p /var/run/hobbit
        chown hobbit.hobbit /var/run/hobbit
fi

<<Charley>>

Asif wrote:
> We are experiencing the same issue as well.
>
> Currently we are doing the following manually.
>
> ~$ sudo mkdir /var/run/hobbit
> ~$ sudo pkill -u hobbit
> ~$ sudo /etc/init.d/hobbit-client start
> * Starting Hobbit Client hobbitclient
> ...done.
>
> We could add the change that ourself, but would be nice if the package
> gets fixed in the repo.
>
>

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.