Hello, I have a problem when executing docker-comp...
# troubleshoot
s
Hello, I have a problem when executing docker-compose up in airflow, I followed the documentation on datahub on how to install but I have problems in a container that is unhealthy and does not show the docker on the web. what is happening? I have had this problem for 1 month and nobody from the community knows how to help me, could it be that the documentation is wrong?
I have a folder with these files
s
You edited the compose file, right? To change port mapping to
8080
?
There is a port conflict happening there so that is why it is unhealthy
s
I have tried to try in other ports and it has not let me
s
The default in the file mentioned in the doc works without any issue. Have you tried the defaults before starting to change the files?
s
It says on the web that it should be like this, but it doesn't work either
how do you think i should fix it?
s
You don't have to do that yourself. Whatever changes were required are already done. Do not change anything.
Delete current folder, make a new folder and run commands one-by-one. Do not edit anything
Make sure quickstart of datahub was done already. So your DataHub should be up already. Other than that you don't need to do any other edit
s
I haven't changed anything, that's why the error seems strange to me ``````
Datahub runs successfully, but when I want to apply a lineage it doesn't let me
s
Are there any logs of errors or exceptions in the unhealthy pod?
s
That is why I say that I have been doing the same thing for 1 month, I have created 3000 folders all from 0 and nothing
This is the only thing I found
s
If you go to
<http://localhost:58080/home>
does the login page show up?
It is also showing unhealthy for me. But the airflow login page does show up when I go to that URL
s
Do not show
s
This is your localhost IP address? Or is this running on some server that you are trying to connect to?
s
I have a cloud server with centos
s
Can you try doing a curl from within the server to localhost? Just to rule out some firewall issue here
or maybe
wget
?
s
I changed local host to my ip inside curl and now it's healthy but not running
s
I do not understand. Can you tell me the command that you ran and the response you received?
Please share with me the command that you ran and the response that you received in a text format
And please elaborate "now it's healthy but not running". What do you mean by "running"? "What" is not "running"?
s
I have modified this, I want to see the airflow interface on port 58080 and it doesn't show it
s
Please run the following command on your server and share the output. Do not run it from outside the server. Run it from the same shell where you started the docker containers.
Copy code
wget <http://localhost:58080/home>
s
s
Can you translate? Is it saying Not found or did it download successfully?
It is 200 OK so it did connect successfully
s
Copy code
airflow-webserver_1 | 172.20.0.1 - - [Feb/21/2022:15:51:38 +0000] "GET /login/?next=http%3A%2F%2Flocalhost%3A58080%2Fhome HTTP/1.1" 200 17169 "-" "Wget /1.19.5 (linux-gnu)"
(datahub-env) [root@cloudformsadmin-paradoresservqa-5bc1d0 airflow_install]# wget <http://localhost:58080/home>
--2022-02-21 12:51:43-- <http://localhost:58080/home>
Resolving localhost (localhost)... ::1, 127.0.0.1
Connecting to localhost (localhost)[::1]:58080... connected.
HTTP request sent, waiting for response... 302 FOUND
Location: <http://localhost:58080/login/?next=http%3A%2F%2Flocalhost%3A58080%2Fhome> [following]
--2022-02-21 12:51:43-- <http://localhost:58080/login/?next=http%3A%2F%2Flocalhost%3A58080%2Fhome>
Connecting to localhost (localhost)[::1]:58080... connected.
HTTP request sent, waiting for response... airflow-webserver_1 | 172.20.0.1 - - [Feb/21/2022:15:51:43 +0000] "GET /home HTTP/1.1" 302 307 "-" "Wget/1.19.5 (linux-gnu)"
200 good
Length: 17169 (17K) [text/html]
Recording to: "home.5"
Why doesn't it show me the lineage interface on port 58080? ``````
s
can you open the saved file
home.5
or whatever the response was stored in through
vim
and see if it is HTML? If yes,
wget
was successful. This means that probably there is a problem in how you are accessing that port through the browser. Maybe a firewall or port forwarding is the problem.
You will need to check the connection between your laptop or PC and that machine for port 58080
s
I don't see anything weird
s
The HTML is fine. So the server is responding with correct HTML.
This is a connection issue between your browser and the server
s
What do you recommend in this case?
s
Connect to your infra team. Tell them you are unable to connect to a http server running on port 58080 on this server through your browser.
s
Hello, when starting airflow in datahub everything goes well, but it does not start the interface in the browser on port 58080. the port is on and when I run the command wget localhost:58080 it returns me the html of airflow. what is happening?