-
Notifications
You must be signed in to change notification settings - Fork 364
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
EACCES error when launching Mongoclient #384
Comments
Hello @dainbrump mongoclient needs a mongodb instance to run, it uses it for internal connections and settings. You can optionally set Apart from that if you can use sudo or give permissions for the logged in user, you may successfully open mongoclient. Let me know if that works for you. |
Setting MONGO_URL in the environment does nothing. It still tries to launch the relative instance of mongod, the one the app ships with. Using sudo will make no difference. I have tried setting the MONGO_URL with and without "mongodb://"
I have already installed Mongo on this machine because I am using it for dev work. Why doesn't the app check for already running mongod processes and prompt the user for connection settings when it finds one or start its own when one doesn't exist? |
@dainbrump it wouldn't be safe to use someone's MongoDB process and create a database, collections on it without permission. Actually, it should start a MongoDB process as soon as it finds a free port. I'll do next release soon, will try to find a solution for you as well. Until then I recommend you to use Docker build which is being shipped with the most recent code. It's safe and best way to use nosqlclient |
I agree with @dainbrump .... setting the env var does nothing for me as well, and I'm not terribly interested in standing up a Docker env just to run this great tool; that's kind of the point of electron. On top of that, I'm getting the libssl1.0.0 error as well. |
Apologies for resurrecting this, but if anyone finds this, I want them to know my solution to this problem. I ran into the problem of Nosqlclient not starting up after not using it for a while and upgrading a bunch of system packages. I got the following error:
After reading in this and #434 about using That improved things a bit more as I was starting to see some more messages in the console(running
This lead me on a wild goose chase of figuring out how to upgrade things and since I don't usually use mongodb, I couldn't make it work. Finally my attention was caught by this line in the debug output:
And I figured out that the problem was that Nosqlclient has it's own database(for storing things like connections and whatever other settings it has) and during boot it was perhaps trying to upgrade it's schema to the latest version or something 🤔 So I just deleted the Hope that helps! Also @rsercano thank you for creating Nosqlclient! It's awesome! 🙂 |
Thanks a lot @nikolov-tmw thanks for both your help and for appreciation, that kind of attitude is the only thing that really keep this project alive :) |
Opening mongoclient and I get
Expected Behavior
I expect the app would open and allow me to do something, anything.
Current Behavior
It just hangs at the "Please wait" screen.
Possible Solution
Looking at line 228 in the index.js, it appears the app is trying to spawn an instance of Mongo. I already have mongo installed and running as a service on this machine. Is there a reason is tries to spawn Mongo? Is there a way to have it ignore this step if Mongo is already running on the machine?
Your Environment
The text was updated successfully, but these errors were encountered: