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

Specifying backend=pgmoon now required? #768

Closed
cycomachead opened this issue May 13, 2023 · 1 comment
Closed

Specifying backend=pgmoon now required? #768

cycomachead opened this issue May 13, 2023 · 1 comment

Comments

@cycomachead
Copy link
Contributor

Sometime with 1.13.x or 1.14, it seems I now need to specify backend = "pgmoon" when using a postgres connection. In development, I think thing were fine but in our staging environment we saw the following error.

The update successfully completed, but it seems like the error was in reporting the success/failure of the action.

Anyway, I'd just like to confirm if this is the expected behavior or if there's some other configuration I should be making?

/usr/local/share/lua/5.1/lapis/application.lua:438: /usr/local/share/lua/5.1/lapis/db/base_model.lua:322: attempt to index local 'res' (a boolean value)
stack traceback:
	/usr/local/share/lua/5.1/lapis/db/base_model.lua: in function 'update'
	./controllers/user.lua:591: in function <./controllers/user.lua:588>


stack traceback:
	[C]: in function 'error'
	/usr/local/share/lua/5.1/lapis/application.lua:438: in function 'handler'
	/usr/local/share/lua/5.1/lapis/application.lua:184: in function 'resolve'
	/usr/local/share/lua/5.1/lapis/application.lua:215: in function </usr/local/share/lua/5.1/lapis/application.lua:213>
	[C]: in function 'xpcall'
	/usr/local/share/lua/5.1/lapis/application.lua:213: in function 'dispatch'
	/usr/local/share/lua/5.1/lapis/nginx.lua:231: in function 'serve'
	content_by_lua(locations.conf:34):2: in main chunk
``
@cycomachead
Copy link
Contributor Author

Oh, I made too many changes at once! It seems like the server didn't have the most recent pgmoon installed, which makes sense.

All is well. :)

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

1 participant