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
_G write guard #676
Comments
I second this, it's pretty annoying. Though, this isn't from Lapis. As the stack trace tells you, the offenders are LPeg and LuaSocket. You can safely ignore this warning, it won't prevent you from running your code. |
If you just want to silence the warning, you can require those rocks in an |
you can get rid of the lpeg warning by upgrading to the latest vesrion iirc regarding LuaSocket, it probably doesn't have to be a dependency that's loaded when running lapis inside of nginx There are other things that we use that are more tricky to clean up though. |
Anyone know if it is possible to disable this? I find the logs distracting from what I'm actually looking for. (And though this seems like a good idea, Sorry, I know this is not a Lapis-specific question, but I looked around and the only other results are about disabling warnings in tests. I saw a mention of |
They should only occur once unless code cache is disabled. But even in tests, there is no reason to disable code cache (I'm using busted with resty to run tests). If you're running in nginx, ryan's advice is the easiest way to fix this (added benefit is that errors in required modules are found on server startup). The only actual way to disable this is to recompile OpenResty from source and comment out the guard (or use an older version). |
I want to know where is the problem. |
The lpeg warning is still present in the latest version. |
I'm going to close this issue since there not much we can do, see this response from ryanford-dev:
It's safe to ignore these warnings, they will not cause any negative side-effects. Lapis requires these modules early on in the request. The race condition mentioned in the warning would be the result of having a module "double imported" where a newer one replaces over the older one. If this does happen, it will not cause any issues. |
Hello, i am new in LAPIS+openresty 1.15
i am running a test application from openresty installation (not command line)
I have this issue since...., i tracked but no find any global variable declaration
Pls help!!
The text was updated successfully, but these errors were encountered: