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

[BUG] Statistics generator throws a warning in Docker environment #254

Open
3 of 7 tasks
mdziekon opened this issue Sep 17, 2022 · 0 comments
Open
3 of 7 tasks

[BUG] Statistics generator throws a warning in Docker environment #254

mdziekon opened this issue Sep 17, 2022 · 0 comments
Assignees
Labels
bug:confirmed All bug reports that were reproduced, therefore confirmed to exist bug All bug reports

Comments

@mdziekon
Copy link
Owner

Problem description

When working in Docker environment (introduced in #251), the statistics calculation script (admin/autostatbuilder.php) throws a warning related to cache file being inaccessible for write:

 Warning: file_put_contents(../cache/data/last_stats_update.php): failed to open stream: No such file or directory in /var/www/html/admin/autostatbuilder.php on line 1029

The probles does not seem to be fatal, however it most likely affect the Signature generation script (currently broken in Docker environment, see #253).

Engine details

  • Engine version:
  • Custom modifications:
    • Yes
    • No
  • Environment:
    • local
    • testing (inaccessible from the outside)
    • production (accessible from the outside world)
  • Configuration:
    • Game speeds: N/A
    • Debris settings: N/A
    • Any other relevant config entry: N/A

Steps to reproduce

Prerequisites:

  • Random user X exists
  • Logged in as Administrator

Steps to reproduce the behavior:

  1. Go to Admin panel
  2. Calculate statistics (use Recalculate Statistics function)

Expected behavior

  • Statistics are calculated
  • No errors and warnings are being displayed

Actual behavior

  • Statistics are calculated
  • A warnings is thrown

Reproduction environment

Game server environment:

@mdziekon mdziekon added bug:confirmed All bug reports that were reproduced, therefore confirmed to exist bug All bug reports labels Sep 17, 2022
@mdziekon mdziekon self-assigned this Sep 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug:confirmed All bug reports that were reproduced, therefore confirmed to exist bug All bug reports
Projects
None yet
Development

No branches or pull requests

1 participant