Short version of this post: I removed the pkg, tried PBI, didn't work, 
installed pkg, worked.

Here is what I just tried:

* pkg delete bacula-client
* install bacula-client via webgui
* copy my working configuration file:
  cp  /usr/local/etc/bacula/bacula-fd.conf 
/usr/pbi/bacula-amd64/local/etc/bacula-fd.conf
* /usr/local/sbin/bacula-fd  -u root -g wheel -v -c  
/usr/pbi/bacula-amd64/local/etc/bacula-fd.conf

*status client=bast-fd
Connecting to Client bast-fd at bast.int.unixathome.org:9102
Failed to connect to Client bast-fd.
====
You have messages.
*m
09-Feb 17:05 bacula-dir JobId 0: Fatal error: Unable to authenticate with File 
daemon at "bast.int.unixathome.org:9102". Possible causes:
Passwords or names not the same or
Maximum Concurrent Jobs exceeded on the FD or
FD networking messed up (restart daemon).
Please see 
http://www.bacula.org/en/rel-manual/Bacula_Freque_Asked_Questi.html#SECTION00260000000000000000
 for help.
*

To go back to the pkg binaries:

* delete the PBI bacula via the webui
* confirm it is no longer running / installed:

 ps auwx | grep bacula
root   44932   0.0  0.4  61028  7748  -  Ss    4:58PM     0:00.02 
/usr/local/sbin/bacula-fd -u root -g wheel -v -c 
/usr/local/etc/bacula/bacula-fd.conf
root   71389   0.0  0.1  18884  2376  0  S+    5:06PM     0:00.00 grep bacula
[2.2-RELEASE][ad...@bast.int.unixathome.org]/root: 

Oh, it's still running after PBI removal. kill it:

[2.2-RELEASE][ad...@bast.int.unixathome.org]/root: kill -TERM 44932
[2.2-RELEASE][ad...@bast.int.unixathome.org]/root: ps auwx | grep bacula
root   68728   0.0  0.1  18884  2376  0  S+    5:11PM     0:00.00 grep bacula
[2.2-RELEASE][ad...@bast.int.unixathome.org]/root: 

Yes, it's really gone:

ls -l /usr/local/sbin/bacula-fd
ls: /usr/local/sbin/bacula-fd: No such file or directory

And the conf file is still there, good:

ls -l  /usr/local/etc/bacula/bacula-fd.conf
-rw-r-----  1 bacula  bacula  493 Feb  8 22:17 
/usr/local/etc/bacula/bacula-fd.conf


Now it's dead.  Let's install via pkg:

 pkg install bacula-client
Updating FreeBSD repository catalogue...
FreeBSD repository is up-to-date.
All repositories are up-to-date.
Checking integrity... done (0 conflicting)
The following 2 packages will be affected (of 0 checked):

New packages to be INSTALLED:
        bacula-client: 7.0.5_2
        lzo2: 2.08_1

The process will require 1 MiB more space.

Proceed with this action? [y/N]: y
[1/2] Installing lzo2-2.08_1...
[1/2] Extracting lzo2-2.08_1: 100%
[2/2] Installing bacula-client-7.0.5_2...
===> Creating users and/or groups.
Using existing group 'bacula'.
Using existing user 'bacula'.
[2/2] Extracting bacula-client-7.0.5_2: 100%
Message for bacula-client-7.0.5_2:
 
################################################################################

NOTE:
Sample files are installed in /usr/local/etc/bacula:

  bconsole.conf.sample, bacula-fd.conf.sample

################################################################################



It's back:

ls -l /usr/local/sbin/bacula-fd
-rwxr-xr-x  1 root  wheel  225067 Jan 28 12:46 /usr/local/sbin/bacula-fd



Start it:

[2.2-RELEASE][ad...@bast.int.unixathome.org]/root: /usr/local/sbin/bacula-fd -u 
root -g wheel -v -c  /usr/local/etc/bacula/bacula-fd.conf
[2.2-RELEASE][ad...@bast.int.unixathome.org]/root: ps auwx | grep bacula
root   50020   0.3  0.4  54288  7256  -  Ss    5:14PM     0:00.01 
/usr/local/sbin/bacula-fd -u root -g wheel -v -c 
/usr/local/etc/bacula/bacula-fd.conf
root   50266   0.0  0.1  18884  2376  0  S+    5:14PM     0:00.00 grep bacula
[2.2-RELEASE][ad...@bast.int.unixathome.org]/root:

and test it:

*status client=bast-fd
Connecting to Client bast-fd at bast.int.unixathome.org:9102

bast-fd Version: 7.0.5 (28 July 2014)  amd64-portbld-freebsd10.0 freebsd 
10.0-RELEASE-p9
Daemon started 09-Feb-15 17:14. Jobs: run=0 running=0.
 Heap: heap=0 smbytes=186,074 max_bytes=186,221 bufs=52 max_bufs=53
 Sizes: boffset_t=8 size_t=8 debug=0 trace=0 mode=0,0 bwlimit=0kB/s

Running Jobs:
Director connected at: 09-Feb-15 17:14
No Jobs running.
====

Terminated Jobs:
 JobId  Level    Files      Bytes   Status   Finished        Name 
===================================================================
198845  Full          6    115.6 K  OK       08-Feb-15 23:07 
bast_pfsense_config.xml
198850  Incr          1    113.5 K  OK       09-Feb-15 05:55 
bast_pfsense_config.xml
====
*







> On Feb 9, 2015, at 11:19 AM, Brady, Mike <mike.br...@devnull.net.nz> wrote:
> 
> Yes backups run successfully.  Easiest thing to do while testing is to just 
> run a status client command in bconsole.  Once that works you should be good 
> to go.
> 
> On 2015-02-10 00:46, Dan Langille wrote:
>> Before I go down that road again: by working, do you mean you've
>> successfully run a backup?
>> --
>> Dan Langille
>> http://langille.org/
>>> On Feb 8, 2015, at 11:07 PM, Brady, Mike <mike.br...@devnull.net.nz> wrote:
>>> The Webui binaries are working for me when I do what I said in the forum 
>>> post that I referenced.
>>>> On 2015-02-09 15:02, Dan Langille wrote:
>>>>> On Feb 8, 2015, at 8:45 PM, Brady, Mike <mike.br...@devnull.net.nz> wrote:
>>>>> It isn't you or the binaries.
>>>> I also think it's the binaries.
>>>>> The configuration and startup scripts are just broken and have been for a 
>>>>> while.  Even prior to 2.2.
>>>> I agree those are broken.  However, I am unable to get the webui
>>>> packages binaries to work.  However, installing via pkg works fine,
>>>> with the same configuration file.
>>>>> https://forum.pfsense.org/index.php?topic=85265.0
>>>> It was broken long before that.  :)
>>>> https://forum.pfsense.org/index.php?topic=66385.0
>>> _______________________________________________
>>> pfSense mailing list
>>> https://lists.pfsense.org/mailman/listinfo/list
>>> Support the project with Gold! https://pfsense.org/gold
>> _______________________________________________
>> pfSense mailing list
>> https://lists.pfsense.org/mailman/listinfo/list
>> Support the project with Gold! https://pfsense.org/gold
> _______________________________________________
> pfSense mailing list
> https://lists.pfsense.org/mailman/listinfo/list
> Support the project with Gold! https://pfsense.org/gold

— 
Dan Langille
http://langille.org/





_______________________________________________
pfSense mailing list
https://lists.pfsense.org/mailman/listinfo/list
Support the project with Gold! https://pfsense.org/gold

Reply via email to