firebird 2.0 doesn't create /var/run/firebird/2.0 entry at startup

Bug #135582 reported by Almad
70
This bug affects 1 person
Affects Status Importance Assigned to Milestone
firebird (Ubuntu)
Invalid
Undecided
Unassigned
firebird2.0 (Debian)
Fix Released
Undecided
Damyan Ivanov
firebird2.0 (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

After installation and configuration, package for Firebird 2.0 on Kubuntu Gutsy is not creating directory in /var/run/firebird/2.0 and thus, Firebird service could not start. When creating manually, directory is deleted after reboot.

Solved by creating dir and starting fbmanager manually.

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

The same is true for the firebird1.5-super-package.
As the reporter states I have to create the directory manually for getting firebird to start, like this e.g.:

sudo mkdir -p /var/run/firebird/1.5
sudo chown firebird.firebird /var/run/firebird/1.5 -R

IIRC already dapper suffered of this bug.

I am slightly disappointed of Ubuntu's QA, especially because servers are also a targeted area.

Revision history for this message
Jordi Ferrando Fabra (jferrando) wrote :

The same applies to firebird 1.5 in gusty.
Here is what show my system:

root@espada:/etc/init.d# /etc/init.d/firebird1.5-super restart
 * Firebird 1.5 server manager not running.
 * Not starting Firebird 1.5 server manager
 * Use `dpkg-reconfigure firebird1.5-super' to enable.

Reconfiguring does nothing.

Revision history for this message
Jordi Ferrando Fabra (jferrando) wrote :

I have solved the problem. It seems that the installer fails to create one directory, I have done it by hand.

root@benissa:/var/run# mkdir firebird
root@benissa:/var/run# cd firebird
root@benissa:/var/run/firebird# mkdir 1.5
root@benissa:/var/run/firebird# cd ..
root@benissa:/var/run# chown firebird:firebird firebird
root@benissa:/var/run# /etc/init.d/firebird1.5-super restart
 * Firebird 1.5 server manager not running.
 * Not starting Firebird 1.5 server manager
 * Use `dpkg-reconfigure firebird1.5-super' to enable.
root@benissa:/var/run# dpkg-reconfigure firebird1.5-super
 * Firebird 1.5 server manager not running.
 * Firebird 1.5 server manager not running.
 * Starting Firebird 1.5 server manager... server has been successfully started
                                                                                                                     [ OK ]
 * Firebird 1.5 server manager already running.

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

You have solved it, until your next reboot... /var/tmp is tmpfs in Ubuntu :-)

You can permanently "fix" it by adding the following lines on top of the /etc/init.d/firebird1.5-super script:

mkdir -p /var/run/firebird/1.5
chown firebird.firebird /var/run/firebird/1.5 -R

Revision history for this message
Stan Ionascu (stan-io) wrote :

Resolved this issue with Firebird 2.0.3 ClassicServer on Gutsy by adding:
#----------------------------------------------------------------------
FBRUNDIR=/var/run/firebird/2.0
FBUSER="firebird"
FBGROUP="firebird"

if [ -d $FBRUNDIR ]; then
        #do nothing
        echo "Directory '$FBRUNDIR' already exists."
else
        mkdir -p $FBRUNDIR
        chown $FBUSER:$FBGROUP -R $FBRUNDIR
fi
#----------------------------------------------------------------------

to the /etc/rc.local

Revision history for this message
Frau Kuchen (j-vogt) wrote :

Hello all,

I have made a workaround for Firebird SuperServer 2.0.3 on Gutsy Gibbon 7.10 Desktop x86.

sudo gedit /etc/init.d/firebird2.0-super

----------------------------------------------------------------------------------
FB_VER="2.0"
FB_FLAVOUR="super"
. /usr/share/firebird${FB_VER}-common/functions.sh

FBRunUser=firebird
PIDFILE="$RUN/fbguard.pid"
FB_OPTS="-start -forever -pidfile $PIDFILE"
NAME="Firebird $FB_VER server manager"

#################################################
# root (Juergen Vogt) at 07.11.2007 23:41:06
#################################################
if [ -d $RUN ]; then
        #do nothing
        echo "Directory '$RUN' already exists."
else
        mkdir -p $RUN
        chown $FBRunUser:firebird -R $RUN
fi
#################################################

# Check the manager is there and is executable.
MANAGER=$FB/bin/fbmgr
FBGUARD=$FB/bin/fbguard
...
----------------------------------------------------------------------------------

Best Regards

Revision history for this message
Felipe Jaekel (fkjaekel) wrote :

Will the package be fixed? I had the same problem.

Revision history for this message
Popa Adrian Marius (mapopa) wrote :

i will check in gutsy and hardy

Changed in firebird:
assignee: nobody → mapopa
Revision history for this message
Popa Adrian Marius (mapopa) wrote :

