View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001479 | bareos-core | installer / packages | public | 2022-08-23 08:59 | 2022-08-29 11:18 |
Reporter | Int | Assigned To | bruno-at-bareos | ||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | unable to reproduce | ||
Platform | 64bit | OS | FreeBSD | OS Version | 13.0 |
Product Version | 21.1.4 | ||||
Summary | 0001479: Installation on FreeBSD 13 fails because Bareos repo uses an obsolete package format | ||||
Description | The installation on a current FreeBSD 13.0 fails because the Bareos repo http://download.bareos.org/bareos/release/21/FreeBSD_13.0/ uses an outdated package format. The repository seems not be updated to the new packagesite.pkg format yet. It still uses packagesite.txz 2021-12-21 16:03 2.9K FreeBSD but should be providing a "packagesite.pkg" instead. Because of the missing "packagesite.pkg" the "pkg" command fails with error: Updating Bareos repository catalogue... WARNING: Meta v1 support will be removed in the next version pkg: https://download.bareos.org/bareos/release/21/FreeBSD_13.0/packagesite.pkg: Not Found | ||||
Tags | No tags attached. | ||||
Thanks for warning about the obsolete format. As we build and install FreeBSD packages on each PR we know it is still working. Under bash for example REPOSITORY=download.bareos.org RELEASE=release/21 DIST=FreeBSD_13.0 URL=https://${REPOSITORY}/bareos/$RELEASE/$DIST wget -O /etc/pkg/bareos.conf $URL/bareos.conf pkg install --yes bareos.com-filedaemon bareos.com-director bareos.com-storage bareos.com-bconsole bareos.com-database-postgresql bareos.com-database-tools ``` [root@FreeBSD130 ~]# wget -O /etc/pkg/bareos.conf $URL/bareos.conf --2022-08-23 11:42:42-- https://download.bareos.org/bareos/release/21/FreeBSD_13.0/bareos.conf Resolving download.bareos.org (download.bareos.org)... 185.170.114.121, 2a03:4000:15:27f::1 Connecting to download.bareos.org (download.bareos.org)|185.170.114.121|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 148 [text/plain] Saving to: ‘/etc/pkg/bareos.conf’ /etc/pkg/bareos.conf 100%[============================================================================================================================================>] 148 --.-KB/s in 0s 2022-08-23 11:42:42 (17.9 MB/s) - ‘/etc/pkg/bareos.conf’ saved [148/148] [root@FreeBSD130 ~]# cat /etc/pkg/bareos.conf Bareos: { url: "pkg+https://download.bareos.org/bareos/release/21/FreeBSD_13.0", mirror_type: "srv", signature_type: "none", enabled: yes } [root@FreeBSD130 ~]# pkg update Updating FreeBSD repository catalogue... FreeBSD repository is up to date. Updating Bareos repository catalogue... Fetching meta.txz: 100% 1 KiB 1.0kB/s 00:01 WARNING: Meta v1 support will be removed in the next version pkg: https://download.bareos.org/bareos/release/21/FreeBSD_13.0/packagesite.pkg: Not Found Fetching packagesite.txz: 100% 3 KiB 3.0kB/s 00:01 WARNING: Meta v1 support will be removed in the next version Processing entries: 100% Bareos repository update completed. 12 packages processed. All repositories are up to date. [root@FreeBSD130 ~]# pkg install --yes bareos.com-filedaemon bareos.com-director bareos.com-storage bareos.com-bconsole bareos.com-database-postgresql bareos.com-database-tools Updating FreeBSD repository catalogue... FreeBSD repository is up to date. Updating Bareos repository catalogue... WARNING: Meta v1 support will be removed in the next version pkg: https://download.bareos.org/bareos/release/21/FreeBSD_13.0/packagesite.pkg: Not Found Bareos repository is up to date. All repositories are up to date. WARNING: Meta v1 support will be removed in the next version The following 8 package(s) will be affected (of 0 checked): New packages to be INSTALLED: bareos.com-bconsole: 21.0.0 [Bareos] bareos.com-common: 21.0.0 [Bareos] bareos.com-database-common: 21.0.0 [Bareos] bareos.com-database-postgresql: 21.0.0 [Bareos] bareos.com-database-tools: 21.0.0 [Bareos] bareos.com-director: 21.0.0 [Bareos] bareos.com-filedaemon: 21.0.0 [Bareos] bareos.com-storage: 21.0.0 [Bareos] Number of packages to be installed: 8 The process will require 4 MiB more space. 1 MiB to be downloaded. [1/8] Fetching bareos.com-database-tools-21.0.0.txz: 100% 85 KiB 87.1kB/s 00:01 [2/8] Fetching bareos.com-bconsole-21.0.0.txz: 100% 27 KiB 28.0kB/s 00:01 [3/8] Fetching bareos.com-common-21.0.0.txz: 100% 639 KiB 654.2kB/s 00:01 [4/8] Fetching bareos.com-database-common-21.0.0.txz: 100% 62 KiB 63.5kB/s 00:01 [5/8] Fetching bareos.com-storage-21.0.0.txz: 100% 69 KiB 70.2kB/s 00:01 [6/8] Fetching bareos.com-database-postgresql-21.0.0.txz: 100% 28 KiB 28.6kB/s 00:01 [7/8] Fetching bareos.com-filedaemon-21.0.0.txz: 100% 88 KiB 90.4kB/s 00:01 [8/8] Fetching bareos.com-director-21.0.0.txz: 100% 328 KiB 336.1kB/s 00:01 Checking integrity... done (0 conflicting) [1/8] Installing bareos.com-common-21.0.0... ===> Creating groups. Creating group 'bareos' with gid '997'. ===> Creating users Creating user 'bareos' with uid '997'. ===> Creating homedir(s) [1/8] Extracting bareos.com-common-21.0.0: 100% [2/8] Installing bareos.com-database-common-21.0.0... [2/8] Extracting bareos.com-database-common-21.0.0: 100% [3/8] Installing bareos.com-database-tools-21.0.0... [3/8] Extracting bareos.com-database-tools-21.0.0: 100% [4/8] Installing bareos.com-bconsole-21.0.0... [4/8] Extracting bareos.com-bconsole-21.0.0: 100% [5/8] Installing bareos.com-storage-21.0.0... [5/8] Extracting bareos.com-storage-21.0.0: 100% bareos.com-storage-21.0.0: initializing bareos configuration, logs to /tmp/bareos-setup.log [6/8] Installing bareos.com-database-postgresql-21.0.0... [6/8] Extracting bareos.com-database-postgresql-21.0.0: 100% [7/8] Installing bareos.com-filedaemon-21.0.0... [7/8] Extracting bareos.com-filedaemon-21.0.0: 100% bareos.com-filedaemon-21.0.0: initializing bareos configuration, logs to /tmp/bareos-setup.log [8/8] Installing bareos.com-director-21.0.0... [8/8] Extracting bareos.com-director-21.0.0: 100% pkg: Failed to execute lua script: [string "-- args: "etc/bareos/bareos-dir.d/fileset/Win..."]:3: ')' expected near 'etc' pkg: lua script failed bareos.com-director-21.0.0: initializing bareos configuration, logs to /tmp/bareos-setup.log ===== Message from bareos.com-storage-21.0.0: -- Thank you for installing the Bareos storage daemon! enable the service by running the following commands: 'sysrc bareossd_enable=YES' to start the service please run: 'service bareos-sd start' ===== Message from bareos.com-filedaemon-21.0.0: -- Thank you for installing the Bareos file daemon! enable the service by running the following commands: 'sysrc bareosfd_enable=YES' to start the service please run: 'service bareos-fd start' ===== Message from bareos.com-director-21.0.0: -- Thank you for installing the Bareos director! please run the following commands to setup the bareos databases: su postgres -c /usr/lib/bareos/scripts/create_bareos_database su postgres -c /usr/lib/bareos/scripts/make_bareos_tables su postgres -c /usr/lib/bareos/scripts/grant_bareos_privileges enable the service by running the following commands: 'sysrc bareosdir_enable=YES' to start the service, please run: 'service bareos-dir start' ``` |
|
Can you give us more details about your installation, to try to understand why its failing. We are unable to reproduce it as show above | |
Hi, I am running a Bareos storage daemon in a FreeBSD jail on TrueNAS Core 13.0-U1.1 The FreeBSD jail was created on a previous installation on TrueNAS Core 12 and had FreeBSD 12.0-RELEASE-p13 as base OS and Bareos 19.2.7 storage daemon installed. This Jail was exported from the TrueNAS Core 12 installation and then imported into TrueNAS Core 13.0-U1.1 The import went flawlessly and the Bareos 19.2.7 storage daemon worked right away. After the transition from TrueNAS Core 12 to TrueNAS Core 13.0-U1.1 was done I started to upgrade my whole Bareos infrastructure from 19.2.7 to 21.0.0 First step on TrueNAS was to upgrade the base OS in the jail to 13.0-RELEASE-p12: iocage upgrade bareos -r 13.0-RELEASE which worked fine. Next I upgraded all packages in the jail with "pkg update && pkg upgrade". After that I switched the Bareos repo to version 21: cd /usr/local/etc/pkg/repos rm bareos.conf wget -q http://download.bareos.org/bareos/release/21/FreeBSD_13.0/bareos.conf Next step was to upgrade the bareos packages with pkg update pkg upgrade but I with this step I got the error described above and the packages were not updated by the pkg command. As a workaround I downloaded and installed the packages manually. The installed "pkg" version is 1.18.3 |
|
our testing is also using latest available pkg which is version 1.18.3, so you should obtain the exact same warning message as us, but the installation will work. I'm closing because we are not able to reproduce the error in a easy to setup installation pure FreeBSD host. We can't spend more free time on this, sorry. Maybe you encounter an issue due to the way you use the jail and TrueNAS. |
|
We can't reproduce an installation error. pkg warning obsoleted v1 metatag has been registered internal in task 5224 as nice to have for 22. |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2022-08-23 08:59 | Int | New Issue | |
2022-08-23 11:45 | bruno-at-bareos | Note Added: 0004728 | |
2022-08-29 09:28 | bruno-at-bareos | Note Added: 0004733 | |
2022-08-29 10:13 | Int | Note Added: 0004734 | |
2022-08-29 11:17 | bruno-at-bareos | Note Added: 0004735 | |
2022-08-29 11:18 | bruno-at-bareos | Assigned To | => bruno-at-bareos |
2022-08-29 11:18 | bruno-at-bareos | Status | new => closed |
2022-08-29 11:18 | bruno-at-bareos | Resolution | open => unable to reproduce |
2022-08-29 11:18 | bruno-at-bareos | Note Added: 0004736 |