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

error adding first user admin #4146

Open
suman313 opened this issue Apr 29, 2023 · 7 comments
Open

error adding first user admin #4146

suman313 opened this issue Apr 29, 2023 · 7 comments
Labels

Comments

@suman313
Copy link

I am use Ubuntu 22.04.1 LTS.
After following all the instruction I am getting this error while creating an admin-level user when I run this command:
node app @apostrophecms/user:add suman313 admin

the error:
suman313@DESKTOP-J22AUU3:/mnt/d/gitHubProjects/apostropheCMS/apos-app$ node app @apostrophecms/user:add suman313 admin MongoServerSelectionError: connect ECONNREFUSED 127.0.0.1:27017 at Timeout._onTimeout (/mnt/d/gitHubProjects/apostropheCMS/apos-app/node_modules/mongodb/lib/core/sdam/topology.js:438:30) at listOnTimeout (node:internal/timers:559:17) at processTimers (node:internal/timers:502:7) { reason: TopologyDescription { type: 'Single', setName: null, maxSetVersion: null, maxElectionId: null, servers: Map(1) { '127.0.0.1:27017' => [ServerDescription] }, stale: false, compatible: true, compatibilityError: null, logicalSessionTimeoutMinutes: null, heartbeatFrequencyMS: 10000, localThresholdMS: 15, commonWireVersion: null } }

Can anyone tell me what is wrong in this. The installation of this project is very complex. Takes so much time.

@BoDonkey
Copy link
Contributor

It looks like your MongoDB server isn't running. Therefore Apostrophe can't save the admin to the database. If you try:
sudo systemctl status mongod
what do you get back?

@probiruk
Copy link

@suman313 Yeah it looks the issue you are facing is timeout error when apostrophe trying to connect to mongodb server. Therefore make sure mongodb server is running and credentials are correct.

@suman313
Copy link
Author

suman313 commented May 1, 2023

It looks like your MongoDB server isn't running. Therefore Apostrophe can't save the admin to the database. If you try: sudo systemctl status mongod what do you get back?

I get back this:
System has not been booted with systemd as init system (PID 1). Can't operate. Failed to connect to bus: Host is down

Actually when I run m 5.0,
I get this:
`mongod: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No such file or directory
mongod: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No such file or directory

Checking for stable release of MongoDB 5.0

Activating: MongoDB Server 5.0.17, MongoDB Database Tools 100.7.0

Installation to /home/suman313/.local/bin complete!`

Is this an issue?

@boutell
Copy link
Member

boutell commented May 1, 2023 via email

@suman313
Copy link
Author

suman313 commented May 1, 2023

Based on that I think you might be trying to run this in a docker container without standing up a mongodb server for it to talk to as well.

On Mon, May 1, 2023 at 2:34 AM Suman Modak @.> wrote: It looks like your MongoDB server isn't running. Therefore Apostrophe can't save the admin to the database. If you try: sudo systemctl status mongod what do you get back? I get back this: System has not been booted with systemd as init system (PID 1). Can't operate. Failed to connect to bus: Host is down — Reply to this email directly, view it on GitHub <#4146 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAH27I247LOKYCCCBLGW2DXD5KPBANCNFSM6AAAAAAXQKJBBQ . You are receiving this because you are subscribed to this thread.Message ID: @.>
-- THOMAS BOUTELL | CHIEF TECHNOLOGY OFFICER APOSTROPHECMS | apostrophecms.com | he/him/his

Thanks a lot for your reply. But I think this is not an issue. I am inside Ubuntu and not in a docker container.
image
I have followed every step as it is from the documentation. I will try to do the same again and update here my progress. Thank you.

@BoDonkey
Copy link
Contributor

BoDonkey commented May 1, 2023

Make sure that you are doing the m install and running the mongod command from within wsl.

@boutell
Copy link
Member

boutell commented May 1, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants