Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation cammot connect https://v.je/test.html ping v.je works #14

Open
Zapp82 opened this issue Apr 20, 2024 · 4 comments
Open

Installation cammot connect https://v.je/test.html ping v.je works #14

Zapp82 opened this issue Apr 20, 2024 · 4 comments

Comments

@Zapp82
Copy link

Zapp82 commented Apr 20, 2024

Novice working through install.
WARN[0000] /home/mj/Documents/WebsiteDocker/docker-compose.yml: version is obsolete
[+] Running 8/8
✔ Network websitedocker_default Created 0.2s
✔ Container websitedocker-updatecerts-1 S... 0.3s
✔ Container websitedocker-mysql-1 Created 0.3s
✔ Container websitedocker-maildev-1 Start... 0.2s
✔ Container websitedocker-landingpage-1 S... 0.2s
✔ Container websitedocker-php-1 Started 0.2s
✔ Container websitedocker-web-1 Created 0.2s
✔ Container websitedocker-databaseimportexport-1 Created 0.2s
Error response from daemon: driver failed programming external connectivity on endpoint websitedocker-mysql-1 (3d03ea340a67e49386cf70b940189d1ba9df380f28b12f175ba47714cd63b6b5): Error starting userland proxy: listen tcp4 0.0.0.0:3306: bind: address already in use

ss -tunap | grep LISTEN
tcp LISTEN 0 70 127.0.0.1:33060 0.0.0.0:* users:(("mysqld",pid=895,fd=21))

/$ find mysql
find: ‘mysql’: No such file or directory

@TRPB
Copy link
Contributor

TRPB commented Apr 21, 2024

You already have mysql running locally on 3306 which is why that's erroring.

I can't see anything else which would block the connection. Can you paste the output of ping v.je?

@Zapp82
Copy link
Author

Zapp82 commented Apr 26, 2024

R3:~/Documents/WebsiteDocker$ sudo docker compose up
WARN[0000] /home/mj/Documents/WebsiteDocker/docker-compose.yml: version is obsolete
[+] Running 4/0
✔ Container websitedocker-updatecerts-1 Created 0.0s
✔ Container websitedocker-maildev-1 Created 0.0s
✔ Container websitedocker-php-1 Created 0.0s
✔ Container websitedocker-landingpage-1 Created 0.0s
Attaching to databaseimportexport-1, landingpage-1, maildev-1, mysql-1, php-1, updatecerts-1, web-1
landingpage-1 | fatal: destination path '/websites/default/public' already exists and is not an empty directory.
landingpage-1 exited with code 128
Error response from daemon: driver failed programming external connectivity on endpoint websitedocker-mysql-1 (bafc8b79f055df17de79e998d1d472957a17cf81d491c2f352b95948be9647aa): Error starting userland proxy: listen tcp4 0.0.0.0:3306: bind: address already in use

R3:~/Documents/WebsiteDocker$ ping v.je
PING v.je(2607:7700:0:46::7f00:1 (2607:7700:0:46::7f00:1)) 56 data bytes
^C
--- v.je ping statistics ---
11 packets transmitted, 0 received, 100% packet loss, time 10232ms

@TRPB
Copy link
Contributor

TRPB commented Apr 26, 2024

Your DNS is wrong. I'm not sure where it's getting 2607:7700:0:46::7f00:1 from as there is no IPV6 address configured for v.je see https://mxtoolbox.com/SuperTool.aspx?action=aaaa%3av.je&run=toolpage

it should be responding 127.0.0.1 I can add an AAAA record pointing to ::1 which could possibly fix your DNS but you'll need to configure docker for IPv6, see https://docs.docker.com/config/daemon/ipv6/ which is probably more work than determining why your DNS is wrong.

You will still also need to stop mysql running outside the container

edit: Actually I don't want to add an IPv6 DNS record as it'll break any computer that prioritises IPv6 over IPv4 as they'll need to manually configure docker for IPv6

@Zapp82
Copy link
Author

Zapp82 commented Apr 28, 2024

Novice here, v.je will not display. docker-compose.yml is obsolete.
mysql was not running, I used service mysql stop. [website/public is not empty.](fatal: destination path '/websites/default/public' already exists and is not an empty directory.)

R3:~/Documents/WebsiteDocker$ sudo docker compose up
WARN[0000] /home/mj/Documents/WebsiteDocker/docker-compose.yml: version is obsolete
[+] Running 1/8
✔ Network websitedocker_default Created 0.2s
⠼ Container websitedocker-landingpage-1 Created 0.4s
⠼ Container websitedocker-php-1 Created 0.4s
⠼ Container websitedocker-maildev-1 Created 0.4s
⠼ Container websitedocker-updatecerts-1 Created 0.4s
⠼ Container websitedocker-mysql-1 Created 0.4s
⠹ Container websitedocker-databaseimportexport-1 Created 0.2s

⠹ Container websitedocker-web-1 Created 0.2s
Attaching to databaseimportexport-1, landingpage-1, maildev-1, mysql-1, php-1, updatecerts-1, web-1
landingpage-1 | fatal: destination path '/websites/default/public' already exists and is not an empty directory.
landingpage-1 exited with code 128
Error response from daemon: driver failed programming external connectivity on endpoint websitedocker-mysql-1 (e9587593a93006e6c25ac2b8bb438da5d4ec6712a13328b3cd064704f00bdee4): Error starting userland proxy: listen tcp4 0.0.0.0:3306: bind: address already in use
mj@mj-Alien-R3:/Documents/WebsiteDocker$ ping v.je
PING v.je (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.047 ms
64 bytes from localhost (127.0.0.1): icmp_seq=2 ttl=64 time=0.051 ms
64 bytes from localhost (127.0.0.1): icmp_seq=3 ttl=64 time=0.048 ms
64 bytes from localhost (127.0.0.1): icmp_seq=4 ttl=64 time=0.065 ms
64 bytes from localhost (127.0.0.1): icmp_seq=5 ttl=64 time=0.060 ms
64 bytes from localhost (127.0.0.1): icmp_seq=6 ttl=64 time=0.049 ms
64 bytes from localhost (127.0.0.1): icmp_seq=7 ttl=64 time=0.048 ms
^C
--- v.je ping statistics ---
7 packets transmitted, 7 received, 0% packet loss, time 6131ms
rtt min/avg/max/mdev = 0.047/0.052/0.065/0.006 ms
R3:~/Documents/WebsiteDocker$

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants