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

Poller errors occur if a file exists that the website cannot read #2575

Closed
netniV opened this issue Mar 26, 2019 · 0 comments
Closed

Poller errors occur if a file exists that the website cannot read #2575

netniV opened this issue Mar 26, 2019 · 0 comments
Labels
bug Undesired behaviour poller Data Collection related issue resolved A fixed issue
Milestone

Comments

@netniV
Copy link
Member

netniV commented Mar 26, 2019

Describe the bug
If a file exists that the website cannot read, poller errors can occur.

2019/03/26 21:42:02 - CMDPHP PHP ERROR WARNING Backtrace: (/poller.php[187]:update_resource_cache(), /lib/poller.php[611]:cache_in_path(), /lib/poller.php[728]:md5sum_path(), /lib/poller.php[1016]:md5_file(), CactiErrorHandler())
2019/03/26 21:42:02 - ERROR PHP WARNING: md5_file(/usr/share/cacti/site/nano.save.1): failed to open stream: Permission denied in file: /usr/share/cacti/site/lib/poller.php on line: 1016
2019/03/26 21:42:02 - CMDPHP PHP ERROR WARNING Backtrace: (/poller.php[187]:update_resource_cache(), /lib/poller.php[611]:cache_in_path(), /lib/poller.php[728]:md5sum_path(), /lib/poller.php[1016]:md5_file(), CactiErrorHandler())
2019/03/26 21:42:02 - ERROR PHP WARNING: md5_file(/usr/share/cacti/site/nano.save): failed to open stream: Permission denied in file: /usr/share/cacti/site/lib/poller.php on line: 1016

To Reproduce
Steps to reproduce the behavior:

  1. Go to website route folder
  2. Create a file owned by another user (eg root)
  3. See error

Expected behavior
If a file is unreadable due to permissions, a warning should be logged but processing should continue.

@netniV netniV added bug Undesired behaviour poller Data Collection related issue labels Mar 26, 2019
cigamit added a commit that referenced this issue Mar 27, 2019
Poller errors occur if a file exists that the website cannot read
@cigamit cigamit added the resolved A fixed issue label Mar 27, 2019
@cigamit cigamit added this to the v1.2.3 milestone Mar 27, 2019
@cigamit cigamit closed this as completed Mar 27, 2019
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Undesired behaviour poller Data Collection related issue resolved A fixed issue
Projects
None yet
Development

No branches or pull requests

2 participants