Hi guys,
Finally, I solve this problem. YEAAH!!!
Problem was related to the univention firewall where the rule for mysql is missing.
@ruxley Try this:
#iptables -L -v -n
Check if you have an INPUT entry for tcp:3306 dpt? If not, that’s the problem.
You need to go to: /etc/security/packetfilter.d
#nano 50_local.sh
In this script you need to configure this rule, so it will not be overwritten during the updates or restarts. This file will be called automatically by /etc/init.d/univention-firewall during system boot after default rules (defined by UCR) have been set.
At the end of the file enter this rule:
iptables --wait -A INPUT -p “tcp” --dport 3306 -j ACCEPT
Save and then do server reboot, and after server is UP, wait an about minute, and then try to open your owncloud app. I hope, you will see the magic…
My iptables looks like this:
iptables -L -v -n
Chain INPUT (policy DROP 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
894 220K ACCEPT all – lo * 0.0.0.0/0 0.0.0.0/0
719 276K ACCEPT all – * * 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
2 72 ACCEPT icmp – * * 0.0.0.0/0 0.0.0.0/0
33 1716 ACCEPT tcp – * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:443
0 0 ACCEPT tcp – * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:80
2 128 ACCEPT tcp – * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:22
0 0 ACCEPT udp – * * 0.0.0.0/0 0.0.0.0/0 udp dpt:123
0 0 ACCEPT tcp – * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:53
0 0 ACCEPT tcp – * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:7777
0 0 ACCEPT udp – * * 0.0.0.0/0 0.0.0.0/0 udp dpt:53
0 0 ACCEPT udp – * * 0.0.0.0/0 0.0.0.0/0 udp dpt:7777
0 0 ACCEPT tcp – * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:6669
0 0 ACCEPT tcp – * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:544
0 0 ACCEPT tcp – * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:464
0 0 ACCEPT tcp – * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:749
0 0 ACCEPT tcp – * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:88
0 0 ACCEPT udp – * * 0.0.0.0/0 0.0.0.0/0 udp dpt:464
0 0 ACCEPT udp – * * 0.0.0.0/0 0.0.0.0/0 udp dpt:88
0 0 ACCEPT tcp – * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:389
0 0 ACCEPT tcp – * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:636
0 0 ACCEPT tcp – * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:7389
0 0 ACCEPT tcp – * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:7636
0 0 ACCEPT tcp – * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:25
0 0 ACCEPT tcp – * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:465
0 0 ACCEPT tcp – * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:587
0 0 ACCEPT tcp – * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:5666
0 0 ACCEPT tcp – * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:111
0 0 ACCEPT tcp – * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:2049
0 0 ACCEPT tcp – * * 0.0.0.0/0 0.0.0.0/0 tcp dpts:32765:32769
0 0 ACCEPT udp – * * 0.0.0.0/0 0.0.0.0/0 udp dpt:111
0 0 ACCEPT udp – * * 0.0.0.0/0 0.0.0.0/0 udp dpt:2049
0 0 ACCEPT udp – * * 0.0.0.0/0 0.0.0.0/0 udp dpts:32765:32769
0 0 ACCEPT tcp – * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:5432
0 0 ACCEPT tcp – * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:11212
7 420 ACCEPT tcp – * * 172.17.0.0/16 0.0.0.0/0 tcp dpt:3306
0 0 ACCEPT tcp – * * 172.16.0.0/16 0.0.0.0/0 tcp dpt:3306
0 0 ACCEPT tcp – * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:3306
22 4310 REJECT all – * * 0.0.0.0/0 0.0.0.0/0 reject-with icmp-port-unreachable
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
100 8348 DOCKER-USER all – * * 0.0.0.0/0 0.0.0.0/0
100 8348 DOCKER-ISOLATION-STAGE-1 all – * * 0.0.0.0/0 0.0.0.0/0
100 8348 DOCKER-USER all – * * 0.0.0.0/0 0.0.0.0/0
100 8348 DOCKER-ISOLATION-STAGE-1 all – * * 0.0.0.0/0 0.0.0.0/0
93 7928 ACCEPT all – * docker0 0.0.0.0/0 0.0.0.0/0 ctstate RELATED,ESTABLISHED
7 420 DOCKER all – * docker0 0.0.0.0/0 0.0.0.0/0
0 0 ACCEPT all – docker0 !docker0 0.0.0.0/0 0.0.0.0/0
7 420 ACCEPT all – docker0 docker0 0.0.0.0/0 0.0.0.0/0
0 0 ACCEPT all – * docker0 0.0.0.0/0 0.0.0.0/0 ctstate RELATED,ESTABLISHED
0 0 DOCKER all – * docker0 0.0.0.0/0 0.0.0.0/0
0 0 ACCEPT all – docker0 !docker0 0.0.0.0/0 0.0.0.0/0
0 0 ACCEPT all – docker0 docker0 0.0.0.0/0 0.0.0.0/0
Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
894 220K ACCEPT all – * lo 0.0.0.0/0 0.0.0.0/0
Chain DOCKER-USER (2 references)
pkts bytes target prot opt in out source destination
200 16696 RETURN all – * * 0.0.0.0/0 0.0.0.0/0
0 0 RETURN all – * * 0.0.0.0/0 0.0.0.0/0
Chain DOCKER (2 references)
pkts bytes target prot opt in out source destination
0 0 ACCEPT tcp – !docker0 docker0 0.0.0.0/0 172.17.0.2 tcp dpt:8080
0 0 ACCEPT tcp – !docker0 docker0 0.0.0.0/0 172.17.0.2 tcp dpt:8080
0 0 ACCEPT tcp – !docker0 docker0 0.0.0.0/0 172.17.0.2 tcp dpt:8080
Chain DOCKER-ISOLATION-STAGE-1 (2 references)
pkts bytes target prot opt in out source destination
0 0 DOCKER-ISOLATION-STAGE-2 all – docker0 !docker0 0.0.0.0/0 0.0.0.0/0
200 16696 RETURN all – * * 0.0.0.0/0 0.0.0.0/0
0 0 DOCKER-ISOLATION-STAGE-2 all – docker0 !docker0 0.0.0.0/0 0.0.0.0/0
0 0 RETURN all – * * 0.0.0.0/0 0.0.0.0/0
Chain DOCKER-ISOLATION-STAGE-2 (2 references)
pkts bytes target prot opt in out source destination
0 0 DROP all – * docker0 0.0.0.0/0 0.0.0.0/0
0 0 RETURN all – * * 0.0.0.0/0 0.0.0.0/0
0 0 DROP all – * docker0 0.0.0.0/0 0.0.0.0/0
0 0 RETURN all – * * 0.0.0.0/0 0.0.0.0/0
I hope this will solve your problem. Let me know.
Cheers!