Hello Carsten,

    in the attachments you can find the results. But it seems to be
restarted correctly. I have tested it also with the brand new kernel and
the problem still persist. I cannot recognize any ps output differences
between the 3.x kernels (wrong functionality) and 2.x kernels (works well).

    But I have found another clue - there is a significant difference in
the director start log after the restart, I did not checked the debug
messages during the correct behavior with kernel 2.x. It seems the
director is not able to connect to pg database, so that's the reason why
the port 9101 is not opened. If you look on the two attachedn director
start logs, then in the case of the working 2.x kernel configuration the
DB is connected properly and some information is read from DB, in the
case of the problematic kernel 3.x the log of the debug messages ends
with the message about the first init:
2.x debug messages:
24-Apr-2015 19:45:01 bacula-dir: dir_plugins.c:162-0 No dir plugin dir!
24-Apr-2015 19:45:01 bacula-dir: bpipe.c:367-0 Run program returning 0
24-Apr-2015 19:45:01 bacula-dir: bpipe.c:367-0 Run program returning 0
24-Apr-2015 19:45:01 bacula-dir: postgresql.c:1120-0 db_init_database
first time
[ ok 24-Apr-2015 19:45:02 bacula-dir: postgresql.c:241-0 pg_real_connect
done
24-Apr-2015 19:45:02 bacula-dir: postgresql.c:243-0 db_user=bacula_dir
db_name=bacula_db db_password=bacula_password
.
root@alg-vun-netmng:~# 24-Apr-2015 19:45:02 alg-vun-netmng-dir:
pythonlib.c:102-0 No script dir. prog=DirStartUp
24-Apr-2015 19:45:02 alg-vun-netmng-dir: bnet_server.c:95-0 Addresses
host[ipv4:0.0.0.0:9101]
24-Apr-2015 19:45:02 alg-vun-netmng-dir: job.c:1331-0 wstorage=bacula-sd
24-Apr-2015 19:45:02 alg-vun-netmng-dir: job.c:1340-0 wstore=bacula-sd
where=Job

3.x debug messages:

24-Apr-2015 19:51:31 bacula-dir: dir_plugins.c:162-0 No dir plugin dir!
24-Apr-2015 19:51:31 bacula-dir: bpipe.c:367-0 Run program returning 0
24-Apr-2015 19:51:31 bacula-dir: bpipe.c:367-0 Run program returning 0
24-Apr-2015 19:51:31 bacula-dir: postgresql.c:1120-0 db_init_database
first time
. ok
root@alg-vun-netmng:/home/alglogin#

 Generally I think, the postgres client has no problems with the
connections in the new kernel environment, so I gues, the problem must
be somwhere in bacula-director-pg package...

Dne 23.4.2015 v 13:12 Carsten Leonhardt napsal(a):
> Hi Artur,
>
> could you please send the output of
>
> ps xuaw | grep bacula-dir
>
>  - after reboot
>  - after the connect with bat
>  - after /etc/init.d/bacula-dir stop
>  - after /etc/init.d/bacula-dir start
>
> Sounds like the director might be hanging, it could be interesting to
> see if the PID changes and what state the process might be in.

root@alg-vun-netmng:~# ps xuaw | grep bacula-dir
bacula    2324  0.0  0.9 120132  4976 ?        Ssl  19:37   0:00 /usr/sbin/bacula-dir -c /etc/bacula/bacula-dir.conf -u bacula -g bacula -d 150 -dt
root      2344  0.0  0.1   4048   528 ?        Ss   19:37   0:00 startpar -f -- bacula-director
root      2907  0.0  0.1  10020   924 pts/1    S+   19:42   0:00 grep bacula-dir
root@alg-vun-netmng:~# ps xuaw | grep bacula-dir
bacula    2324  0.0  0.9 128348  5152 ?        Ssl  19:37   0:00 /usr/sbin/bacula-dir -c /etc/bacula/bacula-dir.conf -u bacula -g bacula -d 150 -dt
root      2344  0.0  0.1   4048   528 ?        Ss   19:37   0:00 startpar -f -- bacula-director
root      2913  0.0  0.1  10020   928 pts/1    S+   19:43   0:00 grep bacula-dir
root@alg-vun-netmng:~# ps xuaw | grep bacula-dir
root      2945  0.0  0.1  10016   920 pts/1    S+   19:44   0:00 grep bacula-dir
root@alg-vun-netmng:~# ps xuaw | grep bacula-dir
bacula    2959  0.0  0.9 123872  5000 ?        Ssl  19:45   0:00 /usr/sbin/bacula-dir -c /etc/bacula/bacula-dir.conf -u bacula -g bacula -d 150 -dt
root      2990  0.0  0.1  10016   920 pts/1    S+   19:46   0:00 grep bacula-dir
root@alg-vun-netmng:~# /etc/init.d/bacula-director start
[....] Starting Bacula Director...: bacula-dirbacula-dir: dird.c:185-0 Debug level = 150
24-Apr-2015 19:45:01 bacula-dir: dird.c:185-0 Debug level = 150
24-Apr-2015 19:45:01 bacula-dir: inc_conf.c:556-0 set wildbase 1bd99e8 size=1 *~
24-Apr-2015 19:45:01 bacula-dir: inc_conf.c:556-0 set wildbase 1bda068 size=1 *~
24-Apr-2015 19:45:01 bacula-dir: inc_conf.c:556-0 set wildbase 1bda6b8 size=1 *~
24-Apr-2015 19:45:01 bacula-dir: jcr.c:140-0 read_last_jobs seek to 192
24-Apr-2015 19:45:01 bacula-dir: jcr.c:147-0 Read num_items=10
24-Apr-2015 19:45:01 bacula-dir: dir_plugins.c:160-0 Load dir plugins
24-Apr-2015 19:45:01 bacula-dir: dir_plugins.c:162-0 No dir plugin dir!
24-Apr-2015 19:45:01 bacula-dir: bpipe.c:367-0 Run program returning 0
24-Apr-2015 19:45:01 bacula-dir: bpipe.c:367-0 Run program returning 0
24-Apr-2015 19:45:01 bacula-dir: postgresql.c:1120-0 db_init_database first time
[ ok 24-Apr-2015 19:45:02 bacula-dir: postgresql.c:241-0 pg_real_connect done
24-Apr-2015 19:45:02 bacula-dir: postgresql.c:243-0 db_user=bacula_dir db_name=bacula_db db_password=bacula_password
.
root@alg-vun-netmng:~# 24-Apr-2015 19:45:02 alg-vun-netmng-dir: pythonlib.c:102-0 No script dir. prog=DirStartUp
24-Apr-2015 19:45:02 alg-vun-netmng-dir: bnet_server.c:95-0 Addresses host[ipv4:0.0.0.0:9101] 
24-Apr-2015 19:45:02 alg-vun-netmng-dir: job.c:1331-0 wstorage=bacula-sd
24-Apr-2015 19:45:02 alg-vun-netmng-dir: job.c:1340-0 wstore=bacula-sd where=Job resource
24-Apr-2015 19:45:02 alg-vun-netmng-dir: job.c:1031-0 JobId=0 created Job=*JobMonitor*.2015-04-24_19.45.02_01

root@alg-vun-netmng:~# 
 ps xuaw | grep bacula-dir
 bacula    2302  0.0  1.5 120192  7940 ?        Ssl  17:28   0:00 /usr/sbin/bacula-dir -c /etc/bacula/bacula-dir.conf -u bacula -g bacula -d 150 -dt
 root      2322  0.0  0.2   4108  1368 ?        Ss   17:28   0:00 startpar -f -- bacula-director
 root      2842  0.0  0.4  10080  2072 pts/1    S+   18:06   0:00 grep bacula-dir
 
ps xuaw | grep bacula-dir
bacula    2302  0.0  1.5 128388  7964 ?        Ssl  17:28   0:00 /usr/sbin/bacula-dir -c /etc/bacula/bacula-dir.conf -u bacula -g bacula -d 150 -dt
root      2322  0.0  0.2   4108  1368 ?        Ss   17:28   0:00 startpar -f -- bacula-director
root      2849  0.0  0.4  10080  2096 pts/1    S+   18:08   0:00 grep bacula-dir
 ps xuaw | grep bacula-dir
 root      2910  0.0  0.4  10076  2100 pts/1    S+   18:10   0:00 grep bacula-dir
root@alg-vun-netmng:~# ps xuaw | grep bacula-dir
bacula    2924  0.0  1.1 106788  5856 ?        Ss   18:11   0:00 /usr/sbin/bacula-dir -c /etc/bacula/bacula-dir.conf -u bacula -g bacula -d 150 -dt
root      2945  0.0  0.3  10076  1944 pts/1    S+   18:11   0:00 grep bacula-dir
root@alg-vun-netmng:~# ps xuaw | grep bacula-dir
bacula    2295  0.0  1.5 120192  7920 ?        Ssl  19:30   0:00 /usr/sbin/bacula-dir -c /etc/bacula/bacula-dir.conf -u bacula -g bacula -d 150 -dt
root      2315  0.0  0.2   4108  1380 ?        Ss   19:30   0:00 startpar -f -- bacula-director
root      2816  0.0  0.3  10080  1988 pts/1    S+   19:31   0:00 grep bacula-dir
root@alg-vun-netmng:~# ps xuaw | grep bacula-dir
bacula    2295  0.0  1.5 120192  7920 ?        Ssl  19:30   0:00 /usr/sbin/bacula-dir -c /etc/bacula/bacula-dir.conf -u bacula -g bacula -d 150 -dt
root      2315  0.0  0.2   4108  1380 ?        Ss   19:30   0:00 startpar -f -- bacula-director
root      2816  0.0  0.3  10080  1988 pts/1    S+   19:31   0:00 grep bacula-dir
root@alg-vun-netmng:~# ps xuaw | grep bacula-dir
root      2853  0.0  0.3  10076  1856 pts/1    S+   19:34   0:00 grep bacula-dir
root@alg-vun-netmng:/home/alglogin/test# ps xuaw | grep bacula-dir
bacula    2853  0.0  1.1 107068  5928 ?        Ss   19:51   0:00 /usr/sbin/bacula-dir -c /etc/bacula/bacula-dir.conf -u bacula -g bacula -d 150 -dt
root      2915  0.0  0.3  10076  1844 pts/1    S+   20:02   0:00 grep bacula-dir
root@alg-vun-netmng:/home/alglogin# /etc/init.d/bacula-director start
[....] Starting Bacula Director...: bacula-dirbacula-dir: dird.c:185-0 Debug level = 150
24-Apr-2015 19:51:31 bacula-dir: dird.c:185-0 Debug level = 150
24-Apr-2015 19:51:31 bacula-dir: inc_conf.c:556-0 set wildbase 248a9e8 size=1 *~
24-Apr-2015 19:51:31 bacula-dir: inc_conf.c:556-0 set wildbase 248b068 size=1 *~
24-Apr-2015 19:51:31 bacula-dir: inc_conf.c:556-0 set wildbase 248b6b8 size=1 *~
24-Apr-2015 19:51:31 bacula-dir: jcr.c:140-0 read_last_jobs seek to 192
24-Apr-2015 19:51:31 bacula-dir: jcr.c:147-0 Read num_items=10
24-Apr-2015 19:51:31 bacula-dir: dir_plugins.c:160-0 Load dir plugins
24-Apr-2015 19:51:31 bacula-dir: dir_plugins.c:162-0 No dir plugin dir!
24-Apr-2015 19:51:31 bacula-dir: bpipe.c:367-0 Run program returning 0
24-Apr-2015 19:51:31 bacula-dir: bpipe.c:367-0 Run program returning 0
24-Apr-2015 19:51:31 bacula-dir: postgresql.c:1120-0 db_init_database first time
. ok 
root@alg-vun-netmng:/home/alglogin# 

Reply via email to