Re: [bareos-users] Segmentation fault (core dumped)
Am 27.11.19 um 12:20 schrieb Spadajspadaj: > On that note - is there any "blessed" way to migrate existing > installation from MySQL to Postgres? I can easily google some > not-very-official recipes for bacula but are there any advices for bareos? Not yet. We have discussed that several times, but at this time there is only a very rough prototype that is not fit for any purpose. If people really need to migrate, we can probably make this happen. Maybe it is worth to start a co-funding for this? Best Regards, Andreas -- Andreas Rogge andreas.ro...@bareos.com Bareos GmbH & Co. KG Phone: +49 221-630693-86 http://www.bareos.com Sitz der Gesellschaft: Köln | Amtsgericht Köln: HRA 29646 Komplementär: Bareos Verwaltungs-GmbH Geschäftsführer: S. Dühr, M. Außendorf, J. Steffens, Philipp Storz -- 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 bareos-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/bareos-users/452ef239-96bc-5653-823a-bd671ec0dab3%40bareos.com. signature.asc Description: OpenPGP digital signature
Re: [bareos-users] Segmentation fault (core dumped)
On that note - is there any "blessed" way to migrate existing installation from MySQL to Postgres? I can easily google some not-very-official recipes for bacula but are there any advices for bareos? (and any more reasonable way to migrate than "export everything to csv and pull that csv into Postgres"?) Best regards, MK On 27.11.2019 12:05, Andreas Rogge wrote: Hi, first of all: please do not use MySQL. The Backend is supported, but for new Installations PostgreSQL is strongly preferred, as it provides much better performance and is more thoroughly tested. -- 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 bareos-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/bareos-users/184cd704-5142-efd5-0a01-88b339f87bbb%40gmail.com.
Re: [bareos-users] Segmentation fault (core dumped)
Hi, first of all: please do not use MySQL. The Backend is supported, but for new Installations PostgreSQL is strongly preferred, as it provides much better performance and is more thoroughly tested. Having said that, if you have bareos-dbg and gdb installed you should will get meaningful traceback files written to /var/lib/bareos that contain text that explains where the crash happened. These are simple textfiles named "bareos..traceback". If you attach one of these (and it contains enough information), I can try to take a look. Best Regards, Andreas Am 27.11.19 um 11:43 schrieb 'DUCARROZ Birgit' via bareos-users: > Hello, > > Thank you. I already sent the output of > /usr/sbin/bareos-dir -t -d 200 -u bareos -g bareos > in my first mail. > > But I don't see where could be a misconfiguration. I am a bit confused, > since I putted back the original files to /etc/bareos and get still the > same error. > > My first installation worked without any problems and now, performing > the same installation on different Ubuntu 16 gives me on each machine > the same error. Could it be that an update of Ubuntu might be responsible? > > Here again the output ouf /usr/sbin/bareos-dir -t -d 200 -u bareos -g > bareos. Thank you for any help. > > Kind regards, > Birgit > > bareos-dir (10): dird/dird.cc:251-0 Debug level = 200 > bareos-dir (100): lib/parse_conf.cc:208-0 config file = > /etc/bareos/bareos-dir.d/*/*.conf > bareos-dir (100): lib/lex.cc:333-0 glob > /etc/bareos/bareos-dir.d/*/*.conf: 24 files > bareos-dir (100): lib/lex.cc:226-0 open config file: > /etc/bareos/bareos-dir.d/catalog/MyCatalog.conf > bareos-dir (100): lib/lex.cc:226-0 open config file: > /etc/bareos/bareos-dir.d/client/bareos-fd.conf > bareos-dir (100): lib/lex.cc:226-0 open config file: > /etc/bareos/bareos-dir.d/console/admin.conf > bareos-dir (100): lib/lex.cc:226-0 open config file: > /etc/bareos/bareos-dir.d/console/bareos-mon.conf > bareos-dir (100): lib/lex.cc:226-0 open config file: > /etc/bareos/bareos-dir.d/director/bareos-dir.conf > bareos-dir (100): lib/lex.cc:226-0 open config file: > /etc/bareos/bareos-dir.d/fileset/Catalog.conf > bareos-dir (100): lib/lex.cc:226-0 open config file: > /etc/bareos/bareos-dir.d/fileset/LinuxAll.conf > bareos-dir (100): lib/lex.cc:226-0 open config file: > /etc/bareos/bareos-dir.d/fileset/SelfTest.conf > bareos-dir (100): lib/lex.cc:226-0 open config file: > /etc/bareos/bareos-dir.d/fileset/Windows All Drives.conf > bareos-dir (100): lib/lex.cc:226-0 open config file: > /etc/bareos/bareos-dir.d/job/BackupCatalog.conf > bareos-dir (100): lib/lex.cc:226-0 open config file: > /etc/bareos/bareos-dir.d/job/RestoreFiles.conf > bareos-dir (100): lib/lex.cc:226-0 open config file: > /etc/bareos/bareos-dir.d/job/backup-bareos-fd.conf > bareos-dir (100): lib/lex.cc:226-0 open config file: > /etc/bareos/bareos-dir.d/jobdefs/DefaultJob.conf > bareos-dir (100): lib/lex.cc:226-0 open config file: > /etc/bareos/bareos-dir.d/messages/Daemon.conf > bareos-dir (100): lib/lex.cc:226-0 open config file: > /etc/bareos/bareos-dir.d/messages/Standard.conf > bareos-dir (100): lib/lex.cc:226-0 open config file: > /etc/bareos/bareos-dir.d/pool/Differential.conf > bareos-dir (100): lib/lex.cc:226-0 open config file: > /etc/bareos/bareos-dir.d/pool/Full.conf > bareos-dir (100): lib/lex.cc:226-0 open config file: > /etc/bareos/bareos-dir.d/pool/Incremental.conf > bareos-dir (100): lib/lex.cc:226-0 open config file: > /etc/bareos/bareos-dir.d/pool/Scratch.conf > bareos-dir (100): lib/lex.cc:226-0 open config file: > /etc/bareos/bareos-dir.d/profile/operator.conf > bareos-dir (100): lib/lex.cc:226-0 open config file: > /etc/bareos/bareos-dir.d/profile/webui-admin.conf > bareos-dir (100): lib/lex.cc:226-0 open config file: > /etc/bareos/bareos-dir.d/schedule/WeeklyCycle.conf > bareos-dir (100): lib/lex.cc:226-0 open config file: > /etc/bareos/bareos-dir.d/schedule/WeeklyCycleAfterBackup.conf > bareos-dir (100): lib/lex.cc:226-0 open config file: > /etc/bareos/bareos-dir.d/storage/File.conf > bareos-dir (9): dird/inc_conf.cc:573-0 set wildfile e4fad0 size=1 > [A-Z]:/pagefile.sys > bareos-dir (9): dird/inc_conf.cc:573-0 set wilddir e4fad0 size=1 > [A-Z]:/RECYCLER > bareos-dir (9): dird/inc_conf.cc:573-0 set wilddir e4fad0 size=2 > [A-Z]:/$RECYCLE.BIN > bareos-dir (9): dird/inc_conf.cc:573-0 set wilddir e4fad0 size=3 > [A-Z]:/System Volume Information > bareos-dir (100): lib/lex.cc:333-0 glob > /etc/bareos/bareos-dir.d/*/*.conf: 24 files > bareos-dir (100): lib/lex.cc:226-0 open config file: > /etc/bareos/bareos-dir.d/catalog/MyCatalog.conf > bareos-dir (100): lib/lex.cc:226-0 open config file: > /etc/bareos/bareos-dir.d/client/bareos-fd.conf > bareos-dir (100): lib/lex.cc:226-0 open config file: > /etc/bareos/bareos-dir.d/console/admin.conf > bareos-dir (100): lib/lex.cc:226-0 open config file: > /etc/bareos/bareos-dir.d/console/bareos-mon.conf > bareos-dir (100): lib/lex.cc:226-0 open config file: >
Re: [bareos-users] Segmentation fault (core dumped)
Hello, Thank you. I already sent the output of /usr/sbin/bareos-dir -t -d 200 -u bareos -g bareos in my first mail. But I don't see where could be a misconfiguration. I am a bit confused, since I putted back the original files to /etc/bareos and get still the same error. My first installation worked without any problems and now, performing the same installation on different Ubuntu 16 gives me on each machine the same error. Could it be that an update of Ubuntu might be responsible? Here again the output ouf /usr/sbin/bareos-dir -t -d 200 -u bareos -g bareos. Thank you for any help. Kind regards, Birgit root@diufnas26:/home/diuf-sysadmin# /usr/sbin/bareos-dir -t -d 200 -u bareos -g bareos bareos-dir (10): dird/dird.cc:251-0 Debug level = 200 bareos-dir (100): lib/parse_conf.cc:208-0 config file = /etc/bareos/bareos-dir.d/*/*.conf bareos-dir (100): lib/lex.cc:333-0 glob /etc/bareos/bareos-dir.d/*/*.conf: 24 files bareos-dir (100): lib/lex.cc:226-0 open config file: /etc/bareos/bareos-dir.d/catalog/MyCatalog.conf bareos-dir (100): lib/lex.cc:226-0 open config file: /etc/bareos/bareos-dir.d/client/bareos-fd.conf bareos-dir (100): lib/lex.cc:226-0 open config file: /etc/bareos/bareos-dir.d/console/admin.conf bareos-dir (100): lib/lex.cc:226-0 open config file: /etc/bareos/bareos-dir.d/console/bareos-mon.conf bareos-dir (100): lib/lex.cc:226-0 open config file: /etc/bareos/bareos-dir.d/director/bareos-dir.conf bareos-dir (100): lib/lex.cc:226-0 open config file: /etc/bareos/bareos-dir.d/fileset/Catalog.conf bareos-dir (100): lib/lex.cc:226-0 open config file: /etc/bareos/bareos-dir.d/fileset/LinuxAll.conf bareos-dir (100): lib/lex.cc:226-0 open config file: /etc/bareos/bareos-dir.d/fileset/SelfTest.conf bareos-dir (100): lib/lex.cc:226-0 open config file: /etc/bareos/bareos-dir.d/fileset/Windows All Drives.conf bareos-dir (100): lib/lex.cc:226-0 open config file: /etc/bareos/bareos-dir.d/job/BackupCatalog.conf bareos-dir (100): lib/lex.cc:226-0 open config file: /etc/bareos/bareos-dir.d/job/RestoreFiles.conf bareos-dir (100): lib/lex.cc:226-0 open config file: /etc/bareos/bareos-dir.d/job/backup-bareos-fd.conf bareos-dir (100): lib/lex.cc:226-0 open config file: /etc/bareos/bareos-dir.d/jobdefs/DefaultJob.conf bareos-dir (100): lib/lex.cc:226-0 open config file: /etc/bareos/bareos-dir.d/messages/Daemon.conf bareos-dir (100): lib/lex.cc:226-0 open config file: /etc/bareos/bareos-dir.d/messages/Standard.conf bareos-dir (100): lib/lex.cc:226-0 open config file: /etc/bareos/bareos-dir.d/pool/Differential.conf bareos-dir (100): lib/lex.cc:226-0 open config file: /etc/bareos/bareos-dir.d/pool/Full.conf bareos-dir (100): lib/lex.cc:226-0 open config file: /etc/bareos/bareos-dir.d/pool/Incremental.conf bareos-dir (100): lib/lex.cc:226-0 open config file: /etc/bareos/bareos-dir.d/pool/Scratch.conf bareos-dir (100): lib/lex.cc:226-0 open config file: /etc/bareos/bareos-dir.d/profile/operator.conf bareos-dir (100): lib/lex.cc:226-0 open config file: /etc/bareos/bareos-dir.d/profile/webui-admin.conf bareos-dir (100): lib/lex.cc:226-0 open config file: /etc/bareos/bareos-dir.d/schedule/WeeklyCycle.conf bareos-dir (100): lib/lex.cc:226-0 open config file: /etc/bareos/bareos-dir.d/schedule/WeeklyCycleAfterBackup.conf bareos-dir (100): lib/lex.cc:226-0 open config file: /etc/bareos/bareos-dir.d/storage/File.conf bareos-dir (9): dird/inc_conf.cc:573-0 set wildfile 254fad0 size=1 [A-Z]:/pagefile.sys bareos-dir (9): dird/inc_conf.cc:573-0 set wilddir 254fad0 size=1 [A-Z]:/RECYCLER bareos-dir (9): dird/inc_conf.cc:573-0 set wilddir 254fad0 size=2 [A-Z]:/$RECYCLE.BIN bareos-dir (9): dird/inc_conf.cc:573-0 set wilddir 254fad0 size=3 [A-Z]:/System Volume Information bareos-dir (100): lib/lex.cc:333-0 glob /etc/bareos/bareos-dir.d/*/*.conf: 24 files bareos-dir (100): lib/lex.cc:226-0 open config file: /etc/bareos/bareos-dir.d/catalog/MyCatalog.conf bareos-dir (100): lib/lex.cc:226-0 open config file: /etc/bareos/bareos-dir.d/client/bareos-fd.conf bareos-dir (100): lib/lex.cc:226-0 open config file: /etc/bareos/bareos-dir.d/console/admin.conf bareos-dir (100): lib/lex.cc:226-0 open config file: /etc/bareos/bareos-dir.d/console/bareos-mon.conf bareos-dir (100): lib/lex.cc:226-0 open config file: /etc/bareos/bareos-dir.d/director/bareos-dir.conf bareos-dir (100): lib/lex.cc:226-0 open config file: /etc/bareos/bareos-dir.d/fileset/Catalog.conf bareos-dir (100): lib/lex.cc:226-0 open config file: /etc/bareos/bareos-dir.d/fileset/LinuxAll.conf bareos-dir (100): lib/lex.cc:226-0 open config file: /etc/bareos/bareos-dir.d/fileset/SelfTest.conf bareos-dir (100): lib/lex.cc:226-0 open config file: /etc/bareos/bareos-dir.d/fileset/Windows All Drives.conf bareos-dir (100): lib/lex.cc:226-0 open config file: /etc/bareos/bareos-dir.d/job/BackupCatalog.conf bareos-dir (100): lib/lex.cc:226-0 open config file: /etc/bareos/bareos-dir.d/job/RestoreFiles.conf bareos-dir (100): lib/lex.cc:226-0
Re: [bareos-users] Segmentation fault (core dumped)
Hello, Thank you. I already sent the output of /usr/sbin/bareos-dir -t -d 200 -u bareos -g bareos in my first mail. But I don't see where could be a misconfiguration. I am a bit confused, since I putted back the original files to /etc/bareos and get still the same error. My first installation worked without any problems and now, performing the same installation on different Ubuntu 16 gives me on each machine the same error. Could it be that an update of Ubuntu might be responsible? Here again the output ouf /usr/sbin/bareos-dir -t -d 200 -u bareos -g bareos. Thank you for any help. Kind regards, Birgit bareos-dir (10): dird/dird.cc:251-0 Debug level = 200 bareos-dir (100): lib/parse_conf.cc:208-0 config file = /etc/bareos/bareos-dir.d/*/*.conf bareos-dir (100): lib/lex.cc:333-0 glob /etc/bareos/bareos-dir.d/*/*.conf: 24 files bareos-dir (100): lib/lex.cc:226-0 open config file: /etc/bareos/bareos-dir.d/catalog/MyCatalog.conf bareos-dir (100): lib/lex.cc:226-0 open config file: /etc/bareos/bareos-dir.d/client/bareos-fd.conf bareos-dir (100): lib/lex.cc:226-0 open config file: /etc/bareos/bareos-dir.d/console/admin.conf bareos-dir (100): lib/lex.cc:226-0 open config file: /etc/bareos/bareos-dir.d/console/bareos-mon.conf bareos-dir (100): lib/lex.cc:226-0 open config file: /etc/bareos/bareos-dir.d/director/bareos-dir.conf bareos-dir (100): lib/lex.cc:226-0 open config file: /etc/bareos/bareos-dir.d/fileset/Catalog.conf bareos-dir (100): lib/lex.cc:226-0 open config file: /etc/bareos/bareos-dir.d/fileset/LinuxAll.conf bareos-dir (100): lib/lex.cc:226-0 open config file: /etc/bareos/bareos-dir.d/fileset/SelfTest.conf bareos-dir (100): lib/lex.cc:226-0 open config file: /etc/bareos/bareos-dir.d/fileset/Windows All Drives.conf bareos-dir (100): lib/lex.cc:226-0 open config file: /etc/bareos/bareos-dir.d/job/BackupCatalog.conf bareos-dir (100): lib/lex.cc:226-0 open config file: /etc/bareos/bareos-dir.d/job/RestoreFiles.conf bareos-dir (100): lib/lex.cc:226-0 open config file: /etc/bareos/bareos-dir.d/job/backup-bareos-fd.conf bareos-dir (100): lib/lex.cc:226-0 open config file: /etc/bareos/bareos-dir.d/jobdefs/DefaultJob.conf bareos-dir (100): lib/lex.cc:226-0 open config file: /etc/bareos/bareos-dir.d/messages/Daemon.conf bareos-dir (100): lib/lex.cc:226-0 open config file: /etc/bareos/bareos-dir.d/messages/Standard.conf bareos-dir (100): lib/lex.cc:226-0 open config file: /etc/bareos/bareos-dir.d/pool/Differential.conf bareos-dir (100): lib/lex.cc:226-0 open config file: /etc/bareos/bareos-dir.d/pool/Full.conf bareos-dir (100): lib/lex.cc:226-0 open config file: /etc/bareos/bareos-dir.d/pool/Incremental.conf bareos-dir (100): lib/lex.cc:226-0 open config file: /etc/bareos/bareos-dir.d/pool/Scratch.conf bareos-dir (100): lib/lex.cc:226-0 open config file: /etc/bareos/bareos-dir.d/profile/operator.conf bareos-dir (100): lib/lex.cc:226-0 open config file: /etc/bareos/bareos-dir.d/profile/webui-admin.conf bareos-dir (100): lib/lex.cc:226-0 open config file: /etc/bareos/bareos-dir.d/schedule/WeeklyCycle.conf bareos-dir (100): lib/lex.cc:226-0 open config file: /etc/bareos/bareos-dir.d/schedule/WeeklyCycleAfterBackup.conf bareos-dir (100): lib/lex.cc:226-0 open config file: /etc/bareos/bareos-dir.d/storage/File.conf bareos-dir (9): dird/inc_conf.cc:573-0 set wildfile e4fad0 size=1 [A-Z]:/pagefile.sys bareos-dir (9): dird/inc_conf.cc:573-0 set wilddir e4fad0 size=1 [A-Z]:/RECYCLER bareos-dir (9): dird/inc_conf.cc:573-0 set wilddir e4fad0 size=2 [A-Z]:/$RECYCLE.BIN bareos-dir (9): dird/inc_conf.cc:573-0 set wilddir e4fad0 size=3 [A-Z]:/System Volume Information bareos-dir (100): lib/lex.cc:333-0 glob /etc/bareos/bareos-dir.d/*/*.conf: 24 files bareos-dir (100): lib/lex.cc:226-0 open config file: /etc/bareos/bareos-dir.d/catalog/MyCatalog.conf bareos-dir (100): lib/lex.cc:226-0 open config file: /etc/bareos/bareos-dir.d/client/bareos-fd.conf bareos-dir (100): lib/lex.cc:226-0 open config file: /etc/bareos/bareos-dir.d/console/admin.conf bareos-dir (100): lib/lex.cc:226-0 open config file: /etc/bareos/bareos-dir.d/console/bareos-mon.conf bareos-dir (100): lib/lex.cc:226-0 open config file: /etc/bareos/bareos-dir.d/director/bareos-dir.conf bareos-dir (100): lib/lex.cc:226-0 open config file: /etc/bareos/bareos-dir.d/fileset/Catalog.conf bareos-dir (100): lib/lex.cc:226-0 open config file: /etc/bareos/bareos-dir.d/fileset/LinuxAll.conf bareos-dir (100): lib/lex.cc:226-0 open config file: /etc/bareos/bareos-dir.d/fileset/SelfTest.conf bareos-dir (100): lib/lex.cc:226-0 open config file: /etc/bareos/bareos-dir.d/fileset/Windows All Drives.conf bareos-dir (100): lib/lex.cc:226-0 open config file: /etc/bareos/bareos-dir.d/job/BackupCatalog.conf bareos-dir (100): lib/lex.cc:226-0 open config file: /etc/bareos/bareos-dir.d/job/RestoreFiles.conf bareos-dir (100): lib/lex.cc:226-0 open config file: /etc/bareos/bareos-dir.d/job/backup-bareos-fd.conf bareos-dir (100):
Re: [bareos-users] Segmentation fault (core dumped)
You may want to try bareos -t -d 200 #where 200 is the debug level; the higher the number the more output. Do not be confused by the segmentation fault, this is the current fatal-exit of the director. This can also happen on a misconfigured config or database connection. The debug messages should tell you more. Am 26.11.19 um 16:09 schrieb 'DUCARROZ Birgit' via bareos-users: P.S. I installed bareos now on 3 different servers (new installation). 3x the same error: # bareos-dir -t BAREOS interrupted by signal 11: Segmentation violation Segmentation fault (core dumped) Seems to be in relation with the DB, not with the files in bareos-dir.d Can someone reproduce this error? This is my installation: Ubuntu 16.04 LTS Linux diufnas26 4.4.0-169-generic #198-Ubuntu SMP Tue Nov 12 10:38:00 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux # Install the DB: apt update && apt upgrade -y RELEASE=release/latest/ DIST=xUbuntu_$(lsb_release -sr) URL=http://download.bareos.org/bareos/$RELEASE/$DIST printf "deb $URL /\n" | sudo tee /etc/apt/sources.list.d/bareos.list wget -q $URL/Release.key -O- | sudo apt-key add - apt update apt install mariadb-server -y apt install mariadb-server bareos bareos-database-mysql /usr/lib/bareos/scripts/create_bareos_database /usr/lib/bareos/scripts/make_bareos_tables /usr/lib/bareos/scripts/grant_bareos_privileges systemctl start bareos-dir systemctl start bareos-sd systemctl start bareos-fd systemctl restart mysql Kind regards, Birgit On 26/11/19 12:52, 'DUCARROZ Birgit' via bareos-users wrote: Hello, Can someone help me with this please? root@diufnas26:/etc/bareos/bareos-dir.d/fileset# systemctl restart bareos-dir Job for bareos-director.service failed because a fatal signal was delivered causing the control process to dump core. See "systemctl status bareos-director.service" and "journalctl -xe" for details. When I execute /usr/sbin/bareos-dir I get no error. bareos-dir -t BAREOS interrupted by signal 11: Segmentation violation Segmentation fault (core dumped) root@diufnas26:/etc/bareos/bareos-dir.d/fileset# journalctl -xe -- Subject: Unit apache2.service has begun start-up -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit apache2.service has begun starting up. Nov 26 12:43:12 diufnas26 apache2[12710]: * Starting Apache httpd web server apache2 Nov 26 12:43:13 diufnas26 apache2[12710]: * Nov 26 12:43:13 diufnas26 systemd[1]: Started LSB: Apache2 web server. -- Subject: Unit apache2.service has finished start-up -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit apache2.service has finished starting up. -- -- The start-up result is done. Nov 26 12:43:28 diufnas26 systemd[1]: bareos-storage.service: State 'stop-sigterm' timed out. Killing. Nov 26 12:43:28 diufnas26 systemd[1]: bareos-storage.service: Main process exited, code=killed, status=9/KILL Nov 26 12:43:28 diufnas26 systemd[1]: Stopped Bareos Storage Daemon service. -- Subject: Unit bareos-storage.service has finished shutting down -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit bareos-storage.service has finished shutting down. Nov 26 12:43:28 diufnas26 systemd[1]: bareos-storage.service: Unit entered failed state. Nov 26 12:43:28 diufnas26 systemd[1]: bareos-storage.service: Failed with result 'signal'. Nov 26 12:43:28 diufnas26 systemd[1]: Starting Bareos Storage Daemon service... -- Subject: Unit bareos-storage.service has begun start-up -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit bareos-storage.service has begun starting up. Nov 26 12:43:28 diufnas26 systemd[1]: bareos-storage.service: PID file /var/lib/bareos/bareos-sd.9103.pid not readable (yet Nov 26 12:43:28 diufnas26 systemd[1]: Started Bareos Storage Daemon service. -- Subject: Unit bareos-storage.service has finished start-up -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit bareos-storage.service has finished starting up. -- -- The start-up result is done. Nov 26 12:43:57 diufnas26 bareos-dir[12756]: BAREOS interrupted by signal 11: Segmentation violation root@diufnas26:/etc/bareos/bareos-dir.d/fileset# /usr/sbin/bareos-dir -t -d 200 -u bareos -g bareos bareos-dir (10): dird/dird.cc:258-0 Debug level = 200 bareos-dir (100): lib/parse_conf.cc:191-0 config file = /etc/bareos/bareos-dir.d/*/*.conf bareos-dir (100): lib/lex.cc:335-0 glob /etc/bareos/bareos-dir.d/*/*.conf: 86 files bareos-dir (100): lib/lex.cc:229-0 open config file: /etc/bareos/bareos-dir.d/catalog/MyCatalog.conf bareos-dir (100): lib/lex.cc:229-0 open config file: /etc/bareos/bareos-dir.d/client/bareos-fd.conf bareos-dir (100): lib/lex.cc:229-0 open config file: /etc/bareos/bareos-dir.d/client/lx85.conf bareos-dir (100): lib/lex.cc:229-0 open config file:
Re: [bareos-users] Segmentation fault (core dumped)
P.S. I installed bareos now on 3 different servers (new installation). 3x the same error: # bareos-dir -t BAREOS interrupted by signal 11: Segmentation violation Segmentation fault (core dumped) Seems to be in relation with the DB, not with the files in bareos-dir.d Can someone reproduce this error? This is my installation: Ubuntu 16.04 LTS Linux diufnas26 4.4.0-169-generic #198-Ubuntu SMP Tue Nov 12 10:38:00 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux # Install the DB: apt update && apt upgrade -y RELEASE=release/latest/ DIST=xUbuntu_$(lsb_release -sr) URL=http://download.bareos.org/bareos/$RELEASE/$DIST printf "deb $URL /\n" | sudo tee /etc/apt/sources.list.d/bareos.list wget -q $URL/Release.key -O- | sudo apt-key add - apt update apt install mariadb-server -y apt install mariadb-server bareos bareos-database-mysql /usr/lib/bareos/scripts/create_bareos_database /usr/lib/bareos/scripts/make_bareos_tables /usr/lib/bareos/scripts/grant_bareos_privileges systemctl start bareos-dir systemctl start bareos-sd systemctl start bareos-fd systemctl restart mysql Kind regards, Birgit On 26/11/19 12:52, 'DUCARROZ Birgit' via bareos-users wrote: Hello, Can someone help me with this please? root@diufnas26:/etc/bareos/bareos-dir.d/fileset# systemctl restart bareos-dir Job for bareos-director.service failed because a fatal signal was delivered causing the control process to dump core. See "systemctl status bareos-director.service" and "journalctl -xe" for details. When I execute /usr/sbin/bareos-dir I get no error. bareos-dir -t BAREOS interrupted by signal 11: Segmentation violation Segmentation fault (core dumped) root@diufnas26:/etc/bareos/bareos-dir.d/fileset# journalctl -xe -- Subject: Unit apache2.service has begun start-up -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit apache2.service has begun starting up. Nov 26 12:43:12 diufnas26 apache2[12710]: * Starting Apache httpd web server apache2 Nov 26 12:43:13 diufnas26 apache2[12710]: * Nov 26 12:43:13 diufnas26 systemd[1]: Started LSB: Apache2 web server. -- Subject: Unit apache2.service has finished start-up -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit apache2.service has finished starting up. -- -- The start-up result is done. Nov 26 12:43:28 diufnas26 systemd[1]: bareos-storage.service: State 'stop-sigterm' timed out. Killing. Nov 26 12:43:28 diufnas26 systemd[1]: bareos-storage.service: Main process exited, code=killed, status=9/KILL Nov 26 12:43:28 diufnas26 systemd[1]: Stopped Bareos Storage Daemon service. -- Subject: Unit bareos-storage.service has finished shutting down -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit bareos-storage.service has finished shutting down. Nov 26 12:43:28 diufnas26 systemd[1]: bareos-storage.service: Unit entered failed state. Nov 26 12:43:28 diufnas26 systemd[1]: bareos-storage.service: Failed with result 'signal'. Nov 26 12:43:28 diufnas26 systemd[1]: Starting Bareos Storage Daemon service... -- Subject: Unit bareos-storage.service has begun start-up -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit bareos-storage.service has begun starting up. Nov 26 12:43:28 diufnas26 systemd[1]: bareos-storage.service: PID file /var/lib/bareos/bareos-sd.9103.pid not readable (yet Nov 26 12:43:28 diufnas26 systemd[1]: Started Bareos Storage Daemon service. -- Subject: Unit bareos-storage.service has finished start-up -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit bareos-storage.service has finished starting up. -- -- The start-up result is done. Nov 26 12:43:57 diufnas26 bareos-dir[12756]: BAREOS interrupted by signal 11: Segmentation violation root@diufnas26:/etc/bareos/bareos-dir.d/fileset# /usr/sbin/bareos-dir -t -d 200 -u bareos -g bareos bareos-dir (10): dird/dird.cc:258-0 Debug level = 200 bareos-dir (100): lib/parse_conf.cc:191-0 config file = /etc/bareos/bareos-dir.d/*/*.conf bareos-dir (100): lib/lex.cc:335-0 glob /etc/bareos/bareos-dir.d/*/*.conf: 86 files bareos-dir (100): lib/lex.cc:229-0 open config file: /etc/bareos/bareos-dir.d/catalog/MyCatalog.conf bareos-dir (100): lib/lex.cc:229-0 open config file: /etc/bareos/bareos-dir.d/client/bareos-fd.conf bareos-dir (100): lib/lex.cc:229-0 open config file: /etc/bareos/bareos-dir.d/client/lx85.conf bareos-dir (100): lib/lex.cc:229-0 open config file: /etc/bareos/bareos-dir.d/client/nas01.conf bareos-dir (100): lib/lex.cc:229-0 open config file: /etc/bareos/bareos-dir.d/client/nas20.conf bareos-dir (100): lib/lex.cc:229-0 open config file: /etc/bareos/bareos-dir.d/client/nas21.conf bareos-dir (100): lib/lex.cc:229-0 open config file: /etc/bareos/bareos-dir.d/client/nas22.conf bareos-dir (100): lib/lex.cc:229-0 open config file:
[bareos-users] Segmentation fault (core dumped)
Hello, Can someone help me with this please? root@diufnas26:/etc/bareos/bareos-dir.d/fileset# systemctl restart bareos-dir Job for bareos-director.service failed because a fatal signal was delivered causing the control process to dump core. See "systemctl status bareos-director.service" and "journalctl -xe" for details. When I execute /usr/sbin/bareos-dir I get no error. bareos-dir -t BAREOS interrupted by signal 11: Segmentation violation Segmentation fault (core dumped) root@diufnas26:/etc/bareos/bareos-dir.d/fileset# journalctl -xe -- Subject: Unit apache2.service has begun start-up -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit apache2.service has begun starting up. Nov 26 12:43:12 diufnas26 apache2[12710]: * Starting Apache httpd web server apache2 Nov 26 12:43:13 diufnas26 apache2[12710]: * Nov 26 12:43:13 diufnas26 systemd[1]: Started LSB: Apache2 web server. -- Subject: Unit apache2.service has finished start-up -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit apache2.service has finished starting up. -- -- The start-up result is done. Nov 26 12:43:28 diufnas26 systemd[1]: bareos-storage.service: State 'stop-sigterm' timed out. Killing. Nov 26 12:43:28 diufnas26 systemd[1]: bareos-storage.service: Main process exited, code=killed, status=9/KILL Nov 26 12:43:28 diufnas26 systemd[1]: Stopped Bareos Storage Daemon service. -- Subject: Unit bareos-storage.service has finished shutting down -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit bareos-storage.service has finished shutting down. Nov 26 12:43:28 diufnas26 systemd[1]: bareos-storage.service: Unit entered failed state. Nov 26 12:43:28 diufnas26 systemd[1]: bareos-storage.service: Failed with result 'signal'. Nov 26 12:43:28 diufnas26 systemd[1]: Starting Bareos Storage Daemon service... -- Subject: Unit bareos-storage.service has begun start-up -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit bareos-storage.service has begun starting up. Nov 26 12:43:28 diufnas26 systemd[1]: bareos-storage.service: PID file /var/lib/bareos/bareos-sd.9103.pid not readable (yet Nov 26 12:43:28 diufnas26 systemd[1]: Started Bareos Storage Daemon service. -- Subject: Unit bareos-storage.service has finished start-up -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit bareos-storage.service has finished starting up. -- -- The start-up result is done. Nov 26 12:43:57 diufnas26 bareos-dir[12756]: BAREOS interrupted by signal 11: Segmentation violation root@diufnas26:/etc/bareos/bareos-dir.d/fileset# /usr/sbin/bareos-dir -t -d 200 -u bareos -g bareos bareos-dir (10): dird/dird.cc:258-0 Debug level = 200 bareos-dir (100): lib/parse_conf.cc:191-0 config file = /etc/bareos/bareos-dir.d/*/*.conf bareos-dir (100): lib/lex.cc:335-0 glob /etc/bareos/bareos-dir.d/*/*.conf: 86 files bareos-dir (100): lib/lex.cc:229-0 open config file: /etc/bareos/bareos-dir.d/catalog/MyCatalog.conf bareos-dir (100): lib/lex.cc:229-0 open config file: /etc/bareos/bareos-dir.d/client/bareos-fd.conf bareos-dir (100): lib/lex.cc:229-0 open config file: /etc/bareos/bareos-dir.d/client/lx85.conf bareos-dir (100): lib/lex.cc:229-0 open config file: /etc/bareos/bareos-dir.d/client/nas01.conf bareos-dir (100): lib/lex.cc:229-0 open config file: /etc/bareos/bareos-dir.d/client/nas20.conf bareos-dir (100): lib/lex.cc:229-0 open config file: /etc/bareos/bareos-dir.d/client/nas21.conf bareos-dir (100): lib/lex.cc:229-0 open config file: /etc/bareos/bareos-dir.d/client/nas22.conf bareos-dir (100): lib/lex.cc:229-0 open config file: /etc/bareos/bareos-dir.d/client/nas26.conf bareos-dir (100): lib/lex.cc:229-0 open config file: /etc/bareos/bareos-dir.d/client/nas27.conf bareos-dir (100): lib/lex.cc:229-0 open config file: /etc/bareos/bareos-dir.d/client/rd140.conf bareos-dir (100): lib/lex.cc:229-0 open config file: /etc/bareos/bareos-dir.d/client/rd141.conf bareos-dir (100): lib/lex.cc:229-0 open config file: /etc/bareos/bareos-dir.d/client/vm20.conf bareos-dir (100): lib/lex.cc:229-0 open config file: /etc/bareos/bareos-dir.d/client/vm25.conf bareos-dir (100): lib/lex.cc:229-0 open config file: /etc/bareos/bareos-dir.d/client/vm32.conf bareos-dir (100): lib/lex.cc:229-0 open config file: /etc/bareos/bareos-dir.d/client/vm35.conf bareos-dir (100): lib/lex.cc:229-0 open config file: /etc/bareos/bareos-dir.d/client/vm57.conf bareos-dir (100): lib/lex.cc:229-0 open config file: /etc/bareos/bareos-dir.d/client/websrv.conf bareos-dir (100): lib/lex.cc:229-0 open config file: /etc/bareos/bareos-dir.d/console/admin.conf bareos-dir (100): lib/lex.cc:229-0 open config file: /etc/bareos/bareos-dir.d/console/bareos-mon.conf bareos-dir (100): lib/lex.cc:229-0 open config file: