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

ChatOps Log Does Not Exist On CentOS7/Ubuntu16 #300

Open
DoriftoShoes opened this issue May 23, 2016 · 8 comments
Open

ChatOps Log Does Not Exist On CentOS7/Ubuntu16 #300

DoriftoShoes opened this issue May 23, 2016 · 8 comments

Comments

@DoriftoShoes
Copy link

DoriftoShoes commented May 23, 2016

On OS CentOS7/Ubuntu16 with systemd init the chatops logs are ending up in /var/log/messages and /var/log/st2/st2chatops.log does not exist.

@humblearner
Copy link
Contributor

humblearner commented May 23, 2016

[vagrant@rhel7 ~]$ sh self-check.sh

Starting the Nine-Step Hubot Self-Check Program
===============================================

Step 1: Hubot is running.
Step 2: Hubot-stackstorm is installed (0.4.1).
Step 3: StackStorm has aliases that are registered and enabled.
Step 4: Chatops.notify rule is present.
Step 5: Chatops.notify rule is enabled.
Step 6: Hubot responds to the "help" command.
Step 7: Hubot loads commands from StackStorm.
cat: /var/log/st2/st2chatops.log: No such file or directory
Step 8: chatops.post_message execution succeeded.
Step 9 failed: chatops.post_message hasn't been received.

    Try to check both Hubot and StackStorm logs for more information.

===============================================

Uh oh! Something went wrong!

Please perform the steps outlined in the error message above
and then re-launch this script.

If you're still having trouble, gist the log files
and come see us in our Slack community:
https://stackstorm.com/community-signup

You can access Hubot logs at /var/log/st2/st2chatops.log.

Other StackStorm logs are also stored in /var/log/st2/.

[vagrant@rhel7 ~]$ /var/log/st2/st2chatops.log
-bash: /var/log/st2/st2chatops.log: No such file or directory
[vagrant@rhel7 ~]$

@lakshmi-kannan
Copy link
Contributor

Thanks @humblearner. Looks like there is an actual bug in centos 7.

@lakshmi-kannan
Copy link
Contributor

It looks like we get logging on centos7 for python processes because of explicit app logging. Let me confirm with @enykeev.

@lakshmi-kannan
Copy link
Contributor

lakshmi-kannan commented May 24, 2016

I am right and this is a blocker to enable app level logging for hubot. hubotio/hubot#1164

@arm4b
Copy link
Member

arm4b commented May 21, 2017

At the moment, for systemd (CentOS7, Ubuntu16) the only way is:

journalctl --unit=st2chatops

@arm4b arm4b changed the title ChatOps Log Does Not Exist On CentOS 7 ChatOps Log Does Not Exist On CentOS7/Ubuntu16 May 31, 2017
@blag
Copy link
Contributor

blag commented Jun 29, 2018

Should be closed with c590deffdc11a325352c0c04a4d2635f9e3325c4, but I've only tested on Ubuntu 16.04 so far.

@arm4b
Copy link
Member

arm4b commented Jun 29, 2018

@blag The change mentioned (which is BTW a direct push to master and not a PR 👎 ) just brings workarounds for self-check script, but doesn't fix the root cause.

Eg. ChatOps Log Does Not Exist On CentOS7/Ubuntu16 is still an issue.

@LindsayHill
Copy link
Contributor

Newer systemd versions allow specifying a log file, but this won't work for Ubuntu16 or RHEL 7.

There are some ugly workarounds, but they're ugly. No obvious good solution here.

@arm4b arm4b removed the SUPPORT label Oct 5, 2021
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

6 participants