View Issue Details

IDProjectCategoryView StatusLast Update
0001609bareos-coreinstaller / packagespublic2024-03-13 15:16
ReporterInt Assigned Tobruno-at-bareos  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionunable to reproduce 
Platformx64OSFreeBSDOS Version13.2
Product Version23.0.1 
Summary0001609: package repository for FreeBSD does not work with newer version of pkg
Descriptionthe currently used configuration of the FreeBSD package repository

Bareos: {
  url: "https://download.bareos.org/current/FreeBSD_13.2",
  mirror_type: "none",
  signature_type: "none",
  enabled: yes
}

does not work with newer versions of pkg. It fails with error:

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: An error occured while fetching package
pkg: An error occured while fetching package
repository Bareos has no meta file, using default settings
pkg: An error occured while fetching package
pkg: An error occured while fetching package
Unable to update repository Bareos
Error updating repositories!

This issue is discussed here:
https://forums.freebsd.org/threads/problem-updating-packages.89687/

It seems that mirror_type: "none" cannot be used with HTTPS anymore.
But changing the URL to http does not fix the issue because the Bareos Server does automatically redirect from HTTP to HTTPS.
With URL "http://download.bareos.org/current/FreeBSD_13.2"
the fetching of the package info works but download of the actual packages still fails:

Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
Updating Bareos repository catalogue...
Bareos repository is up to date.
All repositories are up to date.
The following 4 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
        bareos.com-common: 23.0.2.p92.c3.d06.f1 [Bareos]
        bareos.com-filedaemon: 23.0.2.p92.c3.d06.f1 [Bareos]
        bareos.com-storage: 23.0.2.p92.c3.d06.f1 [Bareos]
        bareos.com-storage-tape: 23.0.2.p92.c3.d06.f1 [Bareos]

Number of packages to be installed: 4

The process will require 5 MiB more space.
1 MiB to be downloaded.

Proceed with this action? [y/N]: y
pkg: An error occured while fetching package



TagsNo tags attached.

Activities

bruno-at-bareos

bruno-at-bareos

2024-03-13 15:16

manager   ~0005835

Work as expected
curl -o add_bareos_repositories.sh -Lv https://download.bareos.org/current/FreeBSD_13.2/add_bareos_repositories.sh
pkg install bareos.com-director bareos.com-storage bareos.com-filedaemon
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
Updating Bareos repository catalogue...
Bareos repository is up to date.
All repositories are up to date.
The following 6 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
        bareos.com-common: 23.0.3.p30.a5.e032.d9 [Bareos]
        bareos.com-database-common: 23.0.3.p30.a5.e032.d9 [Bareos]
        bareos.com-database-tools: 23.0.3.p30.a5.e032.d9 [Bareos]
        bareos.com-director: 23.0.3.p30.a5.e032.d9 [Bareos]
        bareos.com-filedaemon: 23.0.3.p30.a5.e032.d9 [Bareos]
        bareos.com-storage: 23.0.3.p30.a5.e032.d9 [Bareos]

Number of packages to be installed: 6

The process will require 7 MiB more space.
2 MiB to be downloaded.

Proceed with this action? [y/N]: y
[1/6] Fetching bareos.com-database-tools-23.0.3.p30.a5.e032.d9.pkg: 100% 200 KiB 204.4kB/s 00:01
[2/6] Fetching bareos.com-common-23.0.3.p30.a5.e032.d9.pkg: 100% 891 KiB 912.8kB/s 00:01
[3/6] Fetching bareos.com-database-common-23.0.3.p30.a5.e032.d9.pkg: 100% 78 KiB 80.1kB/s 00:01
[4/6] Fetching bareos.com-storage-23.0.3.p30.a5.e032.d9.pkg: 100% 169 KiB 173.4kB/s 00:01
[5/6] Fetching bareos.com-filedaemon-23.0.3.p30.a5.e032.d9.pkg: 100% 188 KiB 192.8kB/s 00:01
[6/6] Fetching bareos.com-director-23.0.3.p30.a5.e032.d9.pkg: 100% 442 KiB 452.8kB/s 00:01
Checking integrity... done (0 conflicting)
[1/6] Installing bareos.com-common-23.0.3.p30.a5.e032.d9...
===> Creating groups.
Using existing group 'bareos'.
===> Creating users
Using existing user 'bareos'.
===> Creating homedir(s)
[1/6] Extracting bareos.com-common-23.0.3.p30.a5.e032.d9: 100%
[2/6] Installing bareos.com-database-common-23.0.3.p30.a5.e032.d9...
===> Creating groups.
Using existing group 'bareos'.
===> Creating users
Using existing user 'bareos'.
===> Creating homedir(s)
[2/6] Extracting bareos.com-database-common-23.0.3.p30.a5.e032.d9: 100%
[3/6] Installing bareos.com-database-tools-23.0.3.p30.a5.e032.d9...
===> Creating groups.
Using existing group 'bareos'.
===> Creating users
Using existing user 'bareos'.
===> Creating homedir(s)
[3/6] Extracting bareos.com-database-tools-23.0.3.p30.a5.e032.d9: 100%
[4/6] Installing bareos.com-storage-23.0.3.p30.a5.e032.d9...
===> Creating groups.
Using existing group 'bareos'.
===> Creating users
Using existing user 'bareos'.
===> Creating homedir(s)
[4/6] Extracting bareos.com-storage-23.0.3.p30.a5.e032.d9: 100%
bareos.com-storage-23.0.3.p30.a5.e032.d9: initializing bareos configuration, logs to /tmp/bareos-setup.log
[5/6] Installing bareos.com-filedaemon-23.0.3.p30.a5.e032.d9...
===> Creating groups.
Using existing group 'bareos'.
===> Creating users
Using existing user 'bareos'.
===> Creating homedir(s)
[5/6] Extracting bareos.com-filedaemon-23.0.3.p30.a5.e032.d9: 100%
bareos.com-filedaemon-23.0.3.p30.a5.e032.d9: initializing bareos configuration, logs to /tmp/bareos-setup.log
[6/6] Installing bareos.com-director-23.0.3.p30.a5.e032.d9...
===> Creating groups.
Using existing group 'bareos'.
===> Creating users
Using existing user 'bareos'.
===> Creating homedir(s)
[6/6] Extracting bareos.com-director-23.0.3.p30.a5.e032.d9: 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-23.0.3.p30.a5.e032.d9: initializing bareos configuration, logs to /tmp/bareos-setup.log
=====
Message from bareos.com-storage-23.0.3.p30.a5.e032.d9:
--
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-23.0.3.p30.a5.e032.d9:

--
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-23.0.3.p30.a5.e032.d9:

--
Thank you for installing the Bareos director!
please run the following commands to setup the bareos databases:

su postgres -c /usr/local/lib/bareos/scripts/create_bareos_database
su postgres -c /usr/local/lib/bareos/scripts/make_bareos_tables
su postgres -c /usr/local/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'

Issue History

Date Modified Username Field Change
2024-03-13 09:12 Int New Issue
2024-03-13 15:16 bruno-at-bareos Assigned To => bruno-at-bareos
2024-03-13 15:16 bruno-at-bareos Status new => closed
2024-03-13 15:16 bruno-at-bareos Resolution open => unable to reproduce
2024-03-13 15:16 bruno-at-bareos Note Added: 0005835