According to the error it seems the director is required to be installed on
the client side when using rear, right?
The client is backed up with no issues without the director being
installed, only rear does not work.
On Thursday, February 1, 2024 at 12:19:29 PM UTC+2 Bruno Friedmann
(bruno-at-bareos) wrote:
> a director ressource is mandatory to make bareos-fd able to know who is
> connecting.
> rear is also using bconsole, which also need a director ressource to
> connect to.
>
> but of course that doesn't mean bareos-director component has to be
> installed, this is 2 separated things.
>
> Le jeudi 1 février 2024 à 11:14:33 UTC+1, Yariv Hazan a écrit :
>
>> No, I was not sure director is needed on the client end, is it needed?
>>
>> On Wednesday, January 31, 2024 at 11:42:55 AM UTC+2 Jürgen Echter wrote:
>>
>>> Hi,
>>>
>>> you have to configure ther director in bconsole.conf.
>>>
>>> Like this:
>>>
>>> #
>>> # Bareos User Agent (or Console) Configuration File
>>> #
>>> Director {
>>> Name = bareos-dir
>>> address = xx.xx.xx.xx
>>> Password = "secret"
>>> Description = "Bareos Console credentials for local Director"
>>> }
>>>
>>> Greetings
>>>
>>> Juergen
>>>
>>> Am Mittwoch, Januar 31, 2024 10:39 CET, schrieb Yariv Hazan <
>>> [email protected]>:
>>>
>>>
>>> Hi,
>>>
>>> Trying to configure client for DR with rear following this guide
>>> https://docs.bareos.org/Appendix/DisasterRecoveryUsingBareos.html.
>>>
>>> Client is being backed up with no issues.
>>>
>>> After completed configuration and running rear -v mkrescue I get this
>>> error: Director not configured in bconsole see complete rear log below.
>>>
>>> 1. Do I need to have director installed/configured on the client?
>>> 2. Is this maybe related to client be passive?
>>>
>>>
>>>
>>>
>>>
>>> 2024-01-30 12:20:53.541037902 Relax-and-Recover 2.4 / Git
>>>
>>> 2024-01-30 12:20:53.542304107 Command line options: /sbin/rear -v
>>> mkbackup
>>>
>>> 2024-01-30 12:20:53.543545584 Using log file:
>>> /var/log/rear/rear-tlvpuppet2.log
>>>
>>> 2024-01-30 12:20:53.544885643 Including /etc/rear/os.conf
>>>
>>> 2024-01-30 12:20:53.547940491 Including conf/Linux-i386.conf
>>>
>>> 2024-01-30 12:20:53.549266667 Including conf/GNU/Linux.conf
>>>
>>> 2024-01-30 12:20:53.569648826 Including /etc/rear/local.conf
>>>
>>> 2024-01-30 12:20:53.572259049 ======================
>>>
>>> 2024-01-30 12:20:53.573421298 Running 'init' stage
>>>
>>> 2024-01-30 12:20:53.574600245 ======================
>>>
>>> 2024-01-30 12:20:53.581319209 Including
>>> init/default/005_verify_os_conf.sh
>>>
>>> 2024-01-30 12:20:53.585144001 Including init/default/010_set_drlm_env.sh
>>>
>>> 2024-01-30 12:20:53.589185325 Including
>>> init/default/030_update_recovery_system.sh
>>>
>>> 2024-01-30 12:20:53.593107191 Including
>>> init/default/050_check_rear_recover_mode.sh
>>>
>>> 2024-01-30 12:20:53.594340342 Finished running 'init' stage in 0 seconds
>>>
>>> 2024-01-30 12:20:53.603024718 Using build area
>>> '/tmp/rear.QZyujxXHGikhCJi'
>>>
>>> mkdir: created directory '/tmp/rear.QZyujxXHGikhCJi/rootfs'
>>>
>>> mkdir: created directory '/tmp/rear.QZyujxXHGikhCJi/tmp'
>>>
>>> 2024-01-30 12:20:53.606905504 Running mkbackup workflow
>>>
>>> 2024-01-30 12:20:53.610212060 ======================
>>>
>>> 2024-01-30 12:20:53.611317276 Running 'prep' stage
>>>
>>> 2024-01-30 12:20:53.612487290 ======================
>>>
>>> 2024-01-30 12:20:53.619731228 Including
>>> prep/default/005_remove_workflow_conf.sh
>>>
>>> mkdir: created directory '/tmp/rear.QZyujxXHGikhCJi/rootfs/etc'
>>>
>>> mkdir: created directory '/tmp/rear.QZyujxXHGikhCJi/rootfs/etc/rear'
>>>
>>> 2024-01-30 12:20:53.625882176 Including prep/default/020_translate_url.sh
>>>
>>> 2024-01-30 12:20:53.629928653 Including
>>> prep/default/030_translate_tape.sh
>>>
>>> 2024-01-30 12:20:53.633784465 Including
>>> prep/default/040_check_backup_and_output_scheme.sh
>>>
>>> 2024-01-30 12:20:53.639930329 Including
>>> prep/default/050_check_keep_old_output_copy_var.sh
>>>
>>> 2024-01-30 12:20:53.643913050 Including
>>> prep/default/100_init_workflow_conf.sh
>>>
>>> 2024-01-30 12:20:53.649463035 Including
>>> prep/GNU/Linux/200_include_getty.sh
>>>
>>> 2024-01-30 12:20:53.678029083 Including
>>> prep/GNU/Linux/200_include_serial_console.sh
>>>
>>> /usr/share/rear/lib/_input-output-functions.sh: line 331: type: getty:
>>> not found
>>>
>>> 2024-01-30 12:20:53.703885018 Including
>>> prep/GNU/Linux/210_include_dhclient.sh
>>>
>>> /usr/share/rear/lib/_input-output-functions.sh: line 331: type: dhcpcd:
>>> not found
>>>
>>> /usr/share/rear/lib/_input-output-functions.sh: line 331: type: dhcp6c:
>>> not found
>>>
>>> /usr/share/rear/lib/_input-output-functions.sh: line 331: type:
>>> dhclient6: not found
>>>
>>> 2024-01-30 12:20:53.722731365 Including
>>> prep/GNU/Linux/220_include_lvm_tools.sh
>>>
>>> 2024-01-30 12:20:53.724914746 Device mapper found enabled. Including LVM
>>> tools.
>>>
>>> 2024-01-30 12:20:53.857209496 Including
>>> prep/GNU/Linux/230_include_md_tools.sh
>>>
>>> 2024-01-30 12:20:53.863255338 Including
>>> prep/GNU/Linux/240_include_multipath_tools.sh
>>>
>>> 2024-01-30 12:20:53.867562578 Including
>>> prep/GNU/Linux/280_include_systemd.sh
>>>
>>> 2024-01-30 12:20:53.890413524 Including systemd (init replacement)
>>> tool-set to bootstrap Relax-and-Recover
>>>
>>> 2024-01-30 12:20:53.895336644 Including
>>> prep/GNU/Linux/280_include_virtualbox.sh
>>>
>>> 2024-01-30 12:20:53.906424536 Including
>>> prep/GNU/Linux/280_include_vmware_tools.sh
>>>
>>> 2024-01-30 12:20:53.916824808 Including
>>> prep/GNU/Linux/290_include_drbd.sh
>>>
>>> 2024-01-30 12:20:53.925964324 Including
>>> prep/GNU/Linux/300_check_backup_and_output_url.sh
>>>
>>> 2024-01-30 12:20:53.934457262 Including
>>> prep/ISO/default/300_check_iso_dir.sh
>>>
>>> 2024-01-30 12:20:53.939000731 Including
>>> prep/GNU/Linux/300_include_grub_tools.sh
>>>
>>> /usr/share/rear/lib/_input-output-functions.sh: line 331: type:
>>> grub-probe: not found
>>>
>>> 2024-01-30 12:20:53.980474868 Including
>>> prep/GNU/Linux/310_include_cap_utils.sh
>>>
>>> 2024-01-30 12:20:53.985292636 Including
>>> prep/ISO/default/320_check_cdrom_size.sh
>>>
>>> 2024-01-30 12:20:53.988824949 ISO Directory '/var/lib/rear/output'
>>> [/dev/mapper/centos-root] has 9890 MB free space
>>>
>>> 2024-01-30 12:20:53.993761753 Including
>>> prep/default/320_include_uefi_env.sh
>>>
>>> 2024-01-30 12:20:54.031871252 Including
>>> prep/ISO/GNU/Linux/320_verify_mkisofs.sh
>>>
>>> 2024-01-30 12:20:54.033470352 Using '/bin/xorrisofs' to create ISO images
>>>
>>> 2024-01-30 12:20:54.037990556 Including
>>> prep/ISO/Linux-i386/330_find_isolinux.sh
>>>
>>> 2024-01-30 12:20:54.050964731 Including
>>> prep/default/330_include_uefi_tools.sh
>>>
>>> 2024-01-30 12:20:54.055589924 Including
>>> prep/ISO/GNU/Linux/340_add_isofs_module.sh
>>>
>>> 2024-01-30 12:20:54.061799857 Including
>>> prep/default/380_include_opal_tools.sh
>>>
>>> /usr/share/rear/lib/_input-output-functions.sh: line 331: type:
>>> sedutil-cli: not found
>>>
>>> 2024-01-30 12:20:54.066107628 Including
>>> prep/BAREOS/default/400_prep_bareos.sh
>>>
>>> 2024-01-30 12:20:54.070952031 Including
>>> prep/default/400_save_directories.sh
>>>
>>> /boot 555 root root
>>>
>>> /mnt/Backups 755 backuppc backuppc
>>>
>>> /mnt/DLONFS 755 root root
>>>
>>> /mnt/olvmnfs 755 UNKNOWN kvm
>>>
>>> /mnt/lab01 777 root root
>>>
>>> /mnt/general1 0 root root
>>>
>>> /mnt/tools_stg 777 root root
>>>
>>> /run/user/0/gvfs 500 root root
>>>
>>> 2024-01-30 12:20:54.196907455 FHS directory /usr/X11R6 does not exist
>>>
>>> 2024-01-30 12:20:54.237871728 Including
>>> prep/BAREOS/default/450_check_BAREOS_client_configured.sh
>>>
>>> 2024-01-30 12:20:54.433433584 Including
>>> prep/BAREOS/default/500_check_BAREOS_bconsole_results.sh
>>>
>>> The -xc and -xs options have changed.
>>>
>>> Use --xc and --xs as given in the help.
>>>
>>> Run with --help for more information.
>>>
>>> 2024-01-30 12:20:54.441046794 ERROR: Director not configured in bconsole
>>>
>>> ==== Stack trace ====
>>>
>>> Trace 0: /sbin/rear:547 main
>>>
>>> Trace 1: /usr/share/rear/lib/mkbackup-workflow.sh:9 WORKFLOW_mkbackup
>>>
>>> Trace 2: /usr/share/rear/lib/framework-functions.sh:101 SourceStage
>>>
>>> Trace 3: /usr/share/rear/lib/framework-functions.sh:49 Source
>>>
>>> Trace 4:
>>> /usr/share/rear/prep/BAREOS/default/500_check_BAREOS_bconsole_results.sh:17
>>> source
>>>
>>> Trace 5: /usr/share/rear/lib/_input-output-functions.sh:372 StopIfError
>>>
>>> Message: Director not configured in bconsole
>>>
>>> == End stack trace ==
>>>
>>> 2024-01-30 12:20:54.446896755 Exiting rear mkbackup (PID 4017) and its
>>> descendant processes
>>>
>>> 2024-01-30 12:20:55.480337453 rear,4017 /sbin/rear -v mkbackup
>>>
>>> `-rear,4546 /sbin/rear -v mkbackup
>>>
>>> `-pstree,4547 -Aplau 4017
>>>
>>> /usr/share/rear/lib/_input-output-functions.sh: line 157: kill: (4550) -
>>> No such process
>>>
>>> 2024-01-30 12:20:55.510190149 Running exit tasks
>>>
>>> 2024-01-30 12:20:55.512045782 Finished in 2 seconds
>>>
>>> 2024-01-30 12:20:55.513663390 Removing build area
>>> /tmp/rear.QZyujxXHGikhCJi
>>>
>>> removed directory: '/tmp/rear.QZyujxXHGikhCJi'
>>>
>>> 2024-01-30 12:20:55.522823711 End of program reached
>>>
>>> Thanks,
>>>
>>> Yariv
>>>
>>>
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "bareos-users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/bareos-users/ff68cc60-41b0-4c0d-afb5-7933080b9cden%40googlegroups.com
>>>
>>> <https://groups.google.com/d/msgid/bareos-users/ff68cc60-41b0-4c0d-afb5-7933080b9cden%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>>
>>>
>>
>>
--
You received this message because you are subscribed to the Google Groups
"bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/bareos-users/16091b92-4c64-41a0-8c2d-ad1fe1130ee9n%40googlegroups.com.