Missing directory /var/run/firebird2

Bug #33235 reported by Yves Glodt
52
Affects Status Importance Assigned to Milestone
firebird2 (Ubuntu)
Fix Released
Medium
Lionel Porcheron

Bug Description

When installing the firebird2-classic-server package, the directory
/var/run/firebird2 is not created, and thus firebird2 won't run...

Manually creating the directory fixed the problem for me.\

It also needs
chown firebird:firebird /var/run/firebird2

The directory needs to be recreated as /var/run is tmpfs by default (?) in dapper so it's cleared on each restart of the system.

Tags: firebird
Revision history for this message
Yves Glodt (yglodt) wrote :

After more investination it seems that its udev which should create
this directory... but for a reason I don't know it doesn't...

Revision history for this message
teceha (teceha) wrote :

The installing script tries to chown and chmod the directory, but it's of no use when the directory doesn't exist. The script leaves a dangling symbolic link /usr/lib/firebird2/run -> /var/run/firebird2.

The above fixing solution works for me too.

Revision history for this message
teceha (teceha) wrote :

The directory /var/run/firebird2 disapears after reboot. Now it needs to be manually recreated each time after system startup. So it's not a problem of the install script. In my system the classic server is started by xinetd.

Revision history for this message
teceha (teceha) wrote :

Here comes the explanation to the above:
$ mount
(...)
varrun on /var/run type tmpfs (rw)
(...)

Revision history for this message
teceha (teceha) wrote :

reproduced many times on my system

Changed in firebird2:
status: Unconfirmed → Confirmed
teceha (teceha)
description: updated
Revision history for this message
Philippe Clérié (pclerie) wrote :

I just got hit by this one too. The initial bug report is 6 months old now.

Revision history for this message
Alexandre Rocha Lima e Marcondes (alexandre-psl-pr) wrote :

This patch solves the problem

Revision history for this message
teceha (teceha) wrote :

The above solution is for firebird2-super-server started as a daemon by /etc/init.d/firebird2 .
It is not suitable for firebird2-classic-server which is started by xinetd service for gds_db.

Revision history for this message
griph (griph) wrote :

It's possible to put script for creating /var/run/firebird2 and setting its permissions to
/etc/init.d and then call it with /etc/rcS.d

/etc/init.d/firebird.sh:

#!/bin/sh
mkdir /var/run/firebird2
chmod 770 /var/run/firebird2
chown firebird:firebird /var/run/firebird2

and then do somethig like...

sudo /etc/init.d/firebird.sh # to start work without reboot
sudo update-rc.d start firebird.sh 64 S . # to recreate directory automatically

...if I remember update-rc.d parameters order right.
This works on my two ubuntu 6.06 servers.

Revision history for this message
teceha (teceha) wrote :

The order of update-rc.d's parameters given above is wrong. It should be

sudo update-rc.d firebird.sh start 64 S .

Now this works on my firebird server (on dapper 6.06.1) too.

Changed in firebird2:
assignee: nobody → lionel.porcheron
Revision history for this message
Lionel Porcheron (lionel.porcheron) wrote :

Changelog for this patch:
firebird2 (1.5.3.4870-12ubuntu2) feisty; urgency=low

  * debian/firebird2: create /var/run/firebird2 directory if necessary and set proper permissions (Closes LP #33235)
  * debian/firebird2: correct bashism L28 (Closes LP #59633)

Revision history for this message
Michael Bienia (geser) wrote :

-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

Format: 1.7
Date: Wed, 14 Feb 2007 22:20:07 +0100
Source: firebird2
Binary: firebird2-utils-classic libfbclient1 firebird2-super-server libfbembed1 firebird2-dev
+firebird2-server-common firebird2-utils-super firebird2-examples firebird2-classic-server
+firebird2-common
Architecture: source
Version: 1.5.3.4870-12ubuntu2
Distribution: feisty
Urgency: low
Maintainer: Debian Firebird Group <email address hidden>
Changed-By: Lionel Porcheron <email address hidden>
Description:
 firebird2-classic-server - Firebird Classic Server - an RDBMS based on InterBase 6.0 code
 firebird2-common - Common files for firebird clients and servers
 firebird2-dev - Development files for Firebird - an RDBMS based on InterBase 6.0
 firebird2-examples - Examples for Firebird - an RDBMS based on InterBase 6.0 code
 firebird2-server-common - Common files for Firebird servers
 firebird2-super-server - Firebird Super Server - an RDBMS based on InterBase 6.0 code
 firebird2-utils-classic - Utilities for Firebird - an RDBMS based on InterBase 6.0 code
 firebird2-utils-super - Utilities for Firebird - an RDBMS based on InterBase 6.0 code
 libfbclient1 - Firebird client library
 libfbembed1 - Firebird embedded client/server library
Launchpad-Bugs-Fixed: 33235 59633
Changes:
 firebird2 (1.5.3.4870-12ubuntu2) feisty; urgency=low
 .
   * debian/firebird2: create /var/run/firebird2 directory if necessary and set
     proper permissions (Closes LP: #33235)
   * debian/firebird2: correct bashism L28 (Closes LP: #59633)
Files:
 c39d2432275dd056deebe06bb0cc99d4 1153 misc optional firebird2_1.5.3.4870-12ubuntu2.dsc
 b9fbabfa1de45f3910c9ba883e009b1b 401021 misc optional firebird2_1.5.3.4870-12ubuntu2.diff.gz

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.2 (GNU/Linux)

iQCVAwUBRdOl2aPP1313boLqAQPvBwQAr4a4j0dvMKkTopMg6+Ysnl7b63F8VfHZ
fEhu8gE18RRkp7ek/5GDUYrQ3uhmhm4EeY16Bn7NyzH3e+YUMI1RCVI9ZqH1Naar
7/6LEtKbr/g/Nk7t5M2tEnuW23hZdu6bj6+PzE6zlJp7P0WsIQ84BDDn0n/m8NhV
MDwCX0vuAGQ=
=6Xi2
-----END PGP SIGNATURE-----

Changed in firebird2:
status: Confirmed → Fix Committed
Revision history for this message
Lionel Porcheron (lionel.porcheron) wrote :

firebird2 1.5.3.4870-12ubuntu2 is now in the archive.

Changed in firebird2:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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