[GH-ISSUE #34] RateLimit appears not to be working #24

Closed
opened 2026-02-28 00:40:12 +03:00 by kerem · 2 comments
Owner

Originally created by @ghost on GitHub (Dec 9, 2015).
Original GitHub issue: https://github.com/telephone/LookingGlass/issues/34

I have LG installed on Ubuntu 14.04, Nginx and using PHP FPM.

All is working apart from the rate limiting does not seem to take effect. The SQL lite database does not appear to be filling with data. No errors are reported in the error log.

ii php5-common 5.5.9+dfsg-1ubuntu4.14 amd64 Common files for packages built from the php5 source
ii php5-fpm 5.5.9+dfsg-1ubuntu4.14 amd64 server-side, HTML-embedded scripting language (FPM-CGI binary)
ii php5-json 1.3.2-2build1 amd64 JSON module for php5
ii php5-mysql 5.5.9+dfsg-1ubuntu4.14 amd64 MySQL module for php5
ii php5-sqlite 5.5.9+dfsg-1ubuntu4.14 amd64 SQLite module for php5

Originally created by @ghost on GitHub (Dec 9, 2015). Original GitHub issue: https://github.com/telephone/LookingGlass/issues/34 I have LG installed on Ubuntu 14.04, Nginx and using PHP FPM. All is working apart from the rate limiting does not seem to take effect. The SQL lite database does not appear to be filling with data. No errors are reported in the error log. ii php5-common 5.5.9+dfsg-1ubuntu4.14 amd64 Common files for packages built from the php5 source ii php5-fpm 5.5.9+dfsg-1ubuntu4.14 amd64 server-side, HTML-embedded scripting language (FPM-CGI binary) ii php5-json 1.3.2-2build1 amd64 JSON module for php5 ii php5-mysql 5.5.9+dfsg-1ubuntu4.14 amd64 MySQL module for php5 ii php5-sqlite 5.5.9+dfsg-1ubuntu4.14 amd64 SQLite module for php5
kerem 2026-02-28 00:40:12 +03:00
  • closed this issue
  • added the
    v1
    label
Author
Owner

@telephone commented on GitHub (Dec 11, 2015):

I just tested locally on a new install (PHP 5.6) and the rate limit does work. My guess is your web server does not have permission to write to the SQLite file (if your SQLite has no data).

The configure script changes the owner of ratelimit.db to ensure it's writeable. If this step failed, then you'll need to do this manually.

<!-- gh-comment-id:163837801 --> @telephone commented on GitHub (Dec 11, 2015): I just tested locally on a new install (PHP 5.6) and the rate limit does work. My guess is your web server does not have permission to write to the SQLite file (if your SQLite has no data). The configure script changes the owner of `ratelimit.db` to ensure it's writeable. If this step failed, then you'll need to do this manually.
Author
Owner

@ghost commented on GitHub (Dec 11, 2015):

Thanks for replying.

Nginx and FPM run as www-data, which the SQLite DB is owned and writeable by. I will enabled debug logging on both and do some more tests. The issue clearly is with the server, but if you can think of anything else to try I would appreciate it.

Thanks again.

<!-- gh-comment-id:163890685 --> @ghost commented on GitHub (Dec 11, 2015): Thanks for replying. Nginx and FPM run as www-data, which the SQLite DB is owned and writeable by. I will enabled debug logging on both and do some more tests. The issue clearly is with the server, but if you can think of anything else to try I would appreciate it. Thanks again.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/LookingGlass#24
No description provided.