Re: [Bacula-users] build bacula-web 13

2023-01-03 Thread Marcin Haba
Hello Karl,

To build Baculum packages I would propose to do the following four steps:

1. Remove debian/ directory from your 13.0 working copy

2. Get the debian/ directory from this tar archive and put it to 13.0
sources:

https://www.bacula.org/downloads/baculum/stable-11/debian/pool/main/b/baculum/baculum_11.0.6~bullseye.tar.xz

3. Update paths in debian/ files because since version 11.0 some paths in
Baculum have changed. The major change is renamed 'Class' directory into
'Modules'.

4. Update the changelog and run dpkg-buildpackage

Good luck!

Best regards,
Marcin Haba (gani)

On Fri, 30 Dec 2022 at 22:06, Mag. Dr. Karl Kashofer 
wrote:

> Hi !
> I try to build bacula-gui version 13 on debian bullseye.
> I removed the dh-systemd requirement from debian/control as it does not
> exist in bullseye.
>
> wget -O bacula-gui-13.0.1.tar.gz https://www.bacula.org/download/11140/
>
> Doing "dpkg-buildpackage -us -uc" in the build tree yields:
>
> sed -i -e "s#%DOCUMENTROOT#/usr/share/baculum/htdocs#g" -e
> "s#%LOGDIR#/var/log/lighttpd#g" build/etc/baculum/baculum-web-lighttpd.conf
> sed -i -e "s#%CONFDIR#/etc/baculum#g"
> build/usr/lib/systemd/system/baculum-api-lighttpd.service
> sed -i -e "s#%CONFDIR#/etc/baculum#g"
> build/usr/lib/systemd/system/baculum-web-lighttpd.service
> find build/ -type f -name .gitignore -exec rm -f {} \;
> make[2]: Leaving directory '/bacula-gui-13.0.1/baculum'
> make[1]: Leaving directory '/bacula-gui-13.0.1/baculum'
>  dh_auto_test
> dh_auto_test: warning: Compatibility levels before 10 are deprecated
> (level 9 in use)
>  debian/rules binary
> dh binary --with=systemd
> dh: warning: Compatibility levels before 10 are deprecated (level 9 in use)
>  dh_testroot
>  dh_prep
>  dh_installdirs
> dh_installdirs: warning: Compatibility levels before 10 are deprecated
> (level 9 in use)
>  dh_auto_install
> dh_auto_install: warning: Compatibility levels before 10 are deprecated
> (level 9 in use)
>  dh_install
> dh_install: warning: Compatibility levels before 10 are deprecated (level
> 9 in use)
> dh_install: warning: Cannot find (any matches for)
> "build/usr/share/baculum/htdocs/protected/API/Class" (tried in .,
> debian/tmp)
>
> dh_install: warning: baculum-api missing files:
> build/usr/share/baculum/htdocs/protected/API/Class
> dh_install: warning: Cannot find (any matches for)
> "build/usr/share/baculum/htdocs/protected/API/JavaScript" (tried in .,
> debian/tmp)
>
> dh_install: warning: baculum-api missing files:
> build/usr/share/baculum/htdocs/protected/API/JavaScript
> dh_install: warning: Cannot find (any matches for)
> "build/usr/share/baculum/htdocs/protected/Web/Class" (tried in .,
> debian/tmp)
>
> dh_install: warning: baculum-web missing files:
> build/usr/share/baculum/htdocs/protected/Web/Class
> dh_install: error: missing files, aborting
> make: *** [debian/rules:15: binary] Error 255
> dpkg-buildpackage: error: debian/rules binary subprocess returned exit
> status 2
> root@01dd73cbda6a:/bacula-gui-13.0.1/baculum#
>
>
> Any idea what is missing to build the debian packages ?
> Thanks, KK
>
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>


-- 
"Greater love hath no man than this, that a man lay down his life for his
friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie za
przyjaciół swoich." Jezus Chrystus
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula 11.0.6 Windows Client IPv6 no starttls

2023-01-03 Thread Martin Simmons
Error 10014 from accept is:

WSAEFAULTThe addrlen parameter is too small or addr is not a valid part of
 the user address space.

I think that can only be caused by a bug in the Bacula client (or it is not
compiled correctly for IPv6).

__Martin


> On Mon, 2 Jan 2023 15:04:36 +0100, Radosław Korzeniewski said:
> 
> Thanks!
> 
> In this case as all components are on the same version it is not a version
> inconsistency issue.
> To be honest, I have no clue why a Bacula windows client is unable to
> receive any data on the socket, which is a main reason you can't
> communicate with it.
> I had no issues like this in the past. You need to somehow (I don't know
> how) debug why Bacula cannot read (receive) from a socket which should
> work. Any firewall in the network path? Any antivirus software disrupting
> communication? dunno.
> Maybe other users can help more. Good luck!
> 
> R.
> 
> pon., 2 sty 2023 o 14:13 Eyermann, Frank <
> frank.eyerm...@munich-business-school.de> napisał(a):
> 
> > Hello Radoslaw,
> >
> >
> >
> > 11.0.6 windows binary from bacula org web site.
> >
> >
> >
> > Best regards,
> >
> >
> >
> > Frank
> >
> >
> >
> >
> >
> > *Von:* Radosław Korzeniewski 
> > *Gesendet:* Montag, 2. Januar 2023 11:34
> > *An:* Eyermann, Frank 
> > *Cc:* bacula-users@lists.sourceforge.net
> > *Betreff:* Re: [Bacula-users] Bacula 11.0.6 Windows Client IPv6 no
> > starttls
> >
> >
> >
> > Hi,
> >
> >
> >
> > sob., 31 gru 2022 o 01:30 Eyermann, Frank <
> > frank.eyerm...@munich-business-school.de> napisał(a):
> >
> > Hello Radoslaw,
> >
> >
> >
> > thank you for pointing me at the debug option.
> >
> >
> >
> > Running the director reveals not much interessing (I’ve tried stat client
> > command)
> >
> >
> >
> > backupsrv01-dir: ua_status.c:274-0 status:stat client:
> >
> > backupsrv01-dir: watchdog.c:196-0 Registered watchdog 7f12f001e138,
> > interval 15 one shot
> >
> > backupsrv01-dir: btimers.c:145-0 Start thread timer 7f12f001e378 tid
> > 7f12fbfff640 for 15 secs.
> >
> > backupsrv01-dir: bsockcore.c:354-0 Current
> > [2001:hidden:hidden:101::2]:9102 All [2001:hidden:hidden:101::2]:9102
> >
> > backupsrv01-dir: bsockcore.c:285-0 who=Client: server05a-fd
> > host=2001:hidden:hidden:101::2 port=9102
> >
> > backupsrv01-dir: bsockcore.c:472-0 OK connected to server  Client:
> > server05a-fd 2001:hidden:hidden:101::2:9102.
> > socket=2001:hidden:hidden:101::10.60862:2001:hidden:hidden:101::2.9102
> > s=0x7f12f001e688
> >
> >
> >
> >
> >
> > But FileDaemon shows errors:
> >
> > server05a-fd: lib/watchdog.c:82-0 Initialising NicB-hacked watchdog thread
> >
> > server05a-fd: lib/watchdog.c:197-0 Registered watchdog 311c2c8, interval 30
> >
> > server05a-fd: lib/mem_pool.c:617-0 max_size=512
> >
> > server05a-fd: lib/events.c:48-0 Events: code=FD0001 daemon=server05a-fd
> > ref=0x238e type=daemon source=*Daemon* text=Filed startup
> >
> > server05a-fd: lib/message.c:1534-0 Enter Jmsg type=17
> >
> > server05a-fd: lib/watchdog.c:254-0 NicB-reworked watchdog thread entered
> >
> > server05a-fd: filed/filed.c:295-0 filed: listening on port 9102
> >
> > server05a-fd: filed/filed.c:295-0 filed: listening on port 9102
> >
> > server05a-fd: lib/bnet_server.c:90-0 Addresses 0.0.0.0:9102
> > [0.0.0.0]:9102
> >
> >
> >
> > (Startup successful, now I’m running stat client command on server)
> >
> >
> >
> > server05a-fd: lib/bnet.c:490-0 Socket error: err=10014 Unknown error
> >
> > server05a-fd: lib/bnet_server.c:191-0 Accept=-1 errno=603979776
> >
> > server05a-fd: lib/bnet.c:490-0 Socket error: err=10014 Unknown error
> >
> > server05a-fd: lib/bnet_server.c:191-0 Accept=-1 errno=603979776
> >
> > server05a-fd: lib/bnet.c:490-0 Socket error: err=10014 Unknown error
> >
> > server05a-fd: lib/bnet_server.c:191-0 Accept=-1 errno=603979776
> >
> > server05a-fd: lib/bnet.c:490-0 Socket error: err=10014 Unknown error
> >
> > server05a-fd: lib/bnet_server.c:191-0 Accept=-1 errno=603979776
> >
> > (And those both lines repeat thousands of times within a few seconds.)
> >
> >
> >
> >
> >
> > What version is your client?
> >
> >
> >
> > R.
> >
> >
> >
> > Best regarda,
> >
> >
> >
> > Frank
> >
> >
> >
> >
> >
> > *Von:* Radosław Korzeniewski 
> > *Gesendet:* Donnerstag, 29. Dezember 2022 23:19
> > *An:* Eyermann, Frank 
> > *Cc:* bacula-users@lists.sourceforge.net
> > *Betreff:* Re: [Bacula-users] Bacula 11.0.6 Windows Client IPv6 no
> > starttls
> >
> >
> >
> > Hello,
> >
> >
> >
> > czw., 29 gru 2022 o 15:15 Eyermann, Frank <
> > frank.eyerm...@munich-business-school.de> napisał(a):
> >
> > Hello all,
> >
> >
> >
> > In our network I’ve enabled IPv6 in dual-stack configuration.
> >
> >
> >
> > Bacula-dir and Bacula-SD version 11.0.6, on Ubuntu 22.04
> >
> >
> >
> > With Linux Clients everything works fine.
> >
> >
> >
> > For Windows Clients (tested with 2016, 2019 and 2022 servers):
> >
> > If I state Address in Client resource of Director as an IPv4 address,
> > everything works fine.
> >
> > If I state Addres