confirmed in gutsy and hardy

Changed in firebird:
status: New → Confirmed
Changed in firebird2.0:
status: Confirmed → In Progress
Revision history for this message
Popa Adrian Marius (mapopa) wrote :
Changed in firebird2.0:
status: In Progress → Fix Committed
Changed in firebird2.0:
assignee: mapopa → nobody
Changed in firebird:
status: New → Fix Committed
Changed in firebird:
status: Fix Committed → Invalid
Revision history for this message
Luca Falavigna (dktrkranz) wrote : Re: [gutsy] firebird 2.0 doesn't create /var/run/firebird/2.0 entry at startup

Patch looks good, but could you please prepare a new debdiff against version 2.0.3.12981.ds1-5ubuntu1 in Hardy?
Please, resubscribe ubuntu-universe-sponsors when ready. Thank you very much!

Changed in firebird:
assignee: nobody → mapopa
importance: Undecided → Medium
status: Invalid → Confirmed
Changed in firebird2.0:
assignee: nobody → mapopa
importance: Undecided → Medium
status: Fix Committed → Confirmed
Changed in firebird:
assignee: mapopa → nobody
importance: Medium → Undecided
status: Confirmed → Invalid
Revision history for this message
Popa Adrian Marius (mapopa) wrote :

That was the patch for gutsy , i will try an patch for hardy then

Also in hardy there is an install bug but that is another issue fixed in
firebird2.0-super (2.0.3.12981.ds1-6) from debian
http://packages.debian.org/changelogs/pool/main/f/firebird2.0/firebird2.0_2.0.3.12981.ds1-6/changelog

so i have to do these
1.request an merge for hardy [this is for sure]

2.fill an new bug for gutsy with debdiff because is an critical bug and i will need to folow the sru process

Revision history for this message
Popa Adrian Marius (mapopa) wrote :

step 1 is done i have requested an merge from debian repository

step 2 is in progress

Changed in firebird2.0:
status: New → Confirmed
status: Confirmed → In Progress
Changed in firebird2.0:
status: In Progress → Fix Committed
Revision history for this message
Popa Adrian Marius (mapopa) wrote :
Revision history for this message
Jordi Ferrando Fabra (jferrando) wrote :

This also happens in firebird2.1-super.
I modified my /etc/init.d/firebird2.1-super:

#----------------------------------------------------------------------
FBRUNDIR=/var/run/firebird/2.1
FBUSER="firebird"
FBGROUP="firebird"

if [ -d $FBRUNDIR ]; then
        #do nothing
        echo "Directory '$FBRUNDIR' already exists."
else
        mkdir -p $FBRUNDIR
        chown $FBUSER:$FBGROUP -R $FBRUNDIR
fi
#----------------------------------------------------------------------

Revision history for this message
Popa Adrian Marius (mapopa) wrote :

is fixed in git , i will update the ppa builds

Revision history for this message
Popa Adrian Marius (mapopa) wrote :

The bug fore firebird2.1 is fixed in debian git tree

http://git.debian.org/?p=pkg-firebird/2.1.git;a=shortlog

and my ppa

https://launchpad.net/~mapopa/+archive/+builds

i will notify upstream too about it (for tar.gz package installer)

Changed in firebird2.0:
assignee: nobody → dam-modsoftsys
assignee: dam-modsoftsys → dmn-debian
Revision history for this message
Damyan Ivanov (dmn-debian) wrote :

Version 2.0.3.12981.ds1-7 just uploaded to Debian/unstable, containing fix for LP#135582

http://packages.qa.debian.org/f/firebird2.0/news/20080403T150231Z.html

Changed in firebird2.0:
status: Fix Committed → Fix Released
Revision history for this message
Pontiy_Pilat (p-p) wrote :

On hardy:

apt-get install firebird2.0-super
....
Preconfiguring packages ...
Selecting previously deselected package firebird2.0-super.
(Reading database ... 17761 files and directories currently installed.)
Unpacking firebird2.0-super (from .../firebird2.0-super_2.0.3.12981.ds1-12_amd64.deb) ...
Setting up firebird2.0-super (2.0.3.12981.ds1-12) ...
find: /var/run/firebird: No such file or directory

Andreas Moog (ampelbein)
summary: - [gutsy] firebird 2.0 doesn't create /var/run/firebird/2.0 entry at
- startup
+ firebird 2.0 doesn't create /var/run/firebird/2.0 entry at startup
Revision history for this message
n3ko (n3ko74) wrote :

this bug stil exist in 2.0.4.13130-1.ds1-2 (ubuntu jaunty)

Revision history for this message
Daniel T Chen (crimsun) wrote :

Fixed in karmic

Changed in firebird2.0 (Ubuntu):
assignee: Mariuz (mapopa) → nobody
status: Confirmed → 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.