Project

General

Profile

Bug #39907

Fix Bacula plugin installation errors

Added by Bonnie Follweiler about 2 years ago. Updated about 2 years ago.

Status:
Done
Priority:
No priority
Assignee:
Martin Wilke
Category:
Middleware
Target version:
Severity:
New
Reason for Closing:
Reason for Blocked:
Needs QA:
No
Needs Doc:
No
Needs Merging:
No
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:
ChangeLog Required:
No

Description

This is in FreeNAS-11.2-MASTER-201807270859
(Build Date: Jul 27, 2018 12:10)

I installed the plugin Bacula but during installation I got an error on my console screen (Screenshot provided)

bacula.jpg (1.47 MB) bacula.jpg Bonnie Follweiler, 07/27/2018 09:53 AM
bacula_again.jpeg (1.7 MB) bacula_again.jpeg Bonnie Follweiler, 08/01/2018 06:33 AM
22967
23346

History

#1 Updated by William Grzybowski about 2 years ago

  • Assignee changed from William Grzybowski to Martin Wilke

miwi, are you handling this plugin?

#2 Updated by Martin Wilke about 2 years ago

  • Status changed from Unscreened to In Progress

From the first look, it seems like DHCP failed, which also makes the database fail. I am going to retest.

#3 Updated by Martin Wilke about 2 years ago

  • Status changed from In Progress to Ready for Testing

Quick test

as followed iocage fetch -P -n ./bacula-server.json ip4_addr="igb0|10.20.20.246" boot=on

Fetching artifact...
Running post_install.sh

Command output:
postgresql_enable:  -> YES
bacula_dir_enable:  -> YES
bacula_fd_enable:  -> YES
bacula_sd_enable:  -> YES
The files belonging to this database system will be owned by user "pgsql".
This user must also own the server process.

The database cluster will be initialized with locale "C".
The default text search configuration will be set to "english".

Data page checksums are disabled.

creating directory /usr/local/pgsql/data ... ok
creating subdirectories ... ok
selecting default max_connections ... 100
selecting default shared_buffers ... 128MB
selecting dynamic shared memory implementation ... posix
creating configuration files ... ok
creating template1 database in /usr/local/pgsql/data/base/1 ... ok
initializing pg_authid ... ok
initializing dependencies ... ok
creating system views ... ok
loading system objects' descriptions ... ok
creating collations ... ok
creating conversions ... ok
creating dictionaries ... ok
setting privileges on built-in objects ... ok
creating information schema ... ok
loading PL/pgSQL server-side language ... ok
vacuuming database template1 ... ok
copying template1 to template0 ... ok
copying template1 to postgres ... ok
syncing data to disk ... ok

WARNING: enabling "trust" authentication for local connections
You can change this by editing pg_hba.conf or using the option -A, or
--auth-local and --auth-host, the next time you run initdb.

Success. You can now start the database server using:

    /usr/local/bin/pg_ctl -D /usr/local/pgsql/data -l logfile start

LOG:  could not create IPv6 socket: Protocol not supported
LOG:  ending log output to stderr
HINT:  Future log output will go to log destination "syslog".
CREATE ROLE
CREATE DATABASE
ALTER ROLE
CREATE EXTENSION
LOG:  ending log output to stderr
HINT:  Future log output will go to log destination "syslog".
Starting bacula_dir.
Starting bacula_fd.
Starting bacula_sd.
Please save your Database Access in a safe place!
Database Name: bacula_production
Database User: bacula
Database Password: 3cJgZn3CxUXdlgu8
Documentation can be found at https://blog.bacula.org/documentation/documentation/.
The config files can be found at /usr/local/etc/bacula/.

After accessing the jail:

USER     PID %CPU %MEM    VSZ   RSS TT  STAT STARTED    TIME COMMAND
root   82606  0.0  0.0   6420  2060  -  SsJ  06:48   0:00.00 /usr/sbin/syslogd -c -ss
root   82665  0.0  0.0   6464  2056  -  IsJ  06:48   0:00.00 /usr/sbin/cron -J 15 -s
pgsql  82862  0.0  0.0 162948 20304  -  IsJ  06:48   0:00.00 postgres: checkpointer process    (postgres)
pgsql  82863  0.0  0.0 162948 20300  -  SsJ  06:48   0:00.01 postgres: writer process    (postgres)
pgsql  82864  0.0  0.0 162948 20348  -  SsJ  06:48   0:00.00 postgres: wal writer process    (postgres)
pgsql  82865  0.0  0.0 162948 20620  -  SsJ  06:48   0:00.00 postgres: autovacuum launcher process    (postgres)
pgsql  82866  0.0  0.0  17924  9588  -  SsJ  06:48   0:00.01 postgres: stats collector process    (postgres)
root   82882  0.0  0.0  14092  5592  -  IsJ  06:48   0:00.01 /usr/local/sbin/bacula-fd -u root -g wheel -v -c /usr/local/etc/bacula/bacula-fd.con
bacula 82888  0.0  0.0  14260  6084  -  IsJ  06:48   0:00.01 /usr/local/sbin/bacula-sd -u bacula -g bacula -v -c /usr/local/etc/bacula/bacula-sd.
pgsql  82860  0.0  0.0 162948 20304  2  SJ   06:48   0:00.03 /usr/local/bin/postgres -D /usr/local/pgsql/data
root   82943  0.0  0.0   7488  3284  2  SJ   06:50   0:00.01 /bin/csh -i
root   82947  0.0  0.0   6992  2296  2  R+J  06:50   0:00.00 ps aux

Everything looks correct and works as expected. Please retest.

#4 Updated by Bonnie Follweiler about 2 years ago

23346

I don't know if this makes a difference but I am installing from the new GUI.
I upgraded my minixl to FreeNAS-11.2-MASTER-201808010851
(Build Date: Aug 1, 2018 12:2)

#5 Updated by Dru Lavigne about 2 years ago

  • Target version changed from Backlog to 11.2-BETA3

#6 Updated by Martin Wilke about 2 years ago

HI,

Here is a pull request which fix the database issue, and address the wrong permission for the bacula.log
https://github.com/freenas/iocage-plugin-bacula-server/pull/4

Please notes: below output can be safely ignored,

Aug  2 05:46:46 bacula-server postgres[18892]: [5-1] ERROR:  role "bacula" already exists
Aug  2 05:46:46 bacula-server postgres[18892]: [5-2] STATEMENT:  create user bacula ;
Aug  2 05:46:47 bacula-server bacula-dir: 02-Aug 05:46  Message delivery ERROR: fopen /var/log/bacula.log failed: ERR=Permission denied

#7 Updated by Martin Wilke about 2 years ago

  • Status changed from Failed Testing to Ready for Testing

#8 Updated by Dru Lavigne about 2 years ago

  • Subject changed from When I install the Bacula plug in I get an "Fatal" error on my console to Fix Bacula plugin installation errors
  • Needs Doc changed from Yes to No
  • Needs Merging changed from Yes to No

#9 Updated by Bonnie Follweiler about 2 years ago

  • Status changed from Ready for Testing to Passed Testing

Test Passed in FreeNAS-11.2-MASTER-201808290900

#10 Updated by Dru Lavigne about 2 years ago

  • Status changed from Passed Testing to Done
  • Needs QA changed from Yes to No

Also available in: Atom PDF