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

Mysql-Docker on Heroku fails with chown:: invalid user:'supertokens:supertokens' #354

Closed
ambrt opened this issue Jan 3, 2022 · 4 comments
Labels
bug Something isn't working

Comments

@ambrt
Copy link

ambrt commented Jan 3, 2022

🐛 Bug Report

I cloned latest mysql repo and followed this https://devcenter.heroku.com/articles/container-registry-and-runtime instructions to deploy it to Heroku.
But then when i try to run any command inside an app i get:
chown: invalid user: 'supertokens:supertokens' (even for ls)
Same is for auto start of the app itself.Log is below.

Useful informations

2022-01-03T14:55:09.605040+00:00 heroku[web.1]: State changed from crashed to starting

2022-01-03T14:55:13.865006+00:00 heroku[web.1]: Starting process with command supertokens start

2022-01-03T14:55:14.964476+00:00 app[web.1]: chown: invalid user: 'supertokens:supertokens'

2022-01-03T14:55:15.097222+00:00 heroku[web.1]: Process exited with status 1

2022-01-03T14:55:15.168437+00:00 heroku[web.1]: State changed from starting to crashed

@ambrt ambrt added the bug Something isn't working label Jan 3, 2022
@rishabhpoddar
Copy link
Contributor

Hey! Based on the error above, it seems to be an issue with how your Heroku instance is configured (since even ls fails). Since this has nothing to do with SuperTokens, I am closing this issue. Instead, I have created this issue: supertokens/docs#187 which we will close once we add the relevant docs.

In the meantime though, you can use our managed service to deploy an instance of SuperTokens automatically.

@ambrt
Copy link
Author

ambrt commented Jan 4, 2022

I digged a little and found that chown in docker-entrypoint.sh is causing problems.
I commented it out and added heroku port (required by heroku).

https://github.com/ambrt/supertokens-docker-mysql/blob/daf676974adcc14f95ff008efcb25b002374a349/docker-entrypoint.sh#L33-L40

It works now but I'm not sure if it will work later since heroku filesystem is ephemeral, so maybe chown will be needed.

@rishabhpoddar
Copy link
Contributor

I'll reopen this issue since it is related to SuperTokens. We will fix the docker image to work on heroku.

@rishabhpoddar
Copy link
Contributor

Closing this issue due to inactivity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants