OpenSignLabs / OpenSign

🔥 The free & Open Source DocuSign alternative
https://www.opensignlabs.com
GNU Affero General Public License v3.0
3.29k stars 258 forks source link

[Bug]: Opensignserver container exiting after compose up. #284

Open RajGuru878 opened 10 months ago

RajGuru878 commented 10 months ago

Issue Description

After doing compose up, OpenSignServer container exiting with the error: MongoNetworkTimeoutError: connection timed out OpenSignServer-container | at connectionFailureError (/usr/src/app/node_modules/parse-server/node_modules/mongodb/lib/cmap. Can anybody please help me in this.

Expected Behavior

unable to create user

Current Behavior

container exiting

Steps to reproduce

na

Screenshots of the issue(optional)

na

Operating System [e.g. MacOS Sonoma 14.1, Windows 11]

ubuntu 22

What browsers are you seeing the problem on?

No response

What version of OpenSign™ are you seeing this issue on? [e.g. 1.0.6]

latest

What environment are you seeing the problem on?

No response

Please check the boxes that apply to this issue report.

Code of Conduct

nxglabs commented 10 months ago

Try running "make build" instead

RajGuru878 commented 10 months ago

@nxglabs tried make build, but still same issue. trying this from one weak. after this build opensignserver exiting. It is unable to communicating with mongo container.

nxglabs commented 10 months ago

This happens when your OpenSign server is not able to connect with mongodb due to some issue with network settings etc.

RajGuru878 commented 10 months ago

@nxglabs , can u plz explain how should i resolve this .

nxglabs commented 10 months ago

Can you share more details about your setup?

RajGuru878 commented 10 months ago

@nxglabs What can i share?, means error or my env file

nxglabs commented 10 months ago

You are trying to setup in your local machine or AWS or Digital ocean? Your .env? And exact steps you followed.

RajGuru878 commented 10 months ago

@nxglabs i am installing it in local machine ( docker based ) I am attaching my env file here, and i tried this with public ip also. first i cloned repository and then i changed .env.local_dev file as per our requirement and then ran command make build. It automaticall converted .env.local_dev file to .env and made containers up. Screenshot from 2023-12-21 15-38-41 Screenshot from 2023-12-21 15-39-00 Screenshot from 2023-12-21 15-39-08 Screenshot from 2023-12-21 15-39-14

nxglabs commented 10 months ago

You dont need to change anything other than smtp or mailgun parameters in .env.local_dev and running "make build" from the root of the cloned directory. Keep everything else as it is.

RajGuru878 commented 10 months ago

@nxglabs I wanted to host mongo and everything from our host only, not with any UAT server. Soo i mentioned all our host address there.

rishabjasrotia commented 10 months ago

Hello @RajGuru878 The IP added in mongo DB is your localhost?

RajGuru878 commented 10 months ago

@rishabjasrotia Yess. thats my localhost.

rishabjasrotia commented 10 months ago

This was not working in your local ? MONGODB_URI=mongodb://host.docker.internal:27017/OpenSignDB

RajGuru878 commented 10 months ago

@rishabjasrotia No that is not working.

mrinc commented 10 months ago

Try this: MONGODB_URI=mongodb://mongo:27017/OpenSignDB
Docker should auto-route to the mongo container (you can verify the name of the container in the docker compose file)

RajGuru878 commented 10 months ago

@mrinc Tried with mentioned line, same error ( error screenshot is mentioned below ) Screenshot from 2023-12-28 10-58-54 Screenshot from 2023-12-28 10-58-11

creampnx-x commented 10 months ago

hi there, same problem i have meet. This is a bug, and i solved it by making a mongo database named 'OpenSignDB' manually. The main reason cause this bug is the mongo/mongo-init.sh script is not running when mongo start. And you should import the default data manually when mongo server start.

RajGuru878 commented 10 months ago

@creampnx-x Hi, Can yo plz brief about import the default data manually when mongo server start.

creampnx-x commented 10 months ago

When you started your docker(run make build), the mongo server is actually running. So I just

BTW

creampnx-x commented 10 months ago

@RajGuru878 hi bro, I discovered several new ways on it. It may be caused by docker net work.

See it on stackoverflow: https://stackoverflow.com/questions/45257581/parse-mongo-db-can-not-connect-to-server

RajGuru878 commented 10 months ago

@creampnx-x not working, opensign server container exiting again.

Zathiel commented 5 months ago

Hey @RajGuru878

Are you still facing issues with the last release ?

If not i will mark this issue as solved