[Bacula-users] Backup to S3 with 9.4.2 - Timeout when trying to access S3 bucket
Hello list, I recently updated my director and storage daemon (both located on the same host) from version 9.2.1 to 9.2.4 (using the Bacula debian packages) to use the new "Cloud" directives for AWS S3 buckets. My config for the cloud device looks like this: bacula-sd.conf: Device { Name = S3-BucketProd Device Type = Cloud Cloud = S3Cloud-Prod Archive Device = /opt/backup-mount Maximum Part Size = 1000 Media Type = CloudType LabelMedia = yes Random Access = Yes; AutomaticMount = yes RemovableMedia = no AlwaysOpen = no } Cloud { Name = S3Cloud-Prod Driver = "S3" HostName = "s3-eu-central-1.amazonaws.com" BucketName = "bacula-backup" AccessKey = "MY-ACCESS-KEY" SecretKey = "MY-SECRET-KEY" Protocol = HTTPS UriStyle = VirtualHost Truncate Cache = No Upload = EachPart Region = "eu-central-1" } bacula-dir.conf: Storage { Name = Prod Address = my-backup-host # N.B. Use a fully qualified name here SDPort = 9103 Password = "XXX" Device = S3-BucketProd Media Type = CloudType Maximum Concurrent Jobs = 3 } Startup of director and storage daemon is without any error, but as soon as I initiate a job to run, it seems like the cloud resource isn't used and my job times out when contacting the storage daemon. The same occurs when querying the list of Cloud volumes on bconsole. If I change the storage resource "Prod" to point to a Device of the same storage daemon which uses an S3 bucket as a mounted filesystem, everything is working fine and the job is starting immediately. Tl;dr: - Mounting a S3 bucket using s3fs as local file system is working fine - Trying to access the same bucket using the "Cloud"-Resource times out Did someone already got this resource working or can point me to a direction where I can search for the error? If it's required I can send the complete Bacula config files in a sanitized version. Thanks and regards, Daniel Heitepriem smime.p7s Description: S/MIME Cryptographic Signature ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Bacula 9.x.x and Solaris 11.3 (and OpenSUSE)...
Hi Gary, I just tried to compile 9.0.6 on a Solaris 11.3 box (but using GCC 5.4.0 and MySQL) with these options: CFLAGS="-g -m64" LDFLAGS="-m64" CXXFLAGS="-m64" ./configure \ --prefix=/opt/bacula \ --with-dir-user=bacula \ --with-dir-group=bacula \ --with-sd-user=bacula \ --with-sd-group=bacula \ --with-fd-user=root \ --with-fd-group=bacula \ --enable-smartalloc \ --sbindir=/opt/bacula/bin \ --sysconfdir=/opt/bacula/etc \ --with-subsys-dir=/opt/bacula/var \ --with-working-dir=/opt/bacula/var/bacula/working \ --with-pid-dir=/opt/bacula/var \ --with-logdir=/opt/bacula/var \ --with-archivedir=/opt/bacula/var \ --with-mysql=/opt/mysql \ --with-openssl and it's working fine so far. Your issue may be related to the "disable-libtool" parameter you provided. Can you try to build it without this disable parameter. Regards, Daniel On 06.04.18 09:34, Gary R. Schmidt wrote: > ...Or, Bacula is getting about as portable as the Great Wall of China. > > Trying to build Bacula on Solaris 11.3 x64, attempted using both the > Solaris Compiler Suite (now known as Developer Studio) and GCC 7.3.0. > > TL;DR - it doesn't build, because of stupidity(TM). > > So, I have a chance to upgrade my Bacula infrastructure, and move the > tape loader onto honking great big box with 100+Gb of RAM and stuff, > so I thinks, "I'll switch to PostgreSQL, and in the same step, update > from 7.0.5 to 9.0.6". > > Pull the new version down, set up configure, thusly (Yes, I know > --disable-libtool is a noop now, that's just another stupidity(TM)): > $ > PATH=/opt/postgres/bin:/usr/bin:/bin:/opt/solarisstudio12.4/bin:/opt/sfw/bin:/usr/ccs/bin:/opt/local/bin:/usr/openwin/bin:. > $ export PATH > $ ./configure \ > CC=cc CXX=CC \ > CFLAGS="-g -O -m64" \ > LDFLAGS="-m64" \ > --prefix=/opt/bacula \ > --with-archivedir=/opt/bacula/archive \ > --with-working-dir=/home/bacula/working \ > --with-plugindir=/opt/bacula/plugins \ > --with-scriptdir=/opt/bacula/scripts \ > --with-subsys-dir=/opt/bacula/subsys \ > --with-postgresql=/opt/postgres \ > --with-dir-user=bacula \ > --with-dir-group=backup \ > --with-sd-user=bacula \ > --with-sd-group=backup \ > --with-fd-user=root \ > --with-fd-group=backup \ > --enable-smartalloc \ > --enable-lockmgr \ > --enable-batch-insert \ > --with-dump-email=m...@me.me \ > --with-job-email=m...@me.me \ > --disable-libtool \ > --with-x \ > --x-includes=/usr/include/X11 \ > --with-smtp-host=mail > > Not a problem, all looks copacetic. > > $ gmake > ... > "fd_plugins.h", line 200: Warning: Identifier expected instead of "}". > > Sigh, that's just an annoyance, but as I learnt my C back when K > Edition 1 was the bible, it niggles me, so I fixes it, just removing > the unneeded , before the }. > > So, onwards. > ... > Making libbacsd.la ... > /opt/solarisstudio12.4/bin/CC -m64 -o libbacsd.la \ > acquire.lo ansi_label.lo askdir.lo autochanger.lo block.lo > block_util.lo butil.lo dev.lo device.lo ebcdic.lo init_dev.lo label.lo > lock.lo match_bsr.lo mount.lo null_dev.lo os.lo parse_bsr.lo read.lo > read_records.lo record_read.lo record_util.lo record_write.lo > reserve.lo scan.lo sd_plugins.lo spool.lo tape_alert.lo vol_mgr.lo > wait.lo fifo_dev.lo file_dev.lo tape_dev.lo vtape_dev.lo \ > -export-dynamic -rpath /opt/bacula/lib -release 9.0.6 > CC: Warning: Option -path passed to ld, if ld is invoked, ignored > otherwise > ld: fatal: option '-export-dynamic' and option '-elease' are incompatible > ld: fatal: option '-export-dynamic' is incompatible with building a > relocatable object > ld: fatal: option '-path' is incompatible with building a relocatable > object > ld: fatal: option '-R/opt/solarisstudio12.4/lib/amd64' is incompatible > with building a relocatable object > gmake[1]: *** [libbacsd.la] Error 2 > gmake[1]: Leaving directory > `/home/garys/src/bacula/bacula-9.0.6/src/stored' > > Now *that's* useful, not. Looks like someone is trying to build a > shared object with the wrong extension, using the linker. Oh, and > they think the linker is the GNU linker. No, it isn't, and way back > in the configure process it worked that out. > > Just for fun, I removed the "-rpath /opt/bacula/lib -release 9.0.6" > and tried again... > ... > Making libbacsd.la ... > /opt/solarisstudio12.4/bin/CC -m64 -o libbacsd.la \ > acquire.lo ansi_label.lo askdir.lo autochanger.lo block.lo > block_util.lo butil.lo dev.lo device.lo ebcdic.lo init_dev.lo label.lo > lock.lo match_bsr.lo mount.lo null_dev.lo os.lo parse_bsr.lo read.lo > read_records.lo record_read.lo record_util.lo record_write.lo > reserve.lo scan.lo sd_plugins.lo spool.lo tape_alert.lo vol_mgr.lo > wait.lo fifo_dev.lo file_dev.lo tape_dev.lo vtape_dev.lo \ > -export-dynamic > ld: fatal: file acquire.lo: open failed: No such file or directory > ld: fatal: file
Re: [Bacula-users] Baculum and LDAP authentication
Hello Marcin, thanks for your answer. I tried Baculum 7.4.7 with a plain configuration and auth user file "baculum.users" but got the same "Error 6". Baculum 9.0.1 is working on the same host without any problems. So it seems like the problem isn't related to LDAP based authentication. Regards, Daniel Am 21.07.17 um 13:28 schrieb Marcin Haba: Hello Daniel, I think that it isn't possible to use LDAP authentication with the Baculum 7.4. The Baculum 7.4 uses auth user file (baculum.users) to store users and this file is used both by web server and the Baculum itself. In the Baculum version 9.0 there are two baculum.users files: one for the web GUI and one for the API part. Also the meaning of the baculum.users file is changed in 9.0 because it is used only by web server, and the Baculum GUI and Baculum API only enable to save users to these files. I think that more possible it could be use LDAP authentication with the Baculum 9.0 (for Web GUI or API or both) but the important note is that in 9.0 the restricted consoles support is a bit changed. Restricted consoles are possible to define for OAuth2 per API client, but for Basic authentication the restricted consoles are unavailable. If you don't use restricted consoles then you can try with 9.0 version. Next week should be available binary packages for this version. Best regards. Marcin Haba (gani) On 21 July 2017 at 09:32, Daniel Heitepriem <daniel.heitepr...@pribas.com> wrote: Hi everyone, I'm trying to get Baculum to work with LDAP authentication. The basic authentication when accessing the wizard of a fresh install is working fine but after completing the wizard I'm stuck as I get the error "Error 6 - authorization to Baculum error." and no error in Apache error log nor in baculum.dbg Below is my Apache Auth-config for Baculum and the content of baculum.dbg. Apache config: Order allow,deny Allow from all Options +FollowSymLinks RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php/$1 [L] AuthName "Baculum Auth" AuthBasicProvider ldap AuthType Basic AuthLDAPURL "ldap://IP:389/ou=staff,ou=people,dc=example,dc=com?uid; AuthLDAPBindDN "cn=baculum,ou=LDAPauth,dc=example,dc=com" AuthLDAPBindPassword "SecretPassword" Require valid-user LDAPReferrals Off baculum.dbg: Jul 21 07:31:52 [Debug] [Application] Command=setUrlParams, Output= EXECUTE URL ==> http://10.1.10.243:9095/directors?director= <== , File=/opt/baculum/protected/Class/API.php, Line=138 (line 89, /opt/baculum/protected/Class/Logging.php) Jul 21 07:31:53 [Debug] [Application] Command=preParseOutput, Output={"output":"Problem with authorization to Baculum WebGUI.","error":6}, File=/opt/baculum/protected/Class/API.php, Line=256 (line 89, /opt/baculum/protected/Class/Logging.php) Jul 21 07:31:53 [Debug] [Application] Command=preParseOutput, Output=stdClass Object ( [output] => Problem with authorization to Baculum WebGUI. [error] => 6 ) , File=/opt/baculum/protected/Class/API.php, Line=277 (line 89, /opt/baculum/protected/Class/Logging.php) Thanks in advance and regards, Daniel -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Baculum and LDAP authentication
Hi everyone, I'm trying to get Baculum to work with LDAP authentication. The basic authentication when accessing the wizard of a fresh install is working fine but after completing the wizard I'm stuck as I get the error "Error 6 - authorization to Baculum error." and no error in Apache error log nor in baculum.dbg Below is my Apache Auth-config for Baculum and the content of baculum.dbg. Apache config: Order allow,deny Allow from all Options +FollowSymLinks RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php/$1 [L] AuthName "Baculum Auth" AuthBasicProvider ldap AuthType Basic AuthLDAPURL "ldap://IP:389/ou=staff,ou=people,dc=example,dc=com?uid; AuthLDAPBindDN "cn=baculum,ou=LDAPauth,dc=example,dc=com" AuthLDAPBindPassword "SecretPassword" Require valid-user LDAPReferrals Off baculum.dbg: Jul 21 07:31:52 [Debug] [Application] Command=setUrlParams, Output= EXECUTE URL ==> http://10.1.10.243:9095/directors?director= <== , File=/opt/baculum/protected/Class/API.php, Line=138 (line 89, /opt/baculum/protected/Class/Logging.php) Jul 21 07:31:53 [Debug] [Application] Command=preParseOutput, Output={"output":"Problem with authorization to Baculum WebGUI.","error":6}, File=/opt/baculum/protected/Class/API.php, Line=256 (line 89, /opt/baculum/protected/Class/Logging.php) Jul 21 07:31:53 [Debug] [Application] Command=preParseOutput, Output=stdClass Object ( [output] => Problem with authorization to Baculum WebGUI. [error] => 6 ) , File=/opt/baculum/protected/Class/API.php, Line=277 (line 89, /opt/baculum/protected/Class/Logging.php) Thanks in advance and regards, Daniel -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] unable to upgrade bacula database from 14 to 15
Hi, what is your database name of your catalog database? If you open "update_mysql_tables" with an editor you can see that there is a line called "db_name=bacula" which is used further down to access the database. If your catalog has another name you have to adjust it in the script. Regards, Daniel Am 20.07.17 um 23:15 schrieb Thing: root@vuwunicobculat1:/etc/bacula# /usr/share/bacula-director/update_mysql_tables -u root -p This script will update a Bacula MySQL database from version 12-14 to 15 Depending on the current version of your catalog, you may have to run this script multiple times. Enter password: ERROR 1049 (42000): Unknown database 'XXX_DBNAME_XXX' Unable to detect database version, you can specify connection information on the command line. Error. Cannot upgrade this database. root@vuwunicobculat1:/etc/bacula# -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Bacula 9.0.0 - 'StartTime' doesn't have a default value
Hi everyone, after upgrading from Bacula 7.5.7 to 9.0.1 in my test environment, I encountered the same issue after running the "update_mysql_tables" script. Beside removing NO_ZERO_IN_DATE and NO_ZERO_DATE I also had to remove STRICT_TRANS_TABLES from the SQL mode. The MySQL version I use is 5.7.13 mysql> show variables like "%version%"; +-+--+ | Variable_name | Value| +-+--+ | innodb_version | 5.7.13 | | protocol_version| 10 | | slave_type_conversions | | | tls_version | TLSv1,TLSv1.1| | version | 5.7.13-log | | version_comment | MySQL Community Server (GPL) | | version_compile_machine | sparc| | version_compile_os | solaris11| +-+--+ with these settings: [mysqld] basedir=/opt/mysql datadir=/data/mysql bind_address=Ip.Address.Of.Zone collation_server=utf8_general_ci character_set_server=utf8 slow_query_log=1 slow_query_log_file=/logs/mysql/slow_queries log_error=/logs/mysql/error explicit_defaults_for_timestamp=TRUE skip-external-locking skip-innodb_doublewrite Regards, Daniel Am 17.07.17 um 00:15 schrieb Phil Stracchino: On 07/16/17 15:11, Kern Sibbald wrote: Hello Phil, According to the documentation in both MySQL and MariaDB, I can use "-00-00 00:00:00". Yes - prior to MySQL 5.7, or if you change MySQL 5.7's default SQL_MODE. The default SQL_MODE in 5.7 includes NO_ZERO_DATE,NO_ZERO_IN_DATE. Remove those, and it'll work just fine in MySQL 5.7. -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] [Bacula-devel] Beta release 7.9.2
I can confirm that 7.9.3 builds also fine on Solaris 10 x64 using GCC. Best regards, Daniel Am 07.06.17 um 13:15 schrieb Gary R. Schmidt: On 07/06/2017 20:43, Gary R. Schmidt wrote: On 07/06/2017 17:59, Kern Sibbald wrote: Hello, Bacula does not require g++ to build, but you may need to adjust things. For example, on FreeBSD Bacula is built with clang. On Solaris you can use the Solaris compiler. I don't know what Developer Studio is, so I cannot say. However, you will need to have GNU tools installed. Oracle Developer Studio is the current name for the Solaris Compiler suite, what used to be Sun Studio, and before that Workshop and so on. I will pull down 7.9.3 and see how that goes. After manually correcting the lz4.c file to use pack(1)/pack(), 7.9.3 builds on Solaris 10 x64, using Developer Studio 12.3. I will look into running the regression tests, but I need to make a separate database first. (And steal some time!) Cheers, GaryB-) -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] [Bacula-devel] Beta release 7.9.2
Hi, with these changes version 7.9 can be successfully compiled on Solaris 11 x64 using GCC. @Gary R. Schmidt: It should now also work on Solaris 10 but I will check it also. Best regards, Daniel Am 07.06.17 um 10:45 schrieb Kern Sibbald: Hello, I have just pushed several fixes for Solaris to the www.bacula.org repo -- Branch-7.9 1. Fix the missing semi-colon 2. Remove vestiges of crc32_bad, which is not needed and should not be used. 3. I have also included several other patches ... Best regards, Kern On 06/07/2017 10:32 AM, Daniel Heitepriem wrote: Hi everyone, I can second this error for Solaris 11.3 x64 using GCC 4.8. The "bsys.c" error can be solved by adding the missing semicolon in file "bacula-7.9.2/src/lib/bsys.c" line 1218. Best regards, Daniel Heitepriem Am 07.06.17 um 10:12 schrieb Kern Sibbald: Hello, On 06/07/2017 09:52 AM, Gary R. Schmidt wrote: Trying to build on Solaris 10 x64, using GCC 5.2.0. As expected: Compiling bsys.c bsys.c: In function 'int baccept(int, sockaddr*, socklen_t*)': bsys.c:1219:7: error: expected ',' or ';' before 'if' if (fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC) < 0) { ^ Well, I really do not like seeing an fnctl as an argument to fnctl as it makes it harder to read (you might guess that I am not the author of that code). However, I don't immediately see the problem. Could you be more explict? Fix, and continue: Linking bacula-sd ... .../BETA/bacula-7.9.2/libtool --silent --tag=CXX --mode=link /opt/csw/bin/g++ -Lpath_to_mysql/lib/mysql -Rpath_to_mysql/lib/mysql -L/opt/csw/lib -R/opt/csw/lib -L. -L../lib -o bacula-sd stored.o append.o authenticate.o dircmd.o fd_cmds.o job.o hello.o status.o vbackup.o stored_conf.o global.o -lz \ -lbacsd -lbaccfg -lbac -lm -lpthread -lresolv -lnsl -lsocket -lxnet -lintl -lresolv -lrt \ /opt/csw/lib/libintl.so -R/opt/csw/lib -lssl -lcrypto ld: warning: file /opt/csw/lib/libintl.so: attempted multiple inclusion of file ld: warning: file /opt/csw/lib/libstdc++.so: attempted multiple inclusion of file Undefined first referenced symbol in file bcrc32_bad(unsigned char*, int) /home/garys/src/bacula/BETA/bacula-7.9.2/src/stored/.libs/libbacsd.so ld: fatal: Symbol referencing errors. No output written to .libs/bacula-sd Interesting, bcrc32_bad is in ./src/lib/protos.h, but not defined anywhere. This is probably a piece pulled in from the Enterprise version that I failed to notice. Unfortunately, bcrc32_bad is referenced in src/stored/block_util.c, but only for Solaris. I did not include the source for bcrc32_bad, because I thought it was not needed/used. I will have to check with the author of the code. For the current time, if you want to build and link correctly, I recommend deleting the blocks of code that are #ifdef on Solaris. Sorry about that slip up. Best regards, Kern -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] [Bacula-devel] Beta release 7.9.2
Hi everyone, I can second this error for Solaris 11.3 x64 using GCC 4.8. The "bsys.c" error can be solved by adding the missing semicolon in file "bacula-7.9.2/src/lib/bsys.c" line 1218. Best regards, Daniel Heitepriem Am 07.06.17 um 10:12 schrieb Kern Sibbald: Hello, On 06/07/2017 09:52 AM, Gary R. Schmidt wrote: Trying to build on Solaris 10 x64, using GCC 5.2.0. As expected: Compiling bsys.c bsys.c: In function 'int baccept(int, sockaddr*, socklen_t*)': bsys.c:1219:7: error: expected ',' or ';' before 'if' if (fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC) < 0) { ^ Well, I really do not like seeing an fnctl as an argument to fnctl as it makes it harder to read (you might guess that I am not the author of that code). However, I don't immediately see the problem. Could you be more explict? Fix, and continue: Linking bacula-sd ... .../BETA/bacula-7.9.2/libtool --silent --tag=CXX --mode=link /opt/csw/bin/g++ -Lpath_to_mysql/lib/mysql -Rpath_to_mysql/lib/mysql -L/opt/csw/lib -R/opt/csw/lib -L. -L../lib -o bacula-sd stored.o append.o authenticate.o dircmd.o fd_cmds.o job.o hello.o status.o vbackup.o stored_conf.o global.o -lz \ -lbacsd -lbaccfg -lbac -lm -lpthread -lresolv -lnsl -lsocket -lxnet -lintl -lresolv -lrt \ /opt/csw/lib/libintl.so -R/opt/csw/lib -lssl -lcrypto ld: warning: file /opt/csw/lib/libintl.so: attempted multiple inclusion of file ld: warning: file /opt/csw/lib/libstdc++.so: attempted multiple inclusion of file Undefined first referenced symbol in file bcrc32_bad(unsigned char*, int) /home/garys/src/bacula/BETA/bacula-7.9.2/src/stored/.libs/libbacsd.so ld: fatal: Symbol referencing errors. No output written to .libs/bacula-sd Interesting, bcrc32_bad is in ./src/lib/protos.h, but not defined anywhere. This is probably a piece pulled in from the Enterprise version that I failed to notice. Unfortunately, bcrc32_bad is referenced in src/stored/block_util.c, but only for Solaris. I did not include the source for bcrc32_bad, because I thought it was not needed/used. I will have to check with the author of the code. For the current time, if you want to build and link correctly, I recommend deleting the blocks of code that are #ifdef on Solaris. Sorry about that slip up. Best regards, Kern -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Files are added to catalog at the end of backup
Hello Kern, thank you for your answer. Here is my job definition: Job { Name = "monitor-host.logs" JobDefs = "DefaultJob" Storage = EAST Schedule = "Early" Write Bootstrap = "/opt/bacula/var/bacula/working/monitor-host.bsr" Client = monitor-host FileSet = "monitor-host.logs" RunScript { RunsWhen = After FailJobOnError = No Command = "/opt/bacula/libexec/cleanup.sh %i" RunsOnSuccess = Yes RunsOnClient = Yes } } FileSet { Name = "monitor-host.logs" Include { Options { signature = MD5 compression=GZIP } File = /logs/nagios/ } Exclude { File = /logs/nagios/nagios.log } } As you can see the jox uses the "RunScript"-directive. Here is the /cleanup.$jobid$.set/ file llist files jobid="79" Automatically selected Catalog: MyCatalog Using Catalog "MyCatalog" JobId: 79 Job: monitor-host.logs.2017-02-01_23.59.00_14 Name: monitor-host.logs PurgedFiles: 0 Type: B Level: I ClientId: 31 ClientName: monitor-host JobStatus: R SchedTime: 2017-02-01 23:59:00 StartTime: 2017-02-01 23:59:11 EndTime: NULL RealEndTime: NULL JobTDate: 1,485,989,951 VolSessionId: 0 VolSessionTime: 0 JobFiles: 0 JobBytes: 0 ReadBytes: 0 JobErrors: 0 JobMissingFiles: 0 PoolId: 1 PooLname: Incremental PriorJobId: 0 FileSetId: 65 FileSet: monitor-host.logs HasBase: 0 HasCache: 0 Comment: You have messages. and the corresponding log file -bash-4.1$ cat cleanup.79.log Cleaning job 79 -bash-4.1$ When I run the file daemon with debug options this is the output when the script is running: HOST-fd: job.c:314-79 Quit command loop. Canceled=0 HOST-fd: runscript.c:99-79 runscript: running all RUNSCRIPT object (ClientAfterJob) JobStatus=T HOST-fd: runscript.c:120-79 runscript: try to run *None*:/opt/bacula/libexec/cleanup.sh %i HOST-fd: runscript.c:158-79 runscript: Run it because SCRIPT_After (/opt/bacula/libexec/cleanup.sh %i,1,0,T) HOST-fd: runscript.c:219-79 runscript: running a RUNSCRIPT object type=79 HOST-fd: util.c:831-79 edit_job_codes: /opt/bacula/libexec/cleanup.sh %i HOST-fd: runscript.c:226-79 runscript: running '/opt/bacula/libexec/cleanup.sh 79'... HOST-fd: runscript.c:254-79 runscript OK As you can see the output of "llist files jobid=79" is empty and therefore the script does not run as intended. I hope that I made this a little bit clearer. Best regards, Daniel Am 02.02.17 um 14:39 schrieb Kern Sibbald: Hello, When a Bacula backup job terminates, all the File table entries are already in the catalog. So about the only thing that makes any sense is that you are running the script before the backup completes. Perhaps by simply adding a "wait" just before your llist, would solve the problem. However, be aware "wait" waits until no jobs are running which may delay the output if you are running multiple jobs. There is a "wait JobId=nnn" but I am not 100% sure it really works correctly (I have a vague recollection of some problems). Alternatively, it seems to me that use the appropriate RunScript + options to do the work, you can guarantee that it runs at the end of the job. Best regards, Kern On 02/02/2017 09:57 AM, Daniel Heitepriem wrote: Hi guys, I'm using Bacula 7.4.4 and got a script which runs after every backup and expects a list of file names which were backed up. Now I noticed that bacula is writing the files to the Catalog at the end of the backup process, thus the script receives an empty list and doesn't run properly. Below I got an excerpt of this script: export HOME; HOME="/opt/bacula" export LOG; LOG="$HOME/var/cleanup.$1.log" echo "Cleaning job $1">>$LOG $HOME/bin/bconsole < AGE=$(perl -e "print (-M \"$file\");"|cut -d'.' -f1) ## Get age of file if test -d $file ; then ## If line is a directory echo "Directory $file ... skipping...">>$LOG elif echo $file|egrep '.gz$' 2>&1 >/dev/null ; then ## Test if file has ".gz" suffix if [ "$AGE" -gt "$KEEP" ] ; then echo "$file is older than $KEEP days -> removing">>$LOG pfexec rm $file ## Removing files older than 7 days else echo "$file is younger than $KEEP days -> keeping">>$LOG In Bacula 5 this issue isn't present so the file list is available almost instantly. Did something change bet
[Bacula-users] Files are added to catalog at the end of backup
Hi guys, I'm using Bacula 7.4.4 and got a script which runs after every backup and expects a list of file names which were backed up. Now I noticed that bacula is writing the files to the Catalog at the end of the backup process, thus the script receives an empty list and doesn't run properly. Below I got an excerpt of this script: export HOME; HOME="/opt/bacula" export LOG; LOG="$HOME/var/cleanup.$1.log" echo "Cleaning job $1">>$LOG $HOME/bin/bconsole <>$LOG elif echo $file|egrep '.gz$' 2>&1 >/dev/null ; then ## Test if file has ".gz" suffix if [ "$AGE" -gt "$KEEP" ] ; then echo "$file is older than $KEEP days -> removing">>$LOG pfexec rm $file ## Removing files older than 7 days else echo "$file is younger than $KEEP days -> keeping">>$LOG In Bacula 5 this issue isn't present so the file list is available almost instantly. Did something change between the versions regarding this behavior? Thanks and best regards, Daniel Heitepriem -- Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] FW: Need Support in BAcking up Client
Hi Swapnil, is your client able to reach the storage daemon on Port 9103 and does your SD have a valid storage configuration e.g. is able to reach the disk/tape/whatever? Best regards, Daniel Heitepriem Am 19.01.17 um 15:25 schrieb Swapnil Bhaigude: Hi All, I am facing issues in backing up client of linux on Bacula. It gives me the below output :- is waiting for Client xx to connect to Storage x Can anyone revert what can I do to resolve this. Regards, Swapnil Bhaigude. This email communication (including any attachments) contains confidential information and is intended only for the named recipients. If you are not the intended recipient, please delete this email communication (including any attachments) and hard copies immediately, Any unauthorized use or dissemination of this email communication (including any attachments) in any manner, is strictly prohibited. This email communication (including any attachments), may not be free of viruses, you should carry out your own virus checks before opening any attachment to this e-mail. The sender of this e-mail and the company shall not be liable for any damage that you may sustain as a result of viruses, incompleteness of this message, interception of this message, which may arise as a result of e-mail transmission. -- Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users -- Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Delete volume file after retention time
On 18.01.17 16:16, Wanderlei Huttel wrote: Hello Daniel There are 2 parameters (File Retention and Job Retention). They are responsible to keep files and jobs in the catalog for the period you have set. Hello Wanderlei, alright, got it. Prune (Autoprune = Yes) is used to clean (Files and Jobs) from catalog using the parameters (File Retention and Job Retention) There is another parameter (Volume Retention) that is used to keep the data safe in the Volume (physical volume) So "Volume Retention" kind of protects the volume for a specific time to not get used again, right? If this period is over the volume gets purged so every data on it is wiped out and it can be rewritten with new data thus be seen as a "clean" volume like it had been freshly created. Bacula never delete physical volume. If you want this, is necessary to create an admin job to run a script and do this job. Best Regards *Wanderlei Hüttel* http://www.huttel.com.br <http://www.huttel.com.br/> Ok an admin job which runs once every x weeks shouldn't be a big problem. Thank you very much and best regards, Daniel Heitepriem -- Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Delete volume file after retention time
Hi guys, I need some clarification regarding the terms "retention time" and "prune": "Retention time": The time a file record and/or job record is stored in the database. For example: "File retention = 30 days" means that a file record is stored in the database for 30 days. If you do a restore in this time you are able to select the file directly. After day 30 you can just restore the whole job without a selection by files "Prune": With the "AutoPrune" directive a volume is marked as "recycled" and can be reused when the volume retention period is over. But the volume isn't automatically rewritten unless "Recycle = yes" is present, right? My second question is whether it is possible for bacula to delete a volume (also the created volume file on a hard disk) after a specific amount of time (e.g. 4 weeks)? So I create a backup at the beginning of the month and at the end of the month bacula is automatically deleting all records from the database (File/Job/Volume retention would apply here?) and also deletes the created volume file from the disk. Thank you very much for enlightening me, Daniel Heitepriem -- Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Variable in Fileset Exclude-list
Hi everybody, is it possible to use variables or similar in exclude list of filesets? Imagine we have this job declaration: Job { Name = "tester.logs" Storage = WEST JobDefs = "DefaultJob" Schedule = "Early" Write Bootstrap = "/etc/bacula/bsr/test.bsr" Client = client1 FileSet = "tester.logs" RunScript { RunsWhen = After FailJobOnError = No Command = "/opt/bacula/libexec/cleanup.sh %i" RunsOnSuccess = Yes RunsOnClient = Yes } } FileSet { Name = "tester.logs" Include { Options { signature = MD5 compression=GZIP } File = /logs/tomcat File = /logs/mongodb } Exclude { File = /logs/tomcat/catalina.out File = /logs/mongo/mongo.log File = /logs/tomcat/localhost_access_log.$(date +%Y-%m-%d).txt <-- Possible ?? } } The last line of the exclude list is the one I'm not sure about. Tomcat by default creates these "localhost_access_log.%DATE%.txt", e.g. localhost_access_log.2017-01-10.txt. Does this expression in the config file word or should I work around it by using a script or similar? Thanks and best regards, Daniel Heitepriem -- Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon Phi processor-based developer platforms. With one year of Intel Parallel Studio XE. Training and support from Colfax. Order your platform today. http://sdm.link/xeonphi ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Bacula Startup Errors Log Location
Hi, you can run bacula director in debug mode using: "*path/to/your/bacula-dir* -f -c /*path/to/bacula-dir.conf* -d 400" (400 is the maximal debug output, so expect quite a lot written to stdout) Best regards, Daniel On 09.01.17 14:53, webmas...@peter-speer.de wrote: Hi there. I am on CentOS 7 with Bacula 7.4.4 buld from source. I wonder, if there is a file where I can see why i.e. bacula-dir is not coming up i.e. if I have a mistake in my bacula-dir.conf. Where is bacula logging those messages? I am not able to see anything in /var/log/messages or /opt/bacula/log/*... Is there a way to set and/or increase log level? Does Bacula have a config file test parser like other apps have it? Thanks for your time. -fuz -- Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users -- Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Error with signature for bacula-7.4.4.tar.gz file in sourceforge
Hi Adolf, I can offer you the md5sum of the tar.gz file so you can compare it to yours using md5sum-command: -bash-4.1$ md5sum bacula-7.4.4.tar.gz *aed11c1eef1198ffc76c6fca55cea3ad* bacula-7.4.4.tar.gz Best regards, Daniel Am 26.11.2016 um 11:30 schrieb Adolf Belka: Hi All, Can anyone help on this. The bacula-7.4.4.tar.gz file still has a modification date after the signature file so still getting a bad signature result from it. I suspect the file is probably OK but the whole point of doing the signature check is to get confirmation that the file on the website hasn't been messed about with. Looking in the git repository then there was a modification made on 29th Sep 2016 to Tweak correct LSMDATE typo. Maybe this was done and the signature file not updated. If this question is going to the wrong mailing list please let me know. I couldn't find any other list that looked more correct as this doesn't seem to fit in the Bugs category. Adolf. On 21/11/16 13:07, Adolf Belka wrote: Hi, I downloaded the bacula-7.4.4,tar.gz and bacula-7.4.4.tar.gz.sig files from sourceforge but when I checked the signature out it came back as bad. All other files I have checked in the folder all came back good with the signature check. I noticed that the bacula-7.4.4.tar.gz had been modified on 2016-09-29 while all the other files including bacula-7.4.4.tar.gz.sig had modification dates of 2016-09-21. Would this date difference be causing the bad signature result. If yes, can someone update the signature file on sourceforge. If no, what could be wrong. Adolf Belka -- ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users -- ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Baculum on Solaris 11?
Hello Marcin, I figured it out. After looking at the error logfile of apache2, I noticed this line [Wed Oct 12 17:01:04 2016] [error] [client 10.1.10.22] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /opt/baculum/htdocs/framework/Web/Javascripts/JSMin.php on line 139 After that I set the execution time in php.ini to 5min (300seconds) and now the text boxes appear as they should. The rest of the configuration will be done tomorrow (european time) Best regards, Daniel Am 12.10.2016 um 17:41 schrieb Marcin Haba: > Hello Daniel, > > I have never experienced this type of problem with HTML fields. > > Could you tell me if you have some warnings or errors in web server > logs? You can also check errors on client side in web browser console > that is open usually by F12 button. > > Thanks in advance for response. > > Best regards. > Marcin Haba (gani) > > > On 12 October 2016 at 17:04, Daniel Heitepriem > <daniel.heitepr...@pribas.com> wrote: >> Hello Marcin, >> >> yes, you are right, it was a wrong link for the language file. >> >> For the text fields: I tried it with Firefox version 31 (on Solaris 11), >> version 48 (on Ubuntu 16.04) and Chromium version 51 (also on Ubuntu 16.04) >> and none of them displays the text fields. >> >> Best regards, >> Daniel >> >> Am 12.10.16 um 16:54 schrieb Marcin Haba: >>> Hello Daniel, >>> >>> No, you have already everything from PHP to run Baculum :-) Baculum >>> reports on white screen when some PHP dependencies are missing. >>> >>> Here you don't have language files and also HTML fields are not visible. >>> >>> To language files, you can look at ./protected/Lang/en/messages.mo >>> >>> On your side it can be dead symbolic link that you can update or you >>> can copy messages.mo directly to "./protected/Lang/en/". >>> >>> To the problem with text fields, I have no idea so far. Could you tell >>> me what web browser are you using? >>> >>> Best regards. >>> Marcin Haba (gani) >>> > > -- Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Baculum on Solaris 11?
Hello Marcin, yes, you are right, it was a wrong link for the language file. For the text fields: I tried it with Firefox version 31 (on Solaris 11), version 48 (on Ubuntu 16.04) and Chromium version 51 (also on Ubuntu 16.04) and none of them displays the text fields. Best regards, Daniel Am 12.10.16 um 16:54 schrieb Marcin Haba: > Hello Daniel, > > No, you have already everything from PHP to run Baculum :-) Baculum > reports on white screen when some PHP dependencies are missing. > > Here you don't have language files and also HTML fields are not visible. > > To language files, you can look at ./protected/Lang/en/messages.mo > > On your side it can be dead symbolic link that you can update or you > can copy messages.mo directly to "./protected/Lang/en/". > > To the problem with text fields, I have no idea so far. Could you tell > me what web browser are you using? > > Best regards. > Marcin Haba (gani) > -- Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Baculum on Solaris 11?
Hello Marcin, these are the extensions which are available in PHP 5.3.29 on Solaris: [PHP Modules] apc bcmath bz2 calendar Core ctype curl date dba dom ereg exif fileinfo filter ftp gd gettext hash iconv idn imap json ldap libxml mbstring mcrypt memcache mysql mysqli mysqlnd openssl pcntl pcre PDO pdo_mysql pdo_sqlite Phar posix Reflection session shmop SimpleXML snmp soap sockets SPL SQLite sqlite3 standard suhosin sysvmsg sysvsem sysvshm tcpwrap tidy tokenizer xdebug xml xmlreader xmlrpc xmlwriter xsl zip zlib [Zend Modules] Xdebug But something is still missing. When browsing to the URL with baculum and starting the wizard it seems that the variables are not interpreted (see below) which makes the wizard unusable https://abload.de/img/bildschirmfoto-121016ojjtl.png Best regards, Daniel Am 12.10.16 um 15:58 schrieb Marcin Haba: > Hello Daniel, > > Great work. Thanks for the link to the Makefile. > > About the lack of php extensions please note that some of extensions > can be not provided as shared modules but they can be compiled inside > PHP core (module for Apache and interpreter) so maybe no additional > work is needed. It depends on package maintainers how they prepare it. > You can check these integrated extensions in original Solaris packages > by: > > php -m > > or in full php info: > > php -i > > If you will have problem with identifying extensions, you can past > them here and I will check them. Baculum is also able to check them. > > Best regards. > Marcin > > On 12 October 2016 at 15:09, Daniel Heitepriem > <daniel.heitepr...@pribas.com> wrote: >> Hi Marcin, >> >> I modified the Makefile so it works on standard Solaris 11 >> http://pastebin.com/9YybsrxK (Please note that this link will expire in 7 >> days). Therefore I only adjusted some copy-commands, replaced "install", >> "find" and "sed" with their corresponding GNU programs which are installed >> by default in Solaris 11.3 >> >> The main problems so far are the missing php-extensions which can only be >> solved by recompiling php manually. That's the next step I'll be doing >> >> Best regards, >> Daniel >> >> Am 11.10.16 um 17:56 schrieb Marcin Haba: >> >> Hello Daniel, >> >> OK. Don't worry if you miss some Baculum dependencies because Baculum >> will inform you on web interface if something is required and not >> installed. >> >> I am curious this Baculum on Solaris. Please let know here how this >> installation is going. >> >> Good luck. >> >> Best regards. >> Marcin Haba (gani) >> >> On 11 October 2016 at 16:54, Daniel Heitepriem >> <daniel.heitepr...@pribas.com> wrote: >> >> Hello Marcin, >> >> thank you very much for your answer. I will try how far I get as standard >> Solaris 11.3 only has PHP 5.3.29 and also a lot extensions (like php-mysqlnd >> or php-bcmath) are missing in the official repositories >> >> Regards, >> Daniel >> >> Am 11.10.16 um 12:43 schrieb Marcin Haba: >> >> Hello Daniel, >> >> I have never used Baculum on Solaris nevertheless three things >> required to run Baculum are: web server, PHP and Bacula. If you have >> these three in your environment you should be able to run Baculum. >> >> The Makefile doesn't matter here. It only prepares/separates runtime >> files, nothing more. All this work can be done manually. >> >> Please note that minimal PHP version for Baculum is PHP 5.3.4 >> >> As web server I tested Apache, Lighttpd, Nginx. Baculum can work at >> all these web servers. >> >> Here are required PHP extensions: >> >> - php-bcmath >> - php-common >> - php-mbstring >> - php-pdo >> - php-mysqlnd or php-pgsql or php-sqlite3 >> - php-xml >> - php-json >> - php-curl >> - php-cgi (optional, for running as CGI) >> >> I don't know how to do packages for Solaris but if somebody is willing >> to prepare them I can help in whole Baculum matter with it. >> >> Thanks in advance for answer. >> >> Best regards. >> Marcin >> >> On 11 October 2016 at 10:25, Daniel Heitepriem >> <daniel.heitepr...@pribas.com> wrote: >> >> Hi guys, >> >> is it possible to get baculum running on Solaris 11? As far as I have >> seen >> it's mandatory to run 'make' which is (when analysing the Makefile) only >> possible for Debian or RPM-based Distros. >> >> Thanks and regards, >> Daniel Heitepriem >> >> >> ---
Re: [Bacula-users] Baculum on Solaris 11?
Hi Marcin, I modified the Makefile so it works on standard Solaris 11 http://pastebin.com/9YybsrxK (Please note that this link will expire in 7 days). Therefore I only adjusted some copy-commands, replaced "install", "find" and "sed" with their corresponding GNU programs which are installed by default in Solaris 11.3 The main problems so far are the missing php-extensions which can only be solved by recompiling php manually. That's the next step I'll be doing Best regards, Daniel Am 11.10.16 um 17:56 schrieb Marcin Haba: Hello Daniel, OK. Don't worry if you miss some Baculum dependencies because Baculum will inform you on web interface if something is required and not installed. I am curious this Baculum on Solaris. Please let know here how this installation is going. Good luck. Best regards. Marcin Haba (gani) On 11 October 2016 at 16:54, Daniel Heitepriem <daniel.heitepr...@pribas.com> wrote: Hello Marcin, thank you very much for your answer. I will try how far I get as standard Solaris 11.3 only has PHP 5.3.29 and also a lot extensions (like php-mysqlnd or php-bcmath) are missing in the official repositories Regards, Daniel Am 11.10.16 um 12:43 schrieb Marcin Haba: Hello Daniel, I have never used Baculum on Solaris nevertheless three things required to run Baculum are: web server, PHP and Bacula. If you have these three in your environment you should be able to run Baculum. The Makefile doesn't matter here. It only prepares/separates runtime files, nothing more. All this work can be done manually. Please note that minimal PHP version for Baculum is PHP 5.3.4 As web server I tested Apache, Lighttpd, Nginx. Baculum can work at all these web servers. Here are required PHP extensions: - php-bcmath - php-common - php-mbstring - php-pdo - php-mysqlnd or php-pgsql or php-sqlite3 - php-xml - php-json - php-curl - php-cgi (optional, for running as CGI) I don't know how to do packages for Solaris but if somebody is willing to prepare them I can help in whole Baculum matter with it. Thanks in advance for answer. Best regards. Marcin On 11 October 2016 at 10:25, Daniel Heitepriem <daniel.heitepr...@pribas.com> wrote: Hi guys, is it possible to get baculum running on Solaris 11? As far as I have seen it's mandatory to run 'make' which is (when analysing the Makefile) only possible for Debian or RPM-based Distros. Thanks and regards, Daniel Heitepriem -- Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users -- Mit freundlichen Gruessen / Best regards Daniel Heitepriem pribas GmbH Valterweg 24-25 65817 Eppstein-Bremthal Germany Phone +49 (0) 6198 57146400 Fax +49 (0) 6198 57146433 eMail daniel.heitepr...@pribas.com Corporate Headquarters: Huenfelden-Dauborn Managing Director: Arnulf Pribas Registration: Amtsgericht Limburg a. d. Lahn 7HRB874 Tax ID: DE113840457 This e-mail is confidential. Information in this e-mail is intended for the exclusive use of the individual or entity named above and may constitute information that is privileged or confidential or otherwise protected from disclosure. The information in this e-mail may be read, published, copied and/or forwarded only by the individual or entity named above. Dissemination, distribution, forwarding or copying of this e-mail by anyone other than the intended recipient is prohibited. If you have received this e-mail in error, please notify us immediately by telephone or e-mail and completely delete or destroy any and all disseminated, distributed, forwarded electronic or other copies of the original message and any attachments. -- Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Baculum on Solaris 11?
Hello Marcin, thank you very much for your answer. I will try how far I get as standard Solaris 11.3 only has PHP 5.3.29 and also a lot extensions (like php-mysqlnd or php-bcmath) are missing in the official repositories Regards, Daniel Am 11.10.16 um 12:43 schrieb Marcin Haba: > Hello Daniel, > > I have never used Baculum on Solaris nevertheless three things > required to run Baculum are: web server, PHP and Bacula. If you have > these three in your environment you should be able to run Baculum. > > The Makefile doesn't matter here. It only prepares/separates runtime > files, nothing more. All this work can be done manually. > > Please note that minimal PHP version for Baculum is PHP 5.3.4 > > As web server I tested Apache, Lighttpd, Nginx. Baculum can work at > all these web servers. > > Here are required PHP extensions: > > - php-bcmath > - php-common > - php-mbstring > - php-pdo > - php-mysqlnd or php-pgsql or php-sqlite3 > - php-xml > - php-json > - php-curl > - php-cgi (optional, for running as CGI) > > I don't know how to do packages for Solaris but if somebody is willing > to prepare them I can help in whole Baculum matter with it. > > Thanks in advance for answer. > > Best regards. > Marcin > > On 11 October 2016 at 10:25, Daniel Heitepriem > <daniel.heitepr...@pribas.com> wrote: >> Hi guys, >> >> is it possible to get baculum running on Solaris 11? As far as I have seen >> it's mandatory to run 'make' which is (when analysing the Makefile) only >> possible for Debian or RPM-based Distros. >> >> Thanks and regards, >> Daniel Heitepriem >> >> -- >> Check out the vibrant tech community on one of the world's most >> engaging tech sites, SlashDot.org! http://sdm.link/slashdot >> ___ >> Bacula-users mailing list >> Bacula-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/bacula-users >> > > -- Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Baculum on Solaris 11?
Hi guys, is it possible to get baculum running on Solaris 11? As far as I have seen it's mandatory to run 'make' which is (when analysing the Makefile) only possible for Debian or RPM-based Distros. Thanks and regards, Daniel Heitepriem -- Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] bconsole crontab
Hi Jan, do you get any error messages? What is inside your $INCRLOG file when executing the commands you wrote manually? When I try your second script everything is working fine: TEST="/tmp/test.log" ./bconsole <| MediaId | VolumeName | VolStatus | Enabled | VolBytes | VolFiles | VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten | +-+--+---+-++--+--+-+--+---+---+-+ | 1,216 | def.full.13041701| Full | 1 | 23,622,298,745 |5 | 31,536,000 | 1 |0 | 0 | File | 2015-05-09 18:24:05 | Best regards, Daniel Heitepriem Am 10.10.16 um 08:36 schrieb Jan Gazda: Hello All, I wanted to create a simple script to collect information about volumes with cron but whatever I do not files are being created if the script is executed by cron I tried various modifications but neither of them work. if [[ $(date +%u) -lt 5 ]]; then # if week day, log incr only echo ""$(date)"---" >> $INCRLOG echo "list volume pool=LTO5-Incr-Pool" | bconsole | grep $INCR >> $INCRLOG else # is weekend log, incr and full echo ""$(date)"---" >> $INCRLOG echo -e "list volume pool=LTO5-Incr-Pool" | bconsole | grep $INCR 2>&1 >> $INCRLOG fi I also tried a script with but it also does not work bconsole <http://www.sapienzaconsulting.com/>Jan Gazda ECLIPSE & Office IT Support Technician Sapienza Consulting Kapteynstraat 1 2201 BB Noordwijk Netherlands Tel: +31 (0) 71 407 6518 Fax: +31 (0) 71 407 6536 Mob: +31 682607099 Follow us on: Linkedin <http://www.linkedin.com/company/sapienza-consulting>Twitter <https://twitter.com/sapienzajobs>YouTube <https://www.youtube.com/channel/UCq2Pzj4-xGZYPtLQhPr7hzw> The contents of this e-mail and any attachment are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email and/or any attachment in error, please notify the sender immediately and then delete it. If you are not the intended recipient, you must not distribute, disclose, use, copy, print or rely on this e-mail. Communicating by email is not 100% secure, error or virus free. It is your responsibility to ensure that viruses do not adversely affect your system. If you communicate with us by e-mail you agree to take appropriate measures to minimise these risks when e-mailing us. We may monitor, record, store and use any email communication with you in order to check any instructions given to us, for training purposes, for crime prevention, to improve the quality of our customer service and to keep records of our business communications. Sapienza Consulting Limited is a limited company registered in England and Wales with its registered office at 61 Rodney Street, Liverpool, Merseyside, L1 9ER and registered number 2986023 -- Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users -- Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] 'Incorrect datetime value' after database update from 12 to 15
Hello everyone, I also found out that MySQL got stricter. As a workaround to get around error messages like ERROR 1067 (42000) at line 19: Invalid default value for 'SchedTime' I have to edit my dump of the old bacula database (version 12) to adjust every 0 timestamp to a valid date before importing it to my MySQL database. After that the update to version 15 should be working without any major issues. Am 03.10.16 um 23:23 schrieb Kern Sibbald: Gee, and I thought that Bacula is too overwhelming (complicated) with too many directives! :-) Thanks for the explanation. Kern On 10/03/2016 05:39 PM, Phil Stracchino wrote: On 10/03/16 10:52, Kern Sibbald wrote: On 10/03/2016 02:52 PM, Phil Stracchino wrote: On 10/03/16 05:19, Ralph Bolton wrote: Yeah, Oracle are making changes alright - not all of them are good :-( It's a relatively easy to fix, and actually, it's probably something that should be changed in the "make_mysql_tables" file supplied with Bacula (as it's backwards compatible with older MySQL and MariaDBs). The change is a search and replace for: DATETIME DEFAULT 0, ...to... DATETIME DEFAULT '-00-00 00:00:00', Hmm. It doesn't surprise me, but I have not run into the problem you mention below on any of the MySQL versions that are currently in the most popular distros. What MySQL version has that change? MySQL 5.6 started the stricter enforcement of fully compliant SQL DDL. However, whether it is enforced or not depends upon a number of MySQL settings, including SQL_MODE. In 5.5 and older MySQL releases, SQL_MODE is empty by default, and installations that have been updated in place will continue to have whatever SQL_MODE was set in the old configuration, if set. If not set by the configuration files, MySQL 5.6.6 and later default to NO_ENGINE_SUBSTITUTION. MySQL 5.7.5 added ONLY_FULL_GROUP_BY and STRICT_TRANS_TABLES to the default SQL_MODE; MySQL 5.7.7 added NO_AUTO_CREATE_USER; MySQL 5.7.8 added ERROR_FOR_DIVISION_BY_ZERO, NO_ZERO_DATE, and NO_ZERO_IN_DATE. So a clean new install of a current MySQL 5.6 release (or an updated one with no explicitly set SQL_MODE) will use SQL_MODE = NO_ENGINE_SUBSTITUTION, while a current MySQL 5.7 clean installation (or, again, an updated one with no explicitly set SQL_MODE) will use NO_ENGINE_SUBSTITUTION, NO_AUTO_CREATE_USER, ONLY_FULL_GROUP_BY, STRICT_TRANS_TABLES, NO_ZERO_IN_DATE, NO_ZERO_DATE, ERROR_FOR_DIVISION_BY_ZERO. ONLY_FULL_GROUP_BY is not part of the default SQL mode prior to 5.7.5 because versions prior to 5.7.5 do not detect functional dependency, which is required to properly implement it. It's not really relevant here and causes no issues with Bacula. NO_ZERO_DATE controls whether '-00-00' is considered a valid date. NO_ZERO_IN_DATE controls whether a DATETIME value is considered valid if the YEAR is specified but either MONTH or DAY is zero. (For example, 2016-00-01 or 2016-01-00 are invalid with NO_ZERO_IN_DATE.) Both of these and ERROR_FOR_DIVISION_BY_ZERO are oddly inconsistent in their pattern of support. All three were deprecated in 5.7.4, then supported in 5.7.5 through 5.7.7 but did nothing, supported in 5.7.8 and up but only do anything in combination with STRICT, and are scheduled to be deprecated again and removed in some future version when their functionality is fully rolled into STRICT. I'm currently using: NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION,STRICT_ALL_TABLES but NO_AUTO_CREATE USER is also scheduled for future removal (and will then be on all the time). -- Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users -- Mit freundlichen Gruessen / Best regards Daniel Heitepriem pribas GmbH Valterweg 24-25 65817 Eppstein-Bremthal Germany Phone +49 (0) 6198 57146400 Fax +49 (0) 6198 57146433 eMail daniel.heitepr...@pribas.com Corporate Headquarters: Huenfelden-Dauborn Managing Director: Arnulf Pribas Registration: Amtsgericht Limburg a. d. Lahn 7HRB874 Tax ID: DE113840457 This e-mail is confidential. Information in this e-mail is intended for the exclusive use of the individual or entity named above and may constitute information that is privileged or confidential or otherwise protected from disclosure. The information in this e-mail may be read, published, copied and/or forwarded only by the individual or entity named above. Dissemination, distribution, forwarding or copying of this e-mail by anyone other than the intended recipient is prohibited. If you have received this e-mail in error, please notify us immediately by telephone or e-mail and completely delete or destroy a
Re: [Bacula-users] 'Incorrect datetime value' after database update from 12 to 15
Im not a MySQL crack but "EXPLAIN Job;" results in [...] Field | Type| Null |Key| Default| Extra | SchedTime | datetime| YES | | -00-00 00:00:00 || StartTime | datetime| YES | | -00-00 00:00:00 || EndTime | datetime| YES | | -00-00 00:00:00 || RealEndTime | datetime| YES | | -00-00 00:00:00 || [...] and also an querying an entry of the old data results in displaying correct values: JobId | Job | Name | SchedTime | StartTime| EndTime 179281 | server1.db.2016-09-12_19.30.17_10 | server1.db | 2016-09-12 19:30:17 | 2016-09-13 12:58:15 | 2016-09-13 12:58:16 It would be really interesting how Bacula 7 is handling this timestamp thing when generating the SQL-command Am 30.09.16 um 10:49 schrieb Andreas Nastke: > looks to me as if this toy (mysql) finally handles invalid > timestamps as erroneous. > > > > Daniel Heitepriem schrieb: >> Hi guys, >> >> any thoughts on this ? >> >> Thanks and regards, >> Daniel Heitepriem >> >> Am 20.09.16 um 12:01 schrieb Daniel Heitepriem: >> >>Hello everyone, >> >>I updated my old bacula database from version 12 (Bacula version >> 5.0.0) >>to version 15 (Bacula version 7.4.2) which went more or less without >>errors (see below): >> >>bacula@...:~/etc$ ./update_mysql_tables -u bacula -p >> >>This script will update a Bacula MySQL database from version 12-14 >> to 15 >> >>Depending on the current version of your catalog, >>you may have to run this script multiple times. >> >>Enter password: >>Enter password: >>ERROR 1067 (42000) at line 19: Invalid default value for 'SchedTime' >>Update of Bacula MySQL tables from 12 to 13 succeeded. >>Enter password: >>Enter password: >> >>Update of Bacula MySQL tables from 13 to 14 succeeded. >>Enter password: >>Enter password: >>ERROR 1067 (42000) at line 5: Invalid default value for >> 'FirstWritten' >>ERROR 1067 (42000) at line 6: Invalid default value for >> 'FirstWritten' >>ERROR 1067 (42000) at line 7: Invalid default value for >> 'FirstWritten' >>ERROR 1067 (42000) at line 8: Invalid default value for >> 'FirstWritten' >>ERROR 1067 (42000) at line 9: Invalid default value for >> 'FirstWritten' >>ERROR 1067 (42000) at line 29: Invalid default value for 'SchedTime' >>Update of Bacula MySQL tables from 14 to 15 succeeded. >>Enter password: >>bacula@...:~/etc$ >> >>After that I tried to restore a file which gave me this error in >> bconsole: >>20-Sep 13:13 backup-host-dir JobId 0: Fatal error: sql_create.c:86 >>Create DB Job record INSERT INTO Job >> (Job,Name,Type,Level,JobStatus,SchedTime,JobTDate,ClientId,Comment) >>VALUES >> ('RestoreFiles.2016-09-20_13.13.49_03','RestoreFiles','R','F','C','2016-09-20 >> >> >>13:13:43',1474370023,128,'') failed. ERR=Incorrect datetime value: >>'-00-00 00:00:00' for column 'StartTime' at row 1 >> >>How can I fix this? >>Thanks you very much. >> >> >> >> >> >> -- >> >> >> >> >> >> >> ___ >> Bacula-users mailing list >> Bacula-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/bacula-users -- ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] 'Incorrect datetime value' after database update from 12 to 15
Hi guys, any thoughts on this ? Thanks and regards, Daniel Heitepriem Am 20.09.16 um 12:01 schrieb Daniel Heitepriem: Hello everyone, I updated my old bacula database from version 12 (Bacula version 5.0.0) to version 15 (Bacula version 7.4.2) which went more or less without errors (see below): bacula@...:~/etc$ ./update_mysql_tables -u bacula -p This script will update a Bacula MySQL database from version 12-14 to 15 Depending on the current version of your catalog, you may have to run this script multiple times. Enter password: Enter password: ERROR 1067 (42000) at line 19: Invalid default value for 'SchedTime' Update of Bacula MySQL tables from 12 to 13 succeeded. Enter password: Enter password: Update of Bacula MySQL tables from 13 to 14 succeeded. Enter password: Enter password: ERROR 1067 (42000) at line 5: Invalid default value for 'FirstWritten' ERROR 1067 (42000) at line 6: Invalid default value for 'FirstWritten' ERROR 1067 (42000) at line 7: Invalid default value for 'FirstWritten' ERROR 1067 (42000) at line 8: Invalid default value for 'FirstWritten' ERROR 1067 (42000) at line 9: Invalid default value for 'FirstWritten' ERROR 1067 (42000) at line 29: Invalid default value for 'SchedTime' Update of Bacula MySQL tables from 14 to 15 succeeded. Enter password: bacula@...:~/etc$ After that I tried to restore a file which gave me this error in bconsole: 20-Sep 13:13 backup-host-dir JobId 0: Fatal error: sql_create.c:86 Create DB Job record INSERT INTO Job (Job,Name,Type,Level,JobStatus,SchedTime,JobTDate,ClientId,Comment) VALUES ('RestoreFiles.2016-09-20_13.13.49_03','RestoreFiles','R','F','C','2016-09-20 13:13:43',1474370023,128,'') failed. ERR=Incorrect datetime value: '-00-00 00:00:00' for column 'StartTime' at row 1 How can I fix this? Thanks you very much. -- ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Problem with bacula bacup in windows 2008
Hello Raido, regarding the error "D:/Backup/SOLDB01/[...]/5db01f72-2705-11e1-a5d5-806e6f6e6963.vhd. ERR=The system cannot find the file specified.": Did you ensure that the file actually exists when bacula wants to do the backup? Regarding "Could not stat "D:/Backup/TLNPC01": ERR=Access is denied.": Do your bacula user has access rights to these directories? Can he read the files which are stored inside them? I'm absolutely no Windows guy (*NIX is suited better for me) but maybe this are some hints to the right direction Best regards, Daniel Heitepriem Am 28.09.16 um 12:08 schrieb Raido Rinaldi: Hello all, I have a problem running backup from windows server 2008, using bacula-win32-5.2.10. I get following error messages: 28-Sep 01:13 bersrvbacula-dir JobId 119: Start Backup JobId 119, Job=Backup_DC01_Data.2016-09-27_23.05.00_08 28-Sep 01:13 bersrvbacula-dir JobId 119: Using Device "Dev_BERSRVPROX1_odd" 28-Sep 01:13 bersrvprox1-sd JobId 119: Volume "DC010238" previously written, moving to end of data. 28-Sep 01:13 bersrvprox1-sd JobId 119: Warning: For Volume "DC010238": The sizes do not match! Volume=1002903603 Catalog=36051 Correcting Catalog 28-Sep 01:14 dc01-fd JobId 119: Generate VSS snapshots. Driver="Win64 VSS", Drive(s)="D" 28-Sep 02:46 bersrvprox1-sd JobId 119: User defined maximum volume capacity 10,737,418,240 exceeded on device "Dev_BERSRVPROX1_odd" (/mnt/bacula/oddmonth). 28-Sep 02:46 bersrvprox1-sd JobId 119: End of medium on Volume "DC010238" Bytes=10,737,376,267 Blocks=166,394 at 28-Sep-2016 02:46. 28-Sep 02:46 bersrvbacula-dir JobId 119: Created new Volume "DC010257" in catalog. 28-Sep 02:46 bersrvprox1-sd JobId 119: Labeled new Volume "DC010257" on device "Dev_BERSRVPROX1_odd" (/mnt/bacula/oddmonth). 28-Sep 02:46 bersrvprox1-sd JobId 119: Wrote label to prelabeled Volume "DC010257" on device "Dev_BERSRVPROX1_odd" (/mnt/bacula/oddmonth) 28-Sep 02:46 bersrvprox1-sd JobId 119: New volume "DC010257" mounted on device "Dev_BERSRVPROX1_odd" (/mnt/bacula/oddmonth) at 28-Sep-2016 02:46. 28-Sep 03:39 bersrvprox1-sd JobId 119: User defined maximum volume capacity 10,737,418,240 exceeded on device "Dev_BERSRVPROX1_odd" (/mnt/bacula/oddmonth). 28-Sep 03:39 bersrvprox1-sd JobId 119: End of medium on Volume "DC010257" Bytes=10,737,376,994 Blocks=166,440 at 28-Sep-2016 03:39. 28-Sep 03:39 bersrvbacula-dir JobId 119: Created new Volume "DC010258" in catalog. 28-Sep 03:39 bersrvprox1-sd JobId 119: Labeled new Volume "DC010258" on device "Dev_BERSRVPROX1_odd" (/mnt/bacula/oddmonth). 28-Sep 03:39 bersrvprox1-sd JobId 119: Wrote label to prelabeled Volume "DC010258" on device "Dev_BERSRVPROX1_odd" (/mnt/bacula/oddmonth) 28-Sep 03:39 bersrvprox1-sd JobId 119: New volume "DC010258" mounted on device "Dev_BERSRVPROX1_odd" (/mnt/bacula/oddmonth) at 28-Sep-2016 03:39. 28-Sep 04:16 bersrvprox1-sd JobId 119: User defined maximum volume capacity 10,737,418,240 exceeded on device "Dev_BERSRVPROX1_odd" (/mnt/bacula/oddmonth). 28-Sep 04:16 bersrvprox1-sd JobId 119: End of medium on Volume "DC010258" Bytes=10,737,377,191 Blocks=166,440 at 28-Sep-2016 04:16. 28-Sep 04:16 bersrvbacula-dir JobId 119: Created new Volume "DC010259" in catalog. 28-Sep 04:16 bersrvprox1-sd JobId 119: Labeled new Volume "DC010259" on device "Dev_BERSRVPROX1_odd" (/mnt/bacula/oddmonth). 28-Sep 04:16 bersrvprox1-sd JobId 119: Wrote label to prelabeled Volume "DC010259" on device "Dev_BERSRVPROX1_odd" (/mnt/bacula/oddmonth) 28-Sep 04:16 bersrvprox1-sd JobId 119: New volume "DC010259" mounted on device "Dev_BERSRVPROX1_odd" (/mnt/bacula/oddmonth) at 28-Sep-2016 04:16. 28-Sep 04:22 dc01-fd JobId 119: Error: Read error on file D:/Backup/SOLDB01/WindowsImageBackup/SOLDB01/Backup 2016-09-26 230006/5db01f72-2705-11e1-a5d5-806e6f6e6963.vhd. ERR=The system cannot find the file specified. 28-Sep 04:22 dc01-fd JobId 119: Could not stat "D:/Backup/SOLDB01/WindowsImageBackup/SOLDB01/Backup 2016-09-26 230006/8568c9e0-270a-11e1-b5b7-00155d0a0a00.vhd": ERR=The system cannot find the file specified. 28-Sep 04:22 dc01-fd JobId 119: Could not open directory "D:/Backup/SOLDB01/WindowsImageBackup/SOLDB01/Catalog": ERR=The system cannot find the file specified. 28-Sep 04:22 dc01-fd JobId 119: Could not stat "D:/Backup/SOLDB01/WindowsImageBackup/SOLDB01/MediaId": ERR=The system cannot find the file specified. 28-Sep 04:22 dc01-fd JobId 119: Could not stat "D:/Backup/SQLServer": ERR=Access is denied. 28-Sep 04:22 dc01-fd JobId 119: Could not s
Re: [Bacula-users] bacula 5.2.6 help
Maybe your missing some libraries. # ldd *path to bconsole* shows you all libraries which are referenced by bconsole. In case of Solaris 11 these are: -bash-4.1$ ldd /opt/bacula/bin/bconsole libncurses.so.5 => /usr/lib/64/libncurses.so.5 libbaccfg-7.4.0.so => /opt/bacula/lib/libbaccfg-7.4.0.so libbac-7.4.0.so => /opt/bacula/lib/libbac-7.4.0.so libz.so.1 => /lib/64/libz.so.1 libpthread.so.1 => /lib/64/libpthread.so.1 libnsl.so.1 => /lib/64/libnsl.so.1 libsocket.so.1 =>/lib/64/libsocket.so.1 libxnet.so.1 => /lib/64/libxnet.so.1 libintl.so.1 => /lib/64/libintl.so.1 libresolv.so.2 =>/lib/64/libresolv.so.2 librt.so.1 =>/lib/64/librt.so.1 libssl.so.1.0.0 => /lib/64/libssl.so.1.0.0 libcrypto.so.1.0.0 =>/lib/64/libcrypto.so.1.0.0 libstdc++.so.6 =>/usr/lib/64/libstdc++.so.6 libm.so.2 => /lib/64/libm.so.2 libgcc_s.so.1 => /usr/lib/64/libgcc_s.so.1 libc.so.1 => /lib/64/libc.so.1 libmp.so.2 =>/lib/64/libmp.so.2 libucrypto.so.1 => /lib/64/libucrypto.so.1 libelf.so.1 => /lib/64/libelf.so.1 libcryptoutil.so.1 =>/lib/64/libcryptoutil.so.1 It's just a guess but maybe it can lead you in the right direction Am 27.09.2016 um 21:36 schrieb Will Safarik: Even after checking all the names/passwords are correct it still won’t launch Any other thoughts? *From:*Daniel Heitepriem [mailto:daniel.heitepr...@pribas.com] *Sent:* Tuesday, September 27, 2016 3:32 AM *To:* Will Safarik <wsafa...@teamworld.com> *Cc:* bacula-users@lists.sourceforge.net *Subject:* Re: [Bacula-users] bacula 5.2.6 help Hi Will, did you check that your bconsole.conf file has the correct values in it? Director { Name = *Name of your bacula director* DIRport = 9101 address = *Hostname of your bacula director* Password = "*Password to connect to your director*" } Best regards, Daniel Heitepriem Am 26.09.16 um 21:38 schrieb Will Safarik: Hello, I have been trying to find online how to fix bconsole. I type in #bconsole, it says connecting xxx.xxx.xxx.xxx to bconsole and then it just gives me the prompt# again and not open bconsole to see why my jobs are not running. Any help will be great, thanks! *-Will* -- ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net <mailto:Bacula-users@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/bacula-users -- ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] bacula 5.2.6 help
Hi Will, did you check that your bconsole.conf file has the correct values in it? Director { Name = *Name of your bacula director* DIRport = 9101 address = *Hostname of your bacula director* Password = "*Password to connect to your director*" } Best regards, Daniel Heitepriem Am 26.09.16 um 21:38 schrieb Will Safarik: Hello, I have been trying to find online how to fix bconsole. I type in #bconsole, it says connecting xxx.xxx.xxx.xxx to bconsole and then it just gives me the prompt# again and not open bconsole to see why my jobs are not running. Any help will be great, thanks! *-Will* -- ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users -- ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] 'Incorrect datetime value' after database update from 12 to 15
Hello everyone, I updated my old bacula database from version 12 (Bacula version 5.0.0) to version 15 (Bacula version 7.4.2) which went more or less without errors (see below): bacula@backup-host:~/etc$ ./update_mysql_tables -u bacula -p This script will update a Bacula MySQL database from version 12-14 to 15 Depending on the current version of your catalog, you may have to run this script multiple times. Enter password: Enter password: ERROR 1067 (42000) at line 19: Invalid default value for 'SchedTime' Update of Bacula MySQL tables from 12 to 13 succeeded. Enter password: Enter password: Update of Bacula MySQL tables from 13 to 14 succeeded. Enter password: Enter password: ERROR 1067 (42000) at line 5: Invalid default value for 'FirstWritten' ERROR 1067 (42000) at line 6: Invalid default value for 'FirstWritten' ERROR 1067 (42000) at line 7: Invalid default value for 'FirstWritten' ERROR 1067 (42000) at line 8: Invalid default value for 'FirstWritten' ERROR 1067 (42000) at line 9: Invalid default value for 'FirstWritten' ERROR 1067 (42000) at line 29: Invalid default value for 'SchedTime' Update of Bacula MySQL tables from 14 to 15 succeeded. Enter password: bacula@backup-host:~/etc$ After that I tried to restore a file which gave me this error in bconsole: 20-Sep 13:13 backup-host-dir JobId 0: Fatal error: sql_create.c:86 Create DB Job record INSERT INTO Job (Job,Name,Type,Level,JobStatus,SchedTime,JobTDate,ClientId,Comment) VALUES ('RestoreFiles.2016-09-20_13.13.49_03','RestoreFiles','R','F','C','2016-09-20 13:13:43',1474370023,128,'') failed. ERR=Incorrect datetime value: '-00-00 00:00:00' for column 'StartTime' at row 1 How can I fix this? Thanks you very much. -- Mit freundlichen Gruessen / Best regards Daniel Heitepriem pribas GmbH Valterweg 24-25 65817 Eppstein-Bremthal Germany Phone +49 (0) 6198 57146400 Fax +49 (0) 6198 57146433 eMail daniel.heitepr...@pribas.com Corporate Headquarters: Huenfelden-Dauborn Managing Director: Arnulf Pribas Registration: Amtsgericht Limburg a. d. Lahn 7HRB874 Tax ID: DE113840457 This e-mail is confidential. Information in this e-mail is intended for the exclusive use of the individual or entity named above and may constitute information that is privileged or confidential or otherwise protected from disclosure. The information in this e-mail may be read, published, copied and/or forwarded only by the individual or entity named above. Dissemination, distribution, forwarding or copying of this e-mail by anyone other than the intended recipient is prohibited. If you have received this e-mail in error, please notify us immediately by telephone or e-mail and completely delete or destroy any and all disseminated, distributed, forwarded electronic or other copies of the original message and any attachments. -- ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users