3CX Debian OS Update Failed

Status
Not open for further replies.

Hamzeh Mahafzah

Forum User
Joined
Jan 8, 2023
Messages
20
Reaction score
0
3CX attempted to update your 3CX Debian OS from Debian 10 to 12 and failed.

This may be caused by changes made to the OS after installation. The attached log file shows where the update failed.

attached is the log file.

any help or support to update 3cx to v20?

Edit: The log file has been removed for security/privacy reasons.
 
Last edited by a moderator:
Hi,

As the error indicates, you need to remove the following (invalid + third party) source lists:
  • /etc/apt/sources.list.d/3cxpbx.list.save
  • /etc/apt/sources.list.d/3cxpbx-testing.list.save
  • /etc/apt/sources.list.d/ookla_speedtest-cli.list
Once you do that, you can run the upgrade again.
 
Reboot your Server .

" Found /tmp/UPDATE_RUNNING "
 
Please delete logs files.
It contains information that you may not want to make public.
If you want to share logs, please use private messages (one to one).

I have downloaded it, let me take a look.
 
  • Like
Reactions: Hamzeh Mahafzah
You should have received a log file in your email. Could you send it to me privately?
 
Bash:
[33m====== [00:24:02] Upgrade Result: *******************************************[39m
{
  "result": "aborted",
  "time": "14-09-2024 00:24:02",
  "title": "Third party source list found",
  "message": "A third party source list was found in /etc/apt/sources.list.d/: 3cxpbx.list.save. Please remove it and retry."
}
[31m[00:24] aborted: Third party source list found - 0[39m
 
debian@vps-9fdd07e0:~$ /etc/apt/sources.list.d
-bash: /etc/apt/sources.list.d: Is a directory
debian@vps-9fdd07e0:~$ etc
-bash: etc: command not found
debian@vps-9fdd07e0:~$ cd /etc/apt/sources.list.d/
debian@vps-9fdd07e0:/etc/apt/sources.list.d$ ls
3cxpbx.list 3cxpbx.list.save 3cxpbx-testing.list 3cxpbx-testing.list.save ookla_speedtest-cli.list
debian@vps-9fdd07e0:/etc/apt/sources.list.d$ sudo rm 3cxpbx.list.save
debian@vps-9fdd07e0:/etc/apt/sources.list.d$ sudo apt update
Hit:1 http://deb.debian.org/debian bookworm InRelease
Hit:2 http://security.debian.org/debian-security bookworm-security/updates InRelease
Hit:3 http://deb.debian.org/debian bookworm-updates InRelease
Hit:4 http://repo.3cx.com/3cx bookworm-testing InRelease
Hit:5 http://repo.3cx.com/3cx bookworm InRelease
Hit:6 https://packagecloud.io/ookla/speedtest-cli/debian buster InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
1 package can be upgraded. Run 'apt list --upgradable' to see it.
 
Execute :

Bash:
mkdir -p /var/myfiles/ && chmod 700 /var/myfiles/ && mv /etc/apt/sources.list.d/3cxpbx.list.save /var/myfiles/
 
and try again update 3CX from Dashboard
 
debian@vps-9fdd07e0:/etc/apt/sources.list.d$ mkdir -p /var/myfiles/ && chmod 700 /var/myfiles/ && mv /etc/apt/sources.list.d/3cxpbx.list.save /var/myfiles/
mkdir: cannot create directory ‘/var/myfiles/’: Permission denied
debian@vps-9fdd07e0:/etc/apt/sources.list.d$
 
add sudo


Bash:
sudo mkdir -p /var/myfiles/ && sudo chown debian:debian /var/myfiles/ && sudo chmod 700 /var/myfiles/ && sudo mv /etc/apt/sources.list.d/3cxpbx.list.save /var/myfiles/
 
Reboot
 
Are you having trouble after login?
 
yes i cant access my 3cx account consol
 
looks we stuck :)
 
Bash:
sudo bash -c 'cd /var/lib/3cxpbx; if [[ ! -d /var/lib/3cxpbx/Instance1/Data/Backups ]]; then mkdir -p /var/lib/3cxpbx/Instance1/Data/Backups && chmod 770 /var/lib/3cxpbx/Instance1/Data/Backups && chown phonesystem:phonesystem /var/lib/3cxpbx/Instance1/Data/Backups; fi; sudo -u phonesystem /usr/sbin/3CXBackupCmd --log=/var/lib/3cxpbx/Instance1/Data/Backups/bak_cmd_run.log --file=/var/lib/3cxpbx/Instance1/Data/Backups/backup.zip --options=ALL,CH,LIC,FQDN,PROMPTS,FW,VM'


This command will perform a backup of your 3CX system to `/var/lib/3cxpbx/Instance1/Data/Backups`.

Retrieve it and reinstall on a fresh environment.
 
  • Like
Reactions: melbits
I have already backup file
can you explain step by step what to do?
 
Status
Not open for further replies.

Members Online Now

Forum statistics

Threads
111,832
Messages
589,283
Members
164,662
Latest member
DejanMDS