Score:0

Airflow webservice server is not working

cn flag

I have created a service file for an Airflow web server. This is the contents of the .service file:

[Unit]
Description=Airflow webserver daemon
After=network.target
[Service]
Environment=”PATH=/srv/airflow/bin”
Environment=”AIRFLOW_HOME=/srv/airflow”
User=airflow
Group=airflow
Type=simple
ExecStart=/srv/airflow/bin/airflow webserver -p 8080 -- pid /srv/airflow/webserver.pid
Restart=on-failure
RestartSec=5s
PrivateTmp=true
[Install]
WantedBy=multi-user.target

I can start the web server like this:

systemctl start airflow-webserver.service

However, when I visit the site in a browser, this is what I see:

Cannot Connect

What could be wrong?

in flag
A few questions: (0) what version of Ubuntu are you running on the server? (1) is Apache installed on the server? (2) are there any errors reported on the screen or in `/var/log/syslog` when you start the service? (3) is `ufw` running? If so, have you configured it to allow traffic on port `8080`?
N0rbert avatar
zw flag
You have wrong quotes - replace `”` to normal `"`.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.