-
Notifications
You must be signed in to change notification settings - Fork 595
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
Comments
It looks like your MongoDB server isn't running. Therefore Apostrophe can't save the admin to the database. If you try: |
@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. |
I get back this: Actually when I run
Activating: MongoDB Server 5.0.17, MongoDB Database Tools 100.7.0 Installation to /home/suman313/.local/bin complete!` Is this an issue? |
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. |
Make sure that you are doing the |
OK, so you are using WSL, which also does not use systemd. This is why
Bob's suggested command did not work for you.
Our developer guide for Windows recommends using the "m" utility to set up
mongod and then manually start it and leave it running for Apostrophe to
talk to while you are working. Did you do that as described here?
https://v3.docs.apostrophecms.org/cookbook/windows-development.html
There are other ways to install and start up mongodb, we can help you most
easily if you follow the path we've given here, but the important thing is
that mongodb must be running in order for Apostrophe to talk to it. Just
like firing up mysql for Wordpress to talk to.
…On Mon, May 1, 2023 at 2:50 PM Robert Means ***@***.***> wrote:
Make sure that you are doing the m install and running the mongod command
from within wsl.
—
Reply to this email directly, view it on GitHub
<#4146 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAH27IE3RXU2QPXEY6KSP3XEAAWXANCNFSM6AAAAAAXQKJBBQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
--
THOMAS BOUTELL | CHIEF TECHNOLOGY OFFICER
APOSTROPHECMS | apostrophecms.com | he/him/his
|
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.
The text was updated successfully, but these errors were encountered: