apostrophecms / apostrophecms/apostrophe

error adding first user admin

Open
#4,146 7 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
JavaScript
Stars
4.6k
Forks
650
Avg merge
19h 21m
Merged PRs (30d)
23

Description

I 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.

Contributor guide

Open the contributing guide

Research direction

Start by checking the MongoDB connection used by `node app @apostrophecms/user:add suman313 admin`, especially `127.0.0.1:27017`, in the Ubuntu 22.04.1 LTS environment. Confirm the project can reach its database before retrying the command; done means the admin user is created without `MongoServerSelectionError`.

Written by the indexing model from the issue text.

Assessment

Tech stack
mongodb, node.js
Domain
backend, databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.