Solved Raspberry Pi4 installation problem

Status
Not open for further replies.

Alun

Free User
Basic Certified
Joined
Nov 19, 2020
Messages
8
Reaction score
2
Hi all,

I found 3CX and this forum following a YouTube video where the user "NetworkChuck" sets up a phone system on a Pi4. I have a Pi 4 4GB version running the full, desktop version of Raspbian.

I've followed the instructions here but my installation fails. The installation fails when it tries to install nginx.service:

Setting up nginx-full (1.14.2-2+deb10u3) ... Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details. invoke-rc.d: initscript nginx, action "start" failed. ● nginx.service - A high performance web server and a reverse proxy server Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Thu 2020-11-19 12:24:43 GMT; 53ms ago Docs: man:nginx(8) Process: 4975 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=0/SUCCESS) Process: 4976 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exited, status=1/FAILURE) Nov 19 12:24:41 OfficePiVPN nginx[4976]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) Nov 19 12:24:41 OfficePiVPN nginx[4976]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use) Nov 19 12:24:42 OfficePiVPN nginx[4976]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) Nov 19 12:24:42 OfficePiVPN nginx[4976]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use) Nov 19 12:24:42 OfficePiVPN nginx[4976]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) Nov 19 12:24:42 OfficePiVPN nginx[4976]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use) Nov 19 12:24:43 OfficePiVPN nginx[4976]: nginx: [emerg] still could not bind() Nov 19 12:24:43 OfficePiVPN systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE Nov 19 12:24:43 OfficePiVPN systemd[1]: nginx.service: Failed with result 'exit-code'. Nov 19 12:24:43 OfficePiVPN systemd[1]: Failed to start A high performance web server and a reverse proxy server. dpkg: error processing package nginx-full (--configure): installed nginx-full package post-installation script subprocess returned error exit status 1 Setting up liblttng-ust-ctl4:armhf (2.10.3-1) ... Setting up liblttng-ust0:armhf (2.10.3-1) ... dpkg: dependency problems prevent configuration of nginx: nginx depends on nginx-full (<< 1.14.2-2+deb10u3.1~) | nginx-light (<< 1.14.2-2+deb10u3.1~) | nginx-extras (<< 1.14.2-2+deb10u3.1~); however: Package nginx-full is not configured yet. Package nginx-light is not installed. Package nginx-extras is not installed. nginx depends on nginx-full (>= 1.14.2-2+deb10u3) | nginx-light (>= 1.14.2-2+deb10u3) | nginx-extras (>= 1.14.2-2+deb10u3); however: Package nginx-full is not configured yet. Package nginx-light is not installed. Package nginx-extras is not installed. dpkg: error processing package nginx (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of 3cxpbx: 3cxpbx depends on nginx; however: Package nginx is not configured yet. Package nginx-full which provides nginx is not configured yet. dpkg: error processing package 3cxpbx (--configure): dependency problems - leaving unconfigured Processing triggers for systemd (241-7~deb10u4+rpi1) ... Processing triggers for man-db (2.8.5-2) ... Processing triggers for libc-bin (2.28-10+rpi1) ... Errors were encountered while processing: nginx-full nginx 3cxpbx E: Sub-process /usr/bin/dpkg returned an error code (1)

The Pi 4 I'm installing it on runs a PiVPN server currently - there was an instance of PiHole installed, but I've removed that.

Does 3CX need to be the only thing installed on the Pi following a fresh install or is there a problem with the installer? I haven't tried a new install yet to prove this either way. I'm setting this up as a trial, proof of concept thing before I jump into it properly/seriously.

Thanks in advance,
Alun.
 
Thanks both.

I was using an existing device just as a proof of concept. I have another pi4 at home that has multiple servers/services running concurrently without issue. If/when I go for it properly, I'll have a dedicated device and probably minimum headless install.
 
OK, I'm now installed on a spare card.

I'm trying to get the licence key, but I'm stuck in a loop. Because I registered this account and email to ask these questions, when I enter my name and email at https://www.3cx.com/phone-system/download-phone-system/ it tells me I'm already registered and to the customer portal. There are no entries in the "My Subscriptions" section so that I can copy/paste the key into the web interface.
 
Hello,

Please check all your 3CX related emails, you should have one that contains the key.

If you login here with your initial account that you created when receiving your key, you should also be able to access your customer portal https://login.3cx.com/

Please do not install anything else on your Pi, and use the boot image that we have included in our guide to ensure you are deploying in a tested and supported method
https://www.3cx.com/docs/installing-pbx-raspberry-pi/
 
Hi,

Thanks all for your support. The licence key missing was completely my fault - I'd skipped over the registration when I logged in to access the forum. I had an online chat with the support team this morning and they fixed it.

I've now tested it, got it working and now need to plan out how I'm going to implement it properly when our company phone contract needs updating.

Fantastic concept, really happy that it didn't go smoothly!
 
  • Haha
Reactions: JohnS_3CX
Glad to hear @Alun and if you have any further questions when the time comes, feel free to start a new thread.

Meanwhile, I believe you will find our Academy extremely useful, and we also schedule live webinars
https://www.3cx.com/3cxacademy/
 
Thanks, I will do.

I watched the YouTube video and a light went on. As and when I get to the stage that I'm going to implement it, I plan to do all the academy training.
 
Status
Not open for further replies.

Forum statistics

Threads
111,974
Messages
590,081
Members
164,899
Latest member
mazet