3CX Repository issue ?

Status
Not open for further replies.

WifxMain

Silver Partner
Joined
Mar 27, 2021
Messages
45
Reaction score
14
Hello!
I tried the latest update.
From Debian 10 to 11, everything seems to be fine, but from Debian 11 to 12, I get this error:

Code:
Ign:1 http://repo.3cx.com/debian/1809 bullseye InRelease
Ign:2 http://repo.3cx.com/debian-security/1809 bullseye-security InRelease
Hit:3 http://repo.3cx.com/3cx bullseye-testing InRelease
Hit:4 http://repo.3cx.com/3cx bullseye InRelease
Err:5 http://repo.3cx.com/debian/1809 bullseye Release
  404  Not Found [IP: 2606:4700:4400::ac40:9381 80]
Err:6 http://repo.3cx.com/debian-security/1809 bullseye-security Release
  404  Not Found [IP: 2606:4700:4400::ac40:9381 80]
Reading package lists...
E: The repository 'http://repo.3cx.com/debian/1809 bullseye Release' does not have a Release file.
E: The repository 'http://repo.3cx.com/debian-security/1809 bullseye-security Release' does not have a Release file.
[33m====== [05:04:53] Upgrade Result: *******************************************[39m
{
  "result": "aborted",
  "time": "14-12-2023 05:04:53",
  "title": "Apt issue detected",
  "message": "There seems to be an issue with the system's sources. Please run apt update manually and see what needs to be fixed."
}
[31m[05:04] aborted: Apt issue detected - 0[39m
::FAIL::

Any ideas?
 
  • Like
Reactions: netts
You should look to upgrade via the mgmt console as using command line isnt supported.
 
I'm running the upgrade from the mgmt console and I'm getting this same error (via email log sent by 3CX). I'm running on AWS t3a.small w/ 2 CPU & 2 GB RAM w/ 14.4 GB of free space on 20GB part. Not sure what resources I'm missing.


[33m====== [10:12:40] Upgrade Result: *******************************************[39m
{
"result": "aborted",
"time": "14-12-2023 10:12:40",
"title": "Apt issue detected",
"message": "There seems to be an issue with the system's sources. Please run apt update manually and see what needs to be fixed."
}
[31m[10:12] aborted: Apt issue detected - 0[39m
::FAIL::
 
  • Like
Reactions: WifxMain
You should look to upgrade via the mgmt console as using command line isnt supported.
This upgrade was made using the mgmt console, not command line.
 
  • Like
Reactions: ThaKilla and netts
+1

I get the same error when upgrading through the mgmt console.
 
  • Like
Reactions: netts
Hi @WifxMain ,

That error is typically shown when the upgrade is ran after having already failed once for other reasons.

The reason it initially failed is not a repository issue per se, the above is a result of not being able to gracefully abort under certain circumstances.

I would suggest either restoring the machine to its previous state or restoring from backup on a new instance.
 
Hi all. I have the same error. Updating to Debian 11 and swearing on the repository. I tried to update through the browser, but it didn’t work. Then I returned a snapshot of the virtual machine and updated it through the script - the same thing. I have this problem on 2 of my systems.
 
For the sake of curiosity, and at your own risk (do a backup)

what happens if you use

Code:
echo "deb [arch=amd64 by-hash=yes signed-by=/usr/share/keyrings/3cx-archive-keyring.gpg] http://repo.3cx.com/3cx bookworm main" | sudo tee /etc/apt/sources.list.d/3cxpbx.list
apt update
apt install 3cxpbx
 
For the sake of curiosity, and at your own risk (do a backup)

what happens if you use

Code:
echo "deb [arch=amd64 by-hash=yes signed-by=/usr/share/keyrings/3cx-archive-keyring.gpg] http://repo.3cx.com/3cx bookworm main" | sudo tee /etc/apt/sources.list.d/3cxpbx.list
apt update
apt install 3cxpbx
In Debian 12 it's giving this issue

root@debian-12-ct:~# echo "deb [arch=amd64 by-hash=yes signed-by=/usr/share/keyrings/3cx-archive-keyring.gpg] http://repo.3cx.com/3cx bookworm main" | tee /etc/apt/sources.list.d/3cxpbx.list deb [arch=amd64 by-hash=yes signed-by=/usr/share/keyrings/3cx-archive-keyring.gpg] http://repo.3cx.com/3cx bookworm main root@debian-12-ct:~# sudo apt update -y && sudo apt-get upgrade -y --with-new-pkgs && sudo apt dist-upgrade -y && sudo apt autoremove -y Get:1 http://repo.3cx.com/3cx bookworm InRelease [13.8 kB] Hit:2 http://deb.debian.org/debian bookworm InRelease Hit:3 http://security.debian.org bookworm-security InRelease Hit:4 http://deb.debian.org/debian bookworm-updates InRelease Get:5 http://repo.3cx.com/3cx bookworm/main amd64 Packages [2185 B] Err:5 http://repo.3cx.com/3cx bookworm/main amd64 Packages File has unexpected size (1022 != 2185). Mirror sync in progress? [IP: 2606:4700:4400::ac40:9381 80] Hashes of expected file: - Filesize:2185 [weak] - SHA512:759a047ce937f115c6a9071e18ebaee022c25dbf7873389545d4fbb88188bc1675623bf9137602fcd113bf7c9d5070bfd1c5ae9c3a3c1e11613fedde6038978b - SHA256:2d7c15691986b0d419137f7db2ae6daf5c93dbde8b5aa3f92c963e8135add633 - SHA1:89cfa61c926689a9156036d59e7877d75cb7cfaf [weak] - MD5Sum:d41794fc3ba5276f0f9f3feedcb0c0d7 [weak] Release file created at: Mon, 29 Apr 2024 06:33:41 +0000 Fetched 13.8 kB in 1s (19.9 kB/s) Reading package lists... Done E: Failed to fetch http://repo.3cx.com/3cx/dists/bookworm/main/binary-amd64/Packages.bz2 File has unexpected size (1022 != 2185). Mirror sync in progress? [IP: 2606:4700:4400::ac40:9381 80] Hashes of expected file: - Filesize:2185 [weak] - SHA512:759a047ce937f115c6a9071e18ebaee022c25dbf7873389545d4fbb88188bc1675623bf9137602fcd113bf7c9d5070bfd1c5ae9c3a3c1e11613fedde6038978b - SHA256:2d7c15691986b0d419137f7db2ae6daf5c93dbde8b5aa3f92c963e8135add633 - SHA1:89cfa61c926689a9156036d59e7877d75cb7cfaf [weak] - MD5Sum:d41794fc3ba5276f0f9f3feedcb0c0d7 [weak] Release file created at: Mon, 29 Apr 2024 06:33:41 +0000 E: Some index files failed to download. They have been ignored, or old ones used instead
 
@amanjuman
Hi there.
What is the outcome of the command below, as it seems that you have default Debian repositories in there:
cat /etc/apt/sources.list
 
@amanjuman
Hi there.
What is the outcome of the command below, as it seems that you have default Debian repositories in there:
cat /etc/apt/sources.list
There are no issues with the Debian repo; the moment I add the 3CX repo, it starts showing the issues.

wget -O- https://repo.3cx.com/key.pub | gpg --dearmor | sudo tee /usr/share/keyrings/3cx-archive-keyring.gpg >> /dev/null
echo "deb [arch=amd64 by-hash=yes signed-by=/usr/share/keyrings/3cx-archive-keyring.gpg] http://repo.3cx.com/3cx bookworm main" | tee /etc/apt/sources.list.d/3cxpbx.list


root@host:~# cat /etc/apt/sources.list
deb [arch=amd64 by-hash=yes signed-by=/usr/share/keyrings/3cx-archive-keyring.gpg] http://repo.3cx.com/debian/2001 bookworm main
deb [arch=amd64 by-hash=yes signed-by=/usr/share/keyrings/3cx-archive-keyring.gpg] http://repo.3cx.com/debian-security/2001 bookworm-security main

root@host:~# cat /etc/apt/sources.list.d/3cxpbx.list
deb [arch=amd64 by-hash=yes signed-by=/usr/share/keyrings/3cx-archive-keyring.gpg] http://repo.3cx.com/3cx bookworm main
 
In my case, i do not see what you see above :

Hit:2 http://deb.debian.org/debian bookworm InRelease
Hit:3 http://security.debian.org bookworm-security InRelease


not sure where this come from.
For your own safety, you are best to reinstall using the latest 3CX ISO that you can find in your portal.
 
In my case, i do not see what you see above :

Hit:2 http://deb.debian.org/debian bookworm InRelease
Hit:3 http://security.debian.org bookworm-security InRelease


not sure where this come from.
For your own safety, you are best to reinstall using the latest 3CX ISO that you can find in your portal.
After adding 3CX repo when you try to install 3cx, it removes all official repos.
Later, I manually added them and still had the same issue.

root@host:~# cat /etc/apt/sources.list
deb http://deb.debian.org/debian/ bookworm main non-free-firmware
deb-src http://deb.debian.org/debian/ bookworm main non-free-firmware

deb http://security.debian.org/debian-security bookworm-security main non-free-firmware
deb-src http://security.debian.org/debian-security bookworm-security main non-free-firmware

deb http://deb.debian.org/debian/ bookworm-updates main non-free-firmware
deb-src http://deb.debian.org/debian/ bookworm-updates main non-free-firmware


root@host:~# cat /etc/apt/sources.list.d/3cxpbx.list
deb [arch=amd64 by-hash=yes signed-by=/usr/share/keyrings/3cx-archive-keyring.gpg] http://repo.3cx.com/3cx bookworm main

root@host:~# apt update Hit:1 http://repo.3cx.com/3cx bookworm-testing InRelease Get:2 http://repo.3cx.com/3cx bookworm InRelease [13.8 kB] Hit:3 http://deb.debian.org/debian bookworm InRelease Hit:4 http://deb.debian.org/debian bookworm-updates InRelease Get:5 http://repo.3cx.com/3cx bookworm/main amd64 Packages [2,185 B] Err:5 http://repo.3cx.com/3cx bookworm/main amd64 Packages File has unexpected size (1022 != 2185). Mirror sync in progress? [IP: 172.64.147.129 80] Hashes of expected file: - Filesize:2185 [weak] - SHA512:759a047ce937f115c6a9071e18ebaee022c25dbf7873389545d4fbb88188bc1675623bf9137602fcd113bf7c9d5070bfd1c5ae9c3a3c1e11613fedde6038978b - SHA256:2d7c15691986b0d419137f7db2ae6daf5c93dbde8b5aa3f92c963e8135add633 - SHA1:89cfa61c926689a9156036d59e7877d75cb7cfaf [weak] - MD5Sum:d41794fc3ba5276f0f9f3feedcb0c0d7 [weak] Release file created at: Mon, 29 Apr 2024 06:33:41 +0000 Hit:6 http://security.debian.org/debian-security bookworm-security InRelease Fetched 13.8 kB in 1s (21.3 kB/s) Reading package lists... Done E: Failed to fetch http://repo.3cx.com/3cx/dists/bookworm/main/binary-amd64/Packages.bz2 File has unexpected size (1022 != 2185). Mirror sync in progress? [IP: 172.64.147.129 80] Hashes of expected file: - Filesize:2185 [weak] - SHA512:759a047ce937f115c6a9071e18ebaee022c25dbf7873389545d4fbb88188bc1675623bf9137602fcd113bf7c9d5070bfd1c5ae9c3a3c1e11613fedde6038978b - SHA256:2d7c15691986b0d419137f7db2ae6daf5c93dbde8b5aa3f92c963e8135add633 - SHA1:89cfa61c926689a9156036d59e7877d75cb7cfaf [weak] - MD5Sum:d41794fc3ba5276f0f9f3feedcb0c0d7 [weak] Release file created at: Mon, 29 Apr 2024 06:33:41 +0000 E: Some index files failed to download. They have been ignored, or old ones used instead.

I know installing from ISO makes the whole process smooth, but many providers don't let you install ISO. I feel comfortable installing stuff manually where I have more control.
 
This is one of the issue you can face when taking this "road", and we are not able to advise further.
In case some of the Linux guru will, keep in mind that this could cause you other unpredictable issues we are not aware of (other package/libraries versions installed etc.)
 
Last edited:
This is one of the issue you can face when taking this "road", and we are not able to advise further.
In case some of the Linux guru will could, keep in mind that this could cause you other unpredictable issues we are not aware of (other package/libraries versions installed etc.)
That is totally fine, but I believe 3CX maintains its own repo, and I feel that I should report that because it's not something the user can control.
 
If you use and install the latest 3CX ISO without changing anything, do you face the same issue?
 
Give it a try, and let us know with the outcome.
 
Status
Not open for further replies.

Latest Posts

Forum statistics

Threads
111,952
Messages
589,894
Members
164,845
Latest member
tdzski5