Hi StefanW,
thanks for testing that. I went back and realized it was me misunderstanding the allowed Persistent Disk Space. Once I increased the size I was able to install.
Having said that...I have installed and resinstalled, deleted and recreated several instances but have not yet been able to even see the 3CX control center.
I have been trying to follow the instructions provided here
https://www.3cx.com/blog/voip-howto/google-compute-engine-part-1/
https://www.3cx.com/blog/voip-howto/google-compute-engine-part-2/
so here is how its going. First of all, there are several mistakes on those articles, double hyphens '--' have been replaced by em dashes (long dashes) '
—'.
also single and double quotes have been replaced by curly single and double quotes.... so if you copy paste commands from those articles things don't work.
I created the micro instances, and ran the fixed up commands. I am not very good with linux so I will give you a few details of what I did in case I broke something obvious.
Every single time I had a (Y/n) option I chose "Y".
After installing the iptables-persistent it asked if I wanted to save ip4 and ip6 files, I tried both yes and no in different install attempts.
the clean and working commands are the following:
-------------
sudo su -
apt update
apt upgrade
apt-get install tcpdump
wget -O-
http://downloads.3cx.com/downloads/3cxpbx/public.key | apt-key add -
echo "deb
http://downloads.3cx.com/downloads/3cxpbx/ /" | tee /etc/apt/sources.list.d/3cxpbx.list
apt update
apt-get install -y $(apt-cache depends 3cxpbx | grep Depends | sed "s/.*ends:\ //" | tr '\n' ' ')
apt-get install iptables-persistent
iptables -A INPUT -p tcp --dport 80 -j ACCEPT
iptables -A INPUT -p tcp --dport 443 -j ACCEPT
iptables -A INPUT -p tcp --dport 5015 -j ACCEPT
iptables -A INPUT -p tcp --dport 5090 -j ACCEPT
iptables -A INPUT -p udp --dport 5090 -j ACCEPT
iptables -A INPUT -p tcp --dport 5060:5061 -j ACCEPT
iptables -A INPUT -p udp --dport 5060 -j ACCEPT
iptables -A INPUT -p udp --dport 9000:9500 -j ACCEPT
iptables-save >/etc/iptables/rules.v4
shutdown -r now
sudo apt-get install 3cxpbx
-------------
at this point supposedly i would have been able to login to the web config with my google provided external ip and port 5015....but the browser would just say "connecting". I also tried port 80 with http and https. It was as if nginx wasnt even running.
after running the command
/usr/sbin/3CXWizard —cleanup
and choosing text based setup I was able to go through the whole thing. Creating the FQDN with Lets Encrypt took several attempts as it would repeatedly give me error 400. Eventually it worked.
So now I am at the following point. http port 80 works fine and I get the NGINX welcome message, but the 5000, 5001 (recommended on the text install) and the 5015 ports don't work at all neither http nor https. Browser is just stuck on connecting.
I checked processes, at least what made sense to me and got these
------
root@cloud3cx:/usr/sbin# ps -A | grep 3CX
359 ? 00:00:01 3CXMediaServer
360 ? 00:00:24 3CXTunnel
522 ? 00:00:03 3CXSLDBServ
555 ? 00:00:22 3CXPhoneSystem
557 ? 00:00:11 3CXAudioProvide
660 ? 00:00:25 3CXIVR
root@cloud3cx:/usr/sbin# ps -A | grep nginx
456 ? 00:00:00 nginx
457 ? 00:00:00 nginx
458 ? 00:00:00 nginx
459 ? 00:00:00 nginx
460 ? 00:00:00 nginx
----
I also checked iptables
root@cloud3cx:~# iptables -S
-P INPUT ACCEPT
-P FORWARD ACCEPT
-P OUTPUT ACCEPT
-A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 443 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 5015 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 5090 -j ACCEPT
-A INPUT -p udp -m udp --dport 5090 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 5060:5061 -j ACCEPT
-A INPUT -p udp -m udp --dport 5060 -j ACCEPT
-A INPUT -p udp -m udp --dport 9000:9500 -j ACCEPT
-A INPUT -p tcp -m multiport --dports 5000,5015 -m tcp --tcp-flags FIN,SYN,RST,ACK SYN -m conntrack --ctstate NEW -j ACCEPT
-----
and finally I checked what sites nginx was running
root@cloud3cx:~# find /etc/nginx/sites-enabled/ -type f -print0 | xargs -0 egrep '^(\s|\t)*server_name'
root@cloud3cx:~# grep server_name /etc/nginx/sites-enabled/* -RiI
/etc/nginx/sites-enabled/3cxpbx: server_name xxxyyyzzz.3cx.pl;
/etc/nginx/sites-enabled/3cxpbx: server_name xxxyyyzzz.3cx.pl;
/etc/nginx/sites-enabled/default: server_name _;
/etc/nginx/sites-enabled/default:# server_name example.com;
-----------
both, using the IP and using the 3cx FQDN, I can reach
http://:80
I cannot reach https nor any 3CX page.
this, i think, tells me the google cloud part of the installation seems to be correct. the server is accessible from outside.
So now I need to find out why nginx is not answering on the 5015 port so that I can start configuring. 3CX services seem to be up.
I have rebooted the server several times.
I did several installs today aug 8, 2017, so the versions installed are whatever the apt get commands downloaded now according to the commands provided above on debian 8.
so thats where I stand.....any ideas, suggestions, experiments I can try?
thanks in advance for any help you can provide.
gulib