Airflow: How to setup log directory?












0















I upload a dag file to the web page and when I click 'Graph View' -> ${my_dag} -> 'View Log', it shows:



*** Log file isn't local.
*** Fetching here: http://:8793/log/demo_dag/hello_task/2018-11-14T15:06:00
*** Failed to fetch log file from worker.

*** Reading remote logs...
*** Unsupported remote log location.


I have checked the airflow.cfg and find these config info:



worker_log_server_port = 8793
base_log_folder = /root/airflow/logs


My question is:




  1. How to setup IP address for log service (Only port is setup)?

  2. I have setup directory for log service, why does it still go to /log/.. ?


Any help is appreciated.










share|improve this question

























  • What is the file path to the log in /log?

    – joeb
    Nov 16 '18 at 1:47











  • hey @joeb Thanks for your reply. The log file path is /root/airflow/logs (as in config file), but this path has full permissions (777).

    – user2894829
    Nov 16 '18 at 2:43











  • What is the path to the file in your /log directory that you say has Airflow logging messages in it?

    – joeb
    Nov 16 '18 at 14:03











  • @joeb thanks for your reply. The path is /root/airflow/logs, as shown in the config file.

    – user2894829
    Nov 19 '18 at 5:21











  • In your second question "I have setup directory for log service, why does it still go to /log/.." -- What is the full path to the file in /log/.. that you are seeing which contains Airflow logging?

    – joeb
    Nov 19 '18 at 13:44


















0















I upload a dag file to the web page and when I click 'Graph View' -> ${my_dag} -> 'View Log', it shows:



*** Log file isn't local.
*** Fetching here: http://:8793/log/demo_dag/hello_task/2018-11-14T15:06:00
*** Failed to fetch log file from worker.

*** Reading remote logs...
*** Unsupported remote log location.


I have checked the airflow.cfg and find these config info:



worker_log_server_port = 8793
base_log_folder = /root/airflow/logs


My question is:




  1. How to setup IP address for log service (Only port is setup)?

  2. I have setup directory for log service, why does it still go to /log/.. ?


Any help is appreciated.










share|improve this question

























  • What is the file path to the log in /log?

    – joeb
    Nov 16 '18 at 1:47











  • hey @joeb Thanks for your reply. The log file path is /root/airflow/logs (as in config file), but this path has full permissions (777).

    – user2894829
    Nov 16 '18 at 2:43











  • What is the path to the file in your /log directory that you say has Airflow logging messages in it?

    – joeb
    Nov 16 '18 at 14:03











  • @joeb thanks for your reply. The path is /root/airflow/logs, as shown in the config file.

    – user2894829
    Nov 19 '18 at 5:21











  • In your second question "I have setup directory for log service, why does it still go to /log/.." -- What is the full path to the file in /log/.. that you are seeing which contains Airflow logging?

    – joeb
    Nov 19 '18 at 13:44
















0












0








0








I upload a dag file to the web page and when I click 'Graph View' -> ${my_dag} -> 'View Log', it shows:



*** Log file isn't local.
*** Fetching here: http://:8793/log/demo_dag/hello_task/2018-11-14T15:06:00
*** Failed to fetch log file from worker.

*** Reading remote logs...
*** Unsupported remote log location.


I have checked the airflow.cfg and find these config info:



worker_log_server_port = 8793
base_log_folder = /root/airflow/logs


My question is:




  1. How to setup IP address for log service (Only port is setup)?

  2. I have setup directory for log service, why does it still go to /log/.. ?


Any help is appreciated.










share|improve this question
















I upload a dag file to the web page and when I click 'Graph View' -> ${my_dag} -> 'View Log', it shows:



*** Log file isn't local.
*** Fetching here: http://:8793/log/demo_dag/hello_task/2018-11-14T15:06:00
*** Failed to fetch log file from worker.

*** Reading remote logs...
*** Unsupported remote log location.


I have checked the airflow.cfg and find these config info:



worker_log_server_port = 8793
base_log_folder = /root/airflow/logs


My question is:




  1. How to setup IP address for log service (Only port is setup)?

  2. I have setup directory for log service, why does it still go to /log/.. ?


Any help is appreciated.







airflow airflow-scheduler






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 16 '18 at 0:03









cricket_007

82.6k1144112




82.6k1144112










asked Nov 15 '18 at 8:56









user2894829user2894829

908




908













  • What is the file path to the log in /log?

    – joeb
    Nov 16 '18 at 1:47











  • hey @joeb Thanks for your reply. The log file path is /root/airflow/logs (as in config file), but this path has full permissions (777).

    – user2894829
    Nov 16 '18 at 2:43











  • What is the path to the file in your /log directory that you say has Airflow logging messages in it?

    – joeb
    Nov 16 '18 at 14:03











  • @joeb thanks for your reply. The path is /root/airflow/logs, as shown in the config file.

    – user2894829
    Nov 19 '18 at 5:21











  • In your second question "I have setup directory for log service, why does it still go to /log/.." -- What is the full path to the file in /log/.. that you are seeing which contains Airflow logging?

    – joeb
    Nov 19 '18 at 13:44





















  • What is the file path to the log in /log?

    – joeb
    Nov 16 '18 at 1:47











  • hey @joeb Thanks for your reply. The log file path is /root/airflow/logs (as in config file), but this path has full permissions (777).

    – user2894829
    Nov 16 '18 at 2:43











  • What is the path to the file in your /log directory that you say has Airflow logging messages in it?

    – joeb
    Nov 16 '18 at 14:03











  • @joeb thanks for your reply. The path is /root/airflow/logs, as shown in the config file.

    – user2894829
    Nov 19 '18 at 5:21











  • In your second question "I have setup directory for log service, why does it still go to /log/.." -- What is the full path to the file in /log/.. that you are seeing which contains Airflow logging?

    – joeb
    Nov 19 '18 at 13:44



















What is the file path to the log in /log?

– joeb
Nov 16 '18 at 1:47





What is the file path to the log in /log?

– joeb
Nov 16 '18 at 1:47













hey @joeb Thanks for your reply. The log file path is /root/airflow/logs (as in config file), but this path has full permissions (777).

– user2894829
Nov 16 '18 at 2:43





hey @joeb Thanks for your reply. The log file path is /root/airflow/logs (as in config file), but this path has full permissions (777).

– user2894829
Nov 16 '18 at 2:43













What is the path to the file in your /log directory that you say has Airflow logging messages in it?

– joeb
Nov 16 '18 at 14:03





What is the path to the file in your /log directory that you say has Airflow logging messages in it?

– joeb
Nov 16 '18 at 14:03













@joeb thanks for your reply. The path is /root/airflow/logs, as shown in the config file.

– user2894829
Nov 19 '18 at 5:21





@joeb thanks for your reply. The path is /root/airflow/logs, as shown in the config file.

– user2894829
Nov 19 '18 at 5:21













In your second question "I have setup directory for log service, why does it still go to /log/.." -- What is the full path to the file in /log/.. that you are seeing which contains Airflow logging?

– joeb
Nov 19 '18 at 13:44







In your second question "I have setup directory for log service, why does it still go to /log/.." -- What is the full path to the file in /log/.. that you are seeing which contains Airflow logging?

– joeb
Nov 19 '18 at 13:44














1 Answer
1






active

oldest

votes


















0














This can happen when the task status was manually changed (likely through the "Mark Success" option) and the task never receives a hostname value on the record.



The webserver is attempting to reach out to a server, with no name, to get logs for a task that never ran.



PS: Be careful running processes as the root user.






share|improve this answer
























  • I don't think I changed the task status. Actually, all tasks keep running and never finished. I am trying to find reasons and logs are not available.

    – user2894829
    Nov 16 '18 at 2:47











  • What is the status of the task that you're viewing?

    – joeb
    Nov 19 '18 at 13:45











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53315630%2fairflow-how-to-setup-log-directory%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














This can happen when the task status was manually changed (likely through the "Mark Success" option) and the task never receives a hostname value on the record.



The webserver is attempting to reach out to a server, with no name, to get logs for a task that never ran.



PS: Be careful running processes as the root user.






share|improve this answer
























  • I don't think I changed the task status. Actually, all tasks keep running and never finished. I am trying to find reasons and logs are not available.

    – user2894829
    Nov 16 '18 at 2:47











  • What is the status of the task that you're viewing?

    – joeb
    Nov 19 '18 at 13:45
















0














This can happen when the task status was manually changed (likely through the "Mark Success" option) and the task never receives a hostname value on the record.



The webserver is attempting to reach out to a server, with no name, to get logs for a task that never ran.



PS: Be careful running processes as the root user.






share|improve this answer
























  • I don't think I changed the task status. Actually, all tasks keep running and never finished. I am trying to find reasons and logs are not available.

    – user2894829
    Nov 16 '18 at 2:47











  • What is the status of the task that you're viewing?

    – joeb
    Nov 19 '18 at 13:45














0












0








0







This can happen when the task status was manually changed (likely through the "Mark Success" option) and the task never receives a hostname value on the record.



The webserver is attempting to reach out to a server, with no name, to get logs for a task that never ran.



PS: Be careful running processes as the root user.






share|improve this answer













This can happen when the task status was manually changed (likely through the "Mark Success" option) and the task never receives a hostname value on the record.



The webserver is attempting to reach out to a server, with no name, to get logs for a task that never ran.



PS: Be careful running processes as the root user.







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 16 '18 at 1:46









joebjoeb

2,20611519




2,20611519













  • I don't think I changed the task status. Actually, all tasks keep running and never finished. I am trying to find reasons and logs are not available.

    – user2894829
    Nov 16 '18 at 2:47











  • What is the status of the task that you're viewing?

    – joeb
    Nov 19 '18 at 13:45



















  • I don't think I changed the task status. Actually, all tasks keep running and never finished. I am trying to find reasons and logs are not available.

    – user2894829
    Nov 16 '18 at 2:47











  • What is the status of the task that you're viewing?

    – joeb
    Nov 19 '18 at 13:45

















I don't think I changed the task status. Actually, all tasks keep running and never finished. I am trying to find reasons and logs are not available.

– user2894829
Nov 16 '18 at 2:47





I don't think I changed the task status. Actually, all tasks keep running and never finished. I am trying to find reasons and logs are not available.

– user2894829
Nov 16 '18 at 2:47













What is the status of the task that you're viewing?

– joeb
Nov 19 '18 at 13:45





What is the status of the task that you're viewing?

– joeb
Nov 19 '18 at 13:45




















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53315630%2fairflow-how-to-setup-log-directory%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Bressuire

Vorschmack

Quarantine