FreePBX / sng_freepbx_debian_install

FreePBX 17 Installation Script
51 stars 15 forks source link

Installation script v1.3 with 12.5 Debian image failed to locate package mongodb-org #53

Closed Stevehans closed 3 weeks ago

Stevehans commented 3 weeks ago

FreePBX Version

FreePBX 17

Issue Description

Ran the installer, but it ended with unable to locate package mongodb-org

Will investigate why, but this was a clean install of the DVD image from debian.org followed by a wget of the script and execution

Operating Environment

Debian 12.5 DVD image Latest v1.3 of installer script

Relevant log output

2024-06-10 16:38:38 - Setting up MongoDB
2024-06-10 16:38:38 - Installing  mongodb....
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package mongodb-org
2024-06-10 16:38:38 - Exiting script
kguptasangoma commented 3 weeks ago

Hey @Stevehans we are adding mongodb repo , so please check if that is setting properly to you or not. https://github.com/FreePBX/sng_freepbx_debian_install/blob/master/sng_freepbx_debian_install.sh#L217

Stevehans commented 3 weeks ago

Can't be located:

root@freepbx17:/var/log/pbx# apt search mongodb-org
Sorting... Done
Full Text Search... Done
root@freepbx17:/var/log/pbx#
kguptasangoma commented 3 weeks ago

"apt install mongodb-org" what does this gives to you ?

kguptasangoma commented 3 weeks ago

also see what do you see in the log file, that may have some more information.

Stevehans commented 3 weeks ago

Can't be located

root@freepbx17:/var/log/pbx# apt install mongodb-org
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package mongodb-org
root@freepbx17:/var/log/pbx#
Stevehans commented 3 weeks ago
root@freepbx17:/var/log/pbx# grep mongo *.log
freepbx17-install-2024.06.10-16.19.08.log:Ign:3 http://repo.mongodb.org/apt/debian bookworm/mongodb-org/7.0 InRelease
freepbx17-install-2024.06.10-16.19.08.log:Get:4 http://repo.mongodb.org/apt/debian bookworm/mongodb-org/7.0 Release [1,991 B]
freepbx17-install-2024.06.10-16.19.08.log:Get:6 http://repo.mongodb.org/apt/debian bookworm/mongodb-org/7.0 Release.gpg [866 B]
freepbx17-install-2024.06.10-16.19.08.log:Repository: 'deb [arch=i386] http://repo.mongodb.org/apt/debian bookworm/mongodb-org/7.0 main'
freepbx17-install-2024.06.10-16.19.08.log:Archive for codename: bookworm/mongodb-org/7.0 components: main
freepbx17-install-2024.06.10-16.19.08.log:More info: http://repo.mongodb.org/apt/debian
freepbx17-install-2024.06.10-16.19.08.log:Adding deb entry to /etc/apt/sources.list.d/archive_uri-http_repo_mongodb_org_apt_debian-bookworm.list
freepbx17-install-2024.06.10-16.19.08.log:Adding disabled deb-src entry to /etc/apt/sources.list.d/archive_uri-http_repo_mongodb_org_apt_debian-bookworm.list
freepbx17-install-2024.06.10-16.19.08.log:Ign:1 http://repo.mongodb.org/apt/debian bookworm/mongodb-org/7.0 InRelease
freepbx17-install-2024.06.10-16.19.08.log:Hit:5 http://repo.mongodb.org/apt/debian bookworm/mongodb-org/7.0 Release
freepbx17-install-2024.06.10-16.19.08.log:Ign:4 http://repo.mongodb.org/apt/debian bookworm/mongodb-org/7.0 InRelease
freepbx17-install-2024.06.10-16.19.08.log:Hit:5 http://repo.mongodb.org/apt/debian bookworm/mongodb-org/7.0 Release
freepbx17-install-2024.06.10-16.19.08.log:  rsyslog-mysql | rsyslog-pgsql rsyslog-mongodb rsyslog-doc rsyslog-openssl
freepbx17-install-2024.06.10-16.19.08.log:2024-06-10 16:25:50 - Installing  mongodb....
freepbx17-install-2024.06.10-16.19.08.log:E: Unable to locate package mongodb-org
Stevehans commented 3 weeks ago

Here's the entry from the list file

deb [arch=i386] http://repo.mongodb.org/apt/debian bookworm/mongodb-org/7.0 main
# deb-src [arch=i386] http://repo.mongodb.org/apt/debian bookworm/mongodb-org/7.0 main
kguptasangoma commented 3 weeks ago

looks like mongodb somehow not installing on your system, can you please try to check if the repo is good or not?

Stevehans commented 3 weeks ago

Here's the issue, are you guys only running this on Raspberry Pis :) :-

root@freepbx17:/var/log/pbx# apt update
Hit:1 http://ftp.debian.org/debian stable InRelease
Hit:2 https://deb.debian.org/debian bookworm InRelease
Hit:3 https://packages.sury.org/php bookworm InRelease
Ign:4 http://repo.mongodb.org/apt/debian bookworm/mongodb-org/7.0 InRelease
Hit:5 http://repo.mongodb.org/apt/debian bookworm/mongodb-org/7.0 Release
Hit:6 http://deb.freepbx.org/freepbx17-prod bookworm InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'http://repo.mongodb.org/apt/debian bookworm/mongodb-org/7.0 InRelease' doesn't support architecture 'i386'
N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'http://deb.freepbx.org/freepbx17-prod bookworm InRelease' doesn't support architecture 'i386'
root@freepbx17:/var/log/pbx#
Stevehans commented 3 weeks ago

Ah, just seen the amd64 image!

Stevehans commented 3 weeks ago

Don't use i386 images when you mean to use AMD64....

kguptasangoma commented 3 weeks ago

We are using like below to put arch. wget -qO - https://pgp.mongodb.com/server-7.0.asc | gpg --dearmor --yes -o /etc/apt/trusted.gpg.d/mongodb-server-7.0.gpg >> "$log" 2>&1 add-apt-repository -y -S "deb [ arch=${arch} ] http://repo.mongodb.org/apt/debian bookworm/mongodb-org/7.0 main" >> "$log" 2>&1

  What do you see output of "arch=`dpkg --print-architecture`" ? 
Stevehans commented 3 weeks ago

Closed, my mistake, I'd used an i386 image not AMD64