Re: [Bacula-users] Bacula start OK but bconsole can't establish a connection
2008-07-08 17:07:03
Ok, I follow yor steps and the problem come with Catalog config. See the
results to run the commands:
> ps -ef | grep bacula
reynierpm@fluxbuntu-rpm:~$ ps -ef | grep bacula
root 16202 1 0 15:47 ? 00:00:00 /sbin/bacula-sd -v
-c /etc/bacula/bacula-sd.conf
root 16212 1 0 15:47 ? 00:00:00 /sbin/bacula-fd -v
-c /etc/bacula/bacula-fd.conf
1000 18990 18955 0 17:00 pts/0 00:00:00 grep --color=auto bacula
> bacula-dir -c /etc/bacula/bacula-dir.conf -d 100
reynierpm@fluxbuntu-rpm:~$ sudo bacula-dir
-c /etc/bacula/bacula-dir.conf -d 100
bacula-dir: dird.c:157-0 Debug level = 100
bacula-dir: inc_conf.c:541-0 set wilddir 80f1fa0 size=1
bacula-dir: inc_conf.c:541-0 set wildbase 80f1fa0 size=1
bacula-dir: jcr.c:132-0 read_last_jobs seek to 188
bacula-dir: jcr.c:139-0 Read num_items=0
bacula-dir: postgresql.c:103-0 db_open first time
reynierpm@fluxbuntu-rpm:~$ bacula-dir: postgresql.c:194-0
pg_real_connect done
bacula-dir: postgresql.c:196-0 db_user=bacula_user
db_name=bacula_storage_db db_password=baculauserdb
bacula-dir: dird.c:877 Could not open Catalog "MyCatalog", database
"bacula_storage_db".
bacula-dir: dird.c:882 postgresql.c:202 Unable to connect to PostgreSQL
server.
Database=bacula_storage_db User=bacula_user
It is probably not running or your password is incorrect.
08-Jul 17:03 bacula-dir ERROR TERMINATION
Please correct configuration file: /etc/bacula/bacula-dir.conf
This is the catalog.conf file content:
Catalog {
Name = MyCatalog
dbname = bacula_storage_db;
user = bacula_user;
password = "baculauserdb"
}
I miss something here? Also I test the connection to PostgreSQL ussing
this account and every is fine
-
Salu2
Ing. Reynier Pérez Mira
Grupo Soporte al Desarrollo - Dirección Técnica IP
On Tue, 2008-07-08 at 16:55 -0400, John Drescher wrote:
> On Tue, Jul 8, 2008 at 4:47 PM, Reynier Pérez Mira <rperezm AT uci DOT cu>
> wrote:
> >
> >> Try 127.0.0.1 instead of fluxbuntu-rpm for your hostnames. At least
> >> until you get it working.
> > Still the same, doesn't work yet.
> >
> >
> >> The database connection is not working. Therefore, bacula-dir is
> >> probably not running. Verify and get this working first.
> > I think this is the problem too but I can't find where it's the
> > failure. I check every: the user, the password, the name in both
> > catalog.conf file and also in PostgreSQL. Also the PostgreSQL server is
> > running. Any ideas?
> > -
>
> First start with a
>
>
> to see what bacula daemons are running.
>
>
> If bacula-dir is not running
>
> execute it from the shell
>
>
> John
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
|
|
|