Welcome! » Log In » Create A New Profile

Errors while try to install Bacula

Posted by Anonymous 
Errors while try to install Bacula
May 13, 2008 07:24PM
Hi every:
After some time out of Bacula I'm back again but with some problems. I install a test server with Ubuntu 8.04 Server, now I need to get installed and configured Bacula there. For that I do this in a terminal:

#apt-get install bacula-client bacula-common bacula-console bacula-director-common bacula-director-pgsql bacula-fd bacula-sd bacula-sd-pgsql bacula-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
bacula-doc postgresql-contrib dds2tar scsitools sg3-utils
Recommended packages:
bacula-traymonitor bacula-sd-tools mt-st
The following NEW packages will be installed:
bacula-client bacula-common bacula-console bacula-director-common bacula-director-pgsql bacula-fd bacula-sd
bacula-sd-pgsql bacula-server
0 upgraded, 9 newly installed, 0 to remove and 0 not upgraded.
Need to get 2772kB of archives.
After this operation, 6717kB of additional disk space will be used.
Get:1 http://ubuntu.prod.uci.cu hardy/main bacula-common 2.2.8-5ubuntu7 [384kB]
Get:2 http://ubuntu.prod.uci.cu hardy/main bacula-console 2.2.8-5ubuntu7 [133kB]
Get:3 http://ubuntu.prod.uci.cu hardy/main bacula-director-common 2.2.8-5ubuntu7 [260kB]
Get:4 http://ubuntu.prod.uci.cu hardy/main bacula-director-pgsql 2.2.8-5ubuntu7 [470kB]
Get:5 http://ubuntu.prod.uci.cu hardy/main bacula-sd 2.2.8-5ubuntu7 [828kB]
Get:6 http://ubuntu.prod.uci.cu hardy/main bacula-fd 2.2.8-5ubuntu7 [190kB]
Get:7 http://ubuntu.prod.uci.cu hardy/main bacula-client 2.2.8-5ubuntu7 [43.6kB]
Get:8 http://ubuntu.prod.uci.cu hardy/main bacula-sd-pgsql 2.2.8-5ubuntu7 [420kB]
Get:9 http://ubuntu.prod.uci.cu hardy/main bacula-server 2.2.8-5ubuntu7 [43.7kB]
Fetched 2772kB in 0s (8408kB/s)
Preconfiguring packages ...
Selecting previously deselected package bacula-common.
(Reading database ... 77106 files and directories currently installed.)
Unpacking bacula-common (from .../bacula-common_2.2.8-5ubuntu7_i386.deb) ...
Selecting previously deselected package bacula-console.
Unpacking bacula-console (from .../bacula-console_2.2.8-5ubuntu7_i386.deb) ...
Setting up bacula-common (2.2.8-5ubuntu7) ...
Selecting previously deselected package bacula-director-common.
(Reading database ... 77228 files and directories currently installed.)
Unpacking bacula-director-common (from .../bacula-director-common_2.2.8-5ubuntu7_i386.deb) ...
Selecting previously deselected package bacula-director-pgsql.
Unpacking bacula-director-pgsql (from .../bacula-director-pgsql_2.2.8-5ubuntu7_i386.deb) ...
Selecting previously deselected package bacula-sd.
Unpacking bacula-sd (from .../bacula-sd_2.2.8-5ubuntu7_i386.deb) ...
Selecting previously deselected package bacula-fd.
Unpacking bacula-fd (from .../bacula-fd_2.2.8-5ubuntu7_i386.deb) ...
Selecting previously deselected package bacula-client.
Unpacking bacula-client (from .../bacula-client_2.2.8-5ubuntu7_all.deb) ...
Selecting previously deselected package bacula-sd-pgsql.
Unpacking bacula-sd-pgsql (from .../bacula-sd-pgsql_2.2.8-5ubuntu7_i386.deb) ...
Selecting previously deselected package bacula-server.
Unpacking bacula-server (from .../bacula-server_2.2.8-5ubuntu7_all.deb) ...
Setting up bacula-console (2.2.8-5ubuntu7) ...

Setting up bacula-director-common (2.2.8-5ubuntu7) ...

Setting up bacula-director-pgsql (2.2.8-5ubuntu7) ...
dpkg: --compare-versions takes three arguments: <version> <relation> <version>

Type dpkg --help for help about installing and deinstalling packages [*];
Use `dselect' or `aptitude' for user-friendly package management;
Type dpkg -Dhelp for a list of dpkg debug flag values;
Type dpkg --force-help for a list of forcing options;
Type dpkg-deb --help for help about manipulating *.deb files;
Type dpkg --license for copyright license and lack of warranty (GNU GPL) [*].

Options marked [*] produce a lot of output - pipe it through `less' or `more' !
* Starting Bacula Director: 13-May 22:10 bacula-dir: ERROR TERMINATION at parse_conf.c:829
Config error: Cannot open config file "/etc/bacula/bacula-dir.conf": No such file or directory
dpkg: error processing bacula-director-pgsql (--configure):
subprocess post-installation script returned error exit status 1
Setting up bacula-sd (2.2.8-5ubuntu7) ...

Setting up bacula-fd (2.2.8-5ubuntu7) ...

Setting up bacula-client (2.2.8-5ubuntu7) ...
Setting up bacula-sd-pgsql (2.2.8-5ubuntu7) ...
dpkg: dependency problems prevent configuration of bacula-server:
bacula-server depends on bacula-director-mysql (>= 2.2.8-5ubuntu7) | bacula-director; however:
Package bacula-director-mysql is not installed.
Package bacula-director is not installed.
Package bacula-director-pgsql which provides bacula-director is not configured yet.
dpkg: error processing bacula-server (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
bacula-director-pgsql
bacula-server
E: Sub-process /usr/bin/dpkg returned an error code (1)

As you can note I have a error "Config error: Cannot open config file "/etc/bacula/bacula-dir.conf": No such file or directory " wich is with bacula-dir.conf file. I take a look to that directory to see if file exists and it doesn't exists. Any help?

Cheers and thanks in advance
Ing. Reynier Pérez Mira
Grupo Soporte al Desarrollo - Dirección Técnica IP

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bacula-users mailing list
Bacula-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users
Errors while try to install Bacula
May 13, 2008 07:33PM
[quote]As you can note I have a error "Config error: Cannot open config file "/etc/bacula/bacula-dir.conf": No such file or directory " wich is with bacula-dir.conf file. I take a look to that directory to see if file exists and it doesn't exists. Any help?

[/quote]Read the manual. You are supposed to create the config file yourself
to configure bacula for your network.

John

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bacula-users mailing list
Bacula-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users
Errors while try to install Bacula
May 14, 2008 12:10AM
Hi,

14.05.2008 04:32, John Drescher wrote:
[quote][quote]As you can note I have a error "Config error: Cannot open config file "/etc/bacula/bacula-dir.conf": No such file or directory " wich is with bacula-dir.conf file. I take a look to that directory to see if file exists and it doesn't exists. Any help?

[/quote]Read the manual. You are supposed to create the config file yourself
to configure bacula for your network.
[/quote]
Well, technically John is correct of course, but I suppose what
Reynier encountered is a packaging problem.

I don't know how the ubuntu packages are supposed to work, but there
seems to be a previous problem:

[quote]Setting up bacula-director-pgsql (2.2.8-5ubuntu7) ...
dpkg: --compare-versions takes three arguments: <version> <relation> <version>

Type dpkg --help for help about installing and deinstalling packages [*];
Use `dselect' or `aptitude' for user-friendly package management;
Type dpkg -Dhelp for a list of dpkg debug flag values;
Type dpkg --force-help for a list of forcing options;
Type dpkg-deb --help for help about manipulating *.deb files;
Type dpkg --license for copyright license and lack of warranty (GNU GPL) [*].
[/quote]
This looks like dpkg was called incorrectly one step earlier.

If nobody else has a suggestion I recommend to get in touch with the
packager.

As far as I know, Bacula should be supported by Ubuntu out of the box,
i.e. this sort of problems shouldn't happen.

Arno

[quote]John

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bacula-users mailing list
Bacula-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

[/quote]
--
Arno Lehmann
IT-Service Lehmann
www.its-lehmann.de

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bacula-users mailing list
Bacula-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users
Errors while try to install Bacula
May 14, 2008 06:08AM
Hi,

[quote]Well, technically John is correct of course, but I suppose what
Reynier encountered is a packaging problem.
[/quote]I didn't receive the John mail for that reason I don't reply to him. However in previous versions when I install from repository the package create the bacula-dir.conf. Now following you and John, what you suggest me compile and install from source? I haven't a lot of knowledge to see inside Ubuntu packages and try to help.

Ing. Reynier Pérez Mira
Grupo Soporte al Desarrollo - Dirección Técnica IP

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bacula-users mailing list
Bacula-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users
Errors while try to install Bacula
May 14, 2008 06:50AM
[quote][quote]Well, technically John is correct of course, but I suppose what
Reynier encountered is a packaging problem.
[/quote]I didn't receive the John mail for that reason I don't reply to him. However in previous versions when I install from repository the package create the bacula-dir.conf. Now following you and John, what you suggest me compile and install from source?
[/quote]
No that was not what I was getting at. As Arno pointed out Ubuntu
should have provided an example bacula-dir.conf and there was
something wrong with the install of the example. This example is just
a basic file for you to edit to your needs. Do you have any
bacula-dir.conf file from a previous version of bacula? Or you can
take the example bacula-dir.conf file from the manual. You can find
that here:

http://www.bacula.org/en/dev-manual/Configuring_Director.html#SECTION0014200000000000000000

After you get this basic bacula-dir.conf file it is up to the user to
configure it for your system.

John

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bacula-users mailing list
Bacula-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users
Errors while try to install Bacula
May 14, 2008 07:01AM
Hi John:

[quote]As Arno pointed out Ubuntu
should have provided an example bacula-dir.conf and there was
something wrong with the install of the example. This example is just
a basic file for you to edit to your needs. Do you have any
bacula-dir.conf file from a previous version of bacula?
[/quote]
But Ubuntu not provide me a bacula-dir.conf file and I clean up the directory after remove the earlier version. By clean up I mean that I remove every file (first I made a backup of this old files)

[quote]Or you can
take the example bacula-dir.conf file from the manual. You can find
that here:

http://www.bacula.org/en/dev-
manual/Configuring_Director.html#SECTION0014200000000000000000

After you get this basic bacula-dir.conf file it is up to the user to
configure it for your system.
[/quote]
Let me try with this, maybe this can help me
Cheers
Ing. Reynier Pérez Mira
Grupo Soporte al Desarrollo - Dirección Técnica IP

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bacula-users mailing list
Bacula-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users
Errors while try to install Bacula
May 14, 2008 07:27AM
Hi,
well following your instructions I made a bacula-dir.conf file and place it in /etc/bacula directory. After that I reinstall the bacula:

# apt-get install bacula-client bacula-common bacula-console bacula-director-common bacula-director-pgsql bacula-fd bacula-sd bacula-sd-pgsql bacula-server

And I still getting errors. See the logs:

Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
bacula-doc postgresql-contrib dds2tar scsitools sg3-utils
Recommended packages:
bacula-traymonitor bacula-sd-tools mt-st
The following NEW packages will be installed:
bacula-client bacula-common bacula-console bacula-director-common
bacula-director-pgsql bacula-fd bacula-sd bacula-sd-pgsql bacula-server
0 upgraded, 9 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/2772kB of archives.
After this operation, 6717kB of additional disk space will be used.
Preconfiguring packages ...
Selecting previously deselected package bacula-common.
(Reading database ... 77106 files and directories currently installed.)
Unpacking bacula-common (from .../bacula-common_2.2.8-5ubuntu7_i386.deb) ...
Selecting previously deselected package bacula-console.
Unpacking bacula-console (from .../bacula-console_2.2.8-5ubuntu7_i386.deb) ...
Setting up bacula-common (2.2.8-5ubuntu7) ...

Selecting previously deselected package bacula-director-common.
(Reading database ... 77228 files and directories currently installed.)
Unpacking bacula-director-common (from .../bacula-director-common_2.2.8-5ubuntu7_i386.deb) ...
Selecting previously deselected package bacula-director-pgsql.
Unpacking bacula-director-pgsql (from .../bacula-director-pgsql_2.2.8-5ubuntu7_i386.deb) ...
Selecting previously deselected package bacula-sd.
Unpacking bacula-sd (from .../bacula-sd_2.2.8-5ubuntu7_i386.deb) ...
Selecting previously deselected package bacula-fd.
Unpacking bacula-fd (from .../bacula-fd_2.2.8-5ubuntu7_i386.deb) ...
Selecting previously deselected package bacula-client.
Unpacking bacula-client (from .../bacula-client_2.2.8-5ubuntu7_all.deb) ...
Selecting previously deselected package bacula-sd-pgsql.
Unpacking bacula-sd-pgsql (from .../bacula-sd-pgsql_2.2.8-5ubuntu7_i386.deb) ...
Selecting previously deselected package bacula-server.
Unpacking bacula-server (from .../bacula-server_2.2.8-5ubuntu7_all.deb) ...
Setting up bacula-console (2.2.8-5ubuntu7) ...

Setting up bacula-director-common (2.2.8-5ubuntu7) ...

Setting up bacula-director-pgsql (2.2.8-5ubuntu7) ...
dpkg: --compare-versions takes three arguments: <version> <relation> <version>

Type dpkg --help for help about installing and deinstalling packages [*];
Use `dselect' or `aptitude' for user-friendly package management;
Type dpkg -Dhelp for a list of dpkg debug flag values;
Type dpkg --force-help for a list of forcing options;
Type dpkg-deb --help for help about manipulating *.deb files;
Type dpkg --license for copyright license and lack of warranty (GNU GPL) [*].

Options marked [*] produce a lot of output - pipe it through `less' or `more' !
* Starting Bacula Director: 14-May 09:59 bacula-dir: ERROR TERMINATION at util.c:709
Working Directory: "/home/kern/bacula/bin/working" not found. Cannot continue. [fail]
dpkg: error processing bacula-director-pgsql (--configure):
subprocess post-installation script returned error exit status 1
Setting up bacula-sd (2.2.8-5ubuntu7) ...

Setting up bacula-fd (2.2.8-5ubuntu7) ...

Setting up bacula-client (2.2.8-5ubuntu7) ...
Setting up bacula-sd-pgsql (2.2.8-5ubuntu7) ...
dpkg: dependency problems prevent configuration of bacula-server:
bacula-server depends on bacula-director-mysql (>= 2.2.8-5ubuntu7) | bacula-director; however:
Package bacula-director-mysql is not installed.
Package bacula-director is not installed.
Package bacula-director-pgsql which provides bacula-director is not configured yet.
dpkg: error processing bacula-server (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
bacula-director-pgsql
bacula-server
E: Sub-process /usr/bin/dpkg returned an error code (1)

What's wrong here? Has this something to do with PgSQL support?
Cheers
Ing. Reynier Pérez Mira
Grupo Soporte al Desarrollo - Dirección Técnica IP

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bacula-users mailing list
Bacula-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users
Errors while try to install Bacula
May 14, 2008 07:46AM
[quote]What's wrong here? Has this something to do with PgSQL support?
Cheers

[/quote]You have to configure the file to match your system. I guarantee that
you do not have the path "/home/kern/bacula/bin/working" on your
system. I do not use Ubuntu so I am not at all sure what they provide
as an example file but with gentoo (what I use) there is no way the
example config file would work at all without customizing it to match
my system.

John

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bacula-users mailing list
Bacula-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users
Sorry, only registered users may post in this forum.

Click here to login