Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    [solved]bacula - webgui config - bug?

    Scheduled Pinned Locked Moved pfSense Packages
    8 Posts 2 Posters 1.5k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      pra
      last edited by

      Hello

      pfsense version : 2.2.4
      i installed the bacula package
      in webgui , when you configue bacula-client in 'service/bacula-client', the bacula-fd.conf is not complete, and bacula client do a segmentation fault because bacula-fd.conf is incomplet

      the confi via webgui give :
      Director {
      Name = bacula-dir
      Password = "xxxxxxxx"
      }

      the real config need
      Director , FileDaemon, Messages

      than the config file good is :

      Director {
      Name = bacula-dir
      Password = "xxxx"
      }

      FileDaemon {                       
        Name = fw1-fd
        FDport = 9102             
        WorkingDirectory = /tmp
        Pid Directory = /var/run
        Maximum Concurrent Jobs = 20
        FDAddress = ip or fqn
      }

      Messages {
        Name = Standard
        director = bacula-dir = all, !skipped, !restored
      }

      the 'file daemon ' seems not write the 'FileDaemon'  zone in bacula-fd.conf

      thank you for your help

      pra
      pfsense-bacula.png_thumb
      pfsense-bacula.png
      pfsense-bacula1.png
      pfsense-bacula1.png_thumb

      1 Reply Last reply Reply Quote 0
      • D
        doktornotor Banned
        last edited by

        Segfault on bad configuration sounds like a quality software…  ::) ;D

        Sounds like you did not configure the FileDaemon at all.

        https://github.com/pfsense/pfsense-packages/blob/master/config/bacula-client/bacula-client.inc#L117

        
        		if (!empty($LocalDirector)) {
        			$baculaclient_conf .= "FileDaemon { \n\tName = {$LocalDirector}-fd #\n\tFDport = {$port}\n\tWorkingDirectory = /var/db/bacula\n\tPid Directory = /var/run\n\tMaximum Concurrent Jobs = {$jobs}\n}\n";
        		}
        
        
        1 Reply Last reply Reply Quote 0
        • P
          pra
          last edited by

          Ok thank you

          1 Reply Last reply Reply Quote 0
          • D
            doktornotor Banned
            last edited by

            Added a check for configured local director here (together with quite a bit of cleanup and fixes): https://github.com/pfsense/pfsense-packages/pull/1001

            1 Reply Last reply Reply Quote 0
            • P
              pra
              last edited by

              thank you
              but i am not a specialist of git, how can i get your file
              i use git clone but i don t have the changes

              thank you for your help

              1 Reply Last reply Reply Quote 0
              • D
                doktornotor Banned
                last edited by

                Not worth it in this case; just wait till it's merged in pfSense and upgrade the package.

                1 Reply Last reply Reply Quote 0
                • P
                  pra
                  last edited by

                  Ok
                  thank you

                  1 Reply Last reply Reply Quote 0
                  • P
                    pra
                    last edited by

                    package upgraded
                    thank you

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post
                    Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.