mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[GH-ISSUE #3203] [bug]: table public.User does not exist in the current database #1056
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#1056
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @dreamwhite on GitHub (Jul 20, 2023).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/3203
Is there an existing issue for this?
Current behavior
When I try logging using GitHub (after editing
.envfile properly), I see in the docker console this error:Steps to reproduce
192.168.1.23:3000for instance)Environment
Production
Version
Self-hosted
@dreamwhite commented on GitHub (Jul 20, 2023):
I wanna point out also, that for whatever reason, once I click on
Login with GitHubthe browser redirects me onlocalhost:3170/auth/github/callbackdespite.envsays192.168.1.23@AndrewBastin commented on GitHub (Jul 21, 2023):
@dreamwhite have you ran the migrations as specified on the Self-Hosted documentation ?
See: https://docs.hoppscotch.io/documentation/self-host/install-and-build#installing-dependencies
@dreamwhite commented on GitHub (Jul 21, 2023):
Good morning, yes I did. I wanna remind that I'm using a docker setup so essentially the steps I did were:
git clone repo.env.exampleand save it as.env(mainly added GitHub OAuth credentials)docker compose builddocker-compose up hoppscotch-dbdocker exec -it hoppscotch-db bashandpnpm exec prisma migrate deploydocker compose upIt seems I had old cached images and after rebuilding from scratch I don’t have anymore the issue of the table.
Now the problem seems to be another: when I try to login using my GitHub OAuth credentials it doesn’t actually login on my Hoppscotch instance but rather keeps showing me the Login button on the top right corner
I tested also the smtp but despite the correct credentials, it still fails sending the email (this is a separate issue i’ll take care of later. my goal now is to fix GH authentication)
@dreamwhite commented on GitHub (Jul 21, 2023):
Regarding the login issue, these are the steps I'm following:
http://192.168.1.23:3100(admin page)Continue with GitHubhttp://192.168.1.23:3000where my Hoppscotch instance is availableSame happens if I visit
http://192.168.1.23:3000. Both of them lead to the same result, namely cannot login:Click on GitHub and automatically get redirected to the homepage:
I'm pretty sure the migrations are done, since I see this table in the DB:
@balub commented on GitHub (Jul 24, 2023):
@dreamwhite We use HTTP secure cookies for auth, could you try it over
https? this could help.@dreamwhite commented on GitHub (Jul 24, 2023):
Hi, thanks for the reply. Well, I'm self-hosting my hoppscotch instance on my ODROID N2+ at home. Will this still work?
Also please note that the building using docker is really slow on such hardware, mainly due to
node_modulesdirectory not being shared across the containers. Can this be fixed?@webysther commented on GitHub (Jul 30, 2023):
The build process is not a required step to deploy, only for this project because don't support dinamic .env vars to be passed after build is made, but this image skip build process after the first time: https://hub.docker.com/r/webysther/hoppscotch
@balub commented on GitHub (Jul 30, 2023):
@dreamwhite it seems that you have not run the migration to populate the database with tables. You can follow this to fix the issue you have.
@dreamwhite commented on GitHub (Aug 1, 2023):
Ohhh alright! I'll let you know since I'm experiencing a weird thing with the building process, where the machine hangs probably due to resources allocation...
@AndrewBastin commented on GitHub (Sep 6, 2023):
@dreamwhite closing this issue as the opened objective is fixed. We are refined the build steps in the 2023.8.0 release, please go to Hoppscotch Docs to learn about that.
@dreamwhite commented on GitHub (Sep 24, 2023):
Good evening @AndrewBastin. It seems that on a ODROID N2+ (6 core with 4GBs of RAM) the build process makes the server hang and the only possible way is rebooting it. Is there any workaround like building the app elsewhere (e.g. on my laptop) and then copying it on the server?
@AndrewBastin commented on GitHub (Sep 25, 2023):
@dreamwhite we now provide prebuilt containers in Docker Hub. See: https://hub.docker.com/r/hoppscotch/hoppscotch
@dreamwhite commented on GitHub (Sep 26, 2023):
Good morning @AndrewBastin. Thank you so much! It works flawlessly even when using Traefik as reverse proxy.
Attaching my
docker-compose.ymlfile in case anyone wants to use the same setup: