mirror of
https://github.com/Mintplex-Labs/vector-admin.git
synced 2026-07-25 04:25:23 -04:00
We could not log you in - contact an admin. [002] Failed to authenticate Try Again → #212
Reference in New Issue
Block a user
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 @mascreativelabs on GitHub (Dec 30, 2023).
Hello Everyone,
I hope this message finds you well.
I'm currently facing a challenge with an issue that was previously discussed here.
I tried the solution previously listed
I also tried with hunter2
but it didn't work how did you guys get it to work?
I'm reaching out to inquire if anyone else has encountered a similar problem and, if so, how you managed to overcome it. Any insights or guidance would be greatly appreciated, as I'm keen on understanding the root cause and finding a viable solution.
Thank you for your time and assistance.
@timothycarambat commented on GitHub (Dec 30, 2023):
DATABASE_URLenvironment variable and the connection string is correctroot@vectoradmin.comandpasswordunless otherwise defined on container starthttps://github.com/Mintplex-Labs/vector-admin/blob/6cad8a30a1a89f645e02e0663ccf8832dfe87047/backend/utils/boot/index.js#L51-L52
@mascreativelabs commented on GitHub (Dec 30, 2023):
Where do I set the
DATABASE_URLenvironment variable? Should I add it to the.envfile?What is the expected value for the variable?
@mascreativelabs commented on GitHub (Dec 31, 2023):
Here's my docker-compose.yml:
Here's my .env:
Should I still add DATABASE_URL to the .env file? Wouldn't that be redundant with:
DATABASE_CONNECTION_STRING="postgresql://vectoradminuser:vectoradminpass@vectoradmin-db:5432/vdbms"@timothycarambat commented on GitHub (Dec 31, 2023):
It would be redundant, yes. In any case, you should be able to inspect the users table and see which user exists.
Are you building from source or are you pulling from docker hub? When pulling from docker hub you should be able to boot with only some envs set and as long as the connection string is ok, you are good to go.
@mascreativelabs commented on GitHub (Dec 31, 2023):
Thank you @timothycarambat
image: mintplexlabs/vectoradmin:masterI am seeing nothing worth noting in my logs (no error). I can provide the logs if you need them.
Can you tell me if you saw something wrong with my
docker-compose.ymland.envfiles?@timothycarambat commented on GitHub (Dec 31, 2023):
When you attempt to login can you open the
Networktab in the browser inspector window and confirm the URL that theloginrequest is being sent to. Something tells me that the port remap might be conflicting with the default build for the frontend API interface. Since you bind4950:3001it may still be attempting to send a request to:3001from the frontend@mascreativelabs commented on GitHub (Dec 31, 2023):
Wow!!! that's a great explanation I'm going to try to bind with
3001:3001However, if this solves the problem I'd have to stop anything-llm in other to use vector-admin it's a shame since it's the same company that created both docker images 🤔 ... that would have been great if the two configurations weren't in conflict with each other 😅
@mascreativelabs commented on GitHub (Dec 31, 2023):
I get the same issue after changing the port to
3001:3001Here's the log for
vector-admincontainer after the boot:@mascreativelabs commented on GitHub (Dec 31, 2023):
here's logs from vectoradmin-db (postgresql database) container:
@mascreativelabs commented on GitHub (Jan 1, 2024):
@timothycarambat commented on GitHub (Jan 1, 2024):
so the
Err_CONNECTION_REFUSEDis meaning that the backend does not appear to be reachable by the frontend. If you visithttp://127.0.0.1:3001/api/pingdo you get a 200? You should be able to run the container on any host port, I am just trying to remove as many variables as possible for conflict@JairajGaur commented on GitHub (Jan 2, 2024):
I was also facing the same issue few days back however it got resolved by multiple cleanup of docker images and also we need wait for all BE services up and running. I don't think "Running" status on the docker container means all the service are reachable. I tried to trace the logs but no luck.
@mascreativelabs commented on GitHub (Jan 2, 2024):
hey @JairajGaur what do you mean by "multiple cleanup of docker images"?
@mascreativelabs commented on GitHub (Jan 2, 2024):
@timothycarambat thanks for your response, and happy new year!
when you say visiting
http://127.0.0.1:3001/api/pingfor that test, should I be on the docker container when trying to reach the address? because so far I'm trying via another machine on the same network@timothycarambat commented on GitHub (Jan 3, 2024):
However you would normally use the interface, so in this case
http://<machine.ip>:3001/api/ping.When you shared the screenshot of the frontend sending a request to
http://127.0.0.1:3001/api/loginwere you on another machine totally? Because then it would make sense that http://127.0.0.1:3001 did not work, since the machine you were on is not running VectorAdmin! That would be a critical detail to know. I made the assumption you were running VectorAdmin on the same machine you would access it on.@felixstander commented on GitHub (Jan 7, 2024):
@timothycarambat I'm also facing the same problem. The server is up on a remote machine through the docker image, and i'm able to get back "OK" info after sending a request to http://<machine.ip>:3001/api/ping on my local machine.
I check Network tab in the browser inspector window when attempting to login, and the error is the same as @MAS-CreativeLabs provides.
@timothycarambat commented on GitHub (Jan 8, 2024):
Will mark this as a bug for now, but I think the issue is that the docker image is running on a localmachine and the
VITE_API_BASEis assuming localhost where is could be changed to be relative so the root URL can be assumed from the client side, enabling docker image on remote IPshttps://github.com/Mintplex-Labs/vector-admin/blob/e7659c94476cb3329cb3ade9f5a49cc9915d99d3/frontend/src/utils/constants.ts#L2
@felixstander commented on GitHub (Jan 9, 2024):
@timothycarambat thanks for the reply, how can I change the VITE_API_BASE from the pre-built image?
@felixstander commented on GitHub (Jan 9, 2024):
@timothycarambat you are right. I'm able to log in after changing the VITE_API_BASE when building the docker image myself.
@mascreativelabs commented on GitHub (Jan 9, 2024):
@timothycarambat can we get to a solution that does not involve rebuilding the image each time you update your code? I don't want to fork the repo or rebuild an image just for an IP address. Can you set the address to the hostname of the DB?
@mascreativelabs commented on GitHub (Jan 9, 2024):
Or maybe make it an environmental variable that we could set via the
docker-compose.ymlor.env@mascreativelabs commented on GitHub (Jan 9, 2024):
@felixstander how did you change the
VITE_API_BASEfrom the pre-built image?@felixstander commented on GitHub (Jan 9, 2024):
@MAS-CreativeLabs have no idea, I clone the repo and build the image myself, and change the VITE_API_BAE variable in .env.production file in the frontend folder before building.
@mascreativelabs commented on GitHub (Jan 9, 2024):
@felixstander In the frontend folder I only have
.env.examplecontaining the following lines:is this the file you're referring to? what did you put in the file?
How long did it take to rebuild?
I'm also curious about your thoughts about the workflow do you think it's a viable solution?
I find this workflow to be odd, having to rebuild an image after each commit is hard to maintain in a testing environment much less for production
I think just having a variable in the .env with the prebuilt image would help users tremendously
@timothycarambat commented on GitHub (Jan 9, 2024):
Just updated the image and build, and the VITE_API_BASE to now be relative. When the build is complete and is published you should be able to pull in the new image and it should function on local and remote IPs as the VITE_API_BASE will be relative.
https://github.com/Mintplex-Labs/vector-admin/actions/runs/7470209197/job/20328530326
@mascreativelabs commented on GitHub (Jan 11, 2024):
@timothycarambat Thank you it worked! ✅
@mascreativelabs commented on GitHub (Jan 11, 2024):
Now the new issue is the following:
I'm getting
fetch FailedThe URL my chroma instance is reachable at is
http://10.255.255.254:5959I try the following:
http://10.255.255.254:5959❌http://10.255.255.254:5959/api/v1❌http://10.255.255.254:5959/api/v1/❌Idon't think it my chromadb install that's at fault here because it works with flowise and anything-llm.
http://10.255.255.254:5959/api/v1/heartbeatreturns the following:http://10.255.255.254:5959/api/v1/collectionsreturns the following:@mascreativelabs commented on GitHub (Jan 12, 2024):
Never mind, I fix it. oddly it works behind my reverse proxy with https 😅