You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I launched the docker-compose file with only MongoDB and Caddy. I ran npm install for both OpenSign and OpenSignServer. However, when starting the server using npm start, I encountered the following issue:
(node:181900) NOTE: We are formalizing our plans to enter AWS SDK for JavaScript (v2) into maintenance mode in 2023.
Please migrate your code to use AWS SDK for JavaScript (v3).
For more information, check the migration guide at https://a.co/7PzMCcy
(Use node --trace-warnings ... to show where the warning was created)
(node:181900) NOTE: The AWS SDK for JavaScript (v2) is in maintenance mode.
Please provide valid SMTP credentials
opensign-server running on port 8080.
WARNING: Unable to connect to 'http://localhost:8080/app'.
Cloud code and push notifications may be unavailable!
Error: Command failed: APPLICATION_ID=opensign SERVER_URL=http://localhost:8080/app MASTER_KEY=XnAadwKxxByMr npx parse-dbtool migrate
ParseError: XMLHttpRequest failed: "Unable to connect to the Parse API"
at handleError (/.../Parse/lib/node/RESTController.js:296:15)
Environment Details:
Below is my .env file configuration:
A 12 character long random app identifier. The value of this should be same as REACT_APP_APPID which is a variable used by Frontend React App.
APP_ID=opensign
Name of the app. It will be visible in the verification emails sent out.
appName=open_sign_server
A 12 character long random secret key that allows access to all the data. It is used in Parse dashboard config to view all the data in the database.
MASTER_KEY=XnAadwKxxByMr
Mongodb URI to connect to
MONGODB_URI=mongodb://localhost:27018/OpenSignDB
Path on which APIs should be mounted. Do not change this. This variable shall be removed & value hardcoded in the source code in coming versions.
PARSE_MOUNT=/app
Set it to the URL from where APIs will be accessible to the NodeJS functions, for local development it should be localhost:3000/api/app (use your local port number instead)
Digital ocean spaces access key ID or AWS s3 Access key ID for uploading the docs
DO_ACCESS_KEY_ID=
Digital ocean spaces secret access key or AWS s3 secret access key for uploading the docs
DO_SECRET_ACCESS_KEY=
Digital ocean spaces region or AWS s3 region
DO_REGION=us-west
local storage
USE_LOCAL=true
Email mailgun or set SMTP_ENABLE true to use SMTP config (The app will not initialize if any of these 3 variables are not set) *********************************************************************************************************************
MAILGUN_API_KEY=
MAILGUN_DOMAIN=mail.yourdomain.com
MAILGUN_SENDER=[email protected]
SMTP_ENABLE=true
SMTP_HOST=smtp.yourhost.com
SMTP_PORT=443
SMTP_USER_EMAIL=[email protected]
SMTP_PASS=password # if your password includes spaces then write password in single quotes ('asdf pasd asdf bgds').
Base64 encoded PFX or p12 document signing certificate file *********************************************************************************************************************
Issue Description
I launched the docker-compose file with only MongoDB and Caddy. I ran npm install for both OpenSign and OpenSignServer. However, when starting the server using npm start, I encountered the following issue:
[homeserver@server OpenSignServer]$ npm start
(node:181900) NOTE: We are formalizing our plans to enter AWS SDK for JavaScript (v2) into maintenance mode in 2023.
Please migrate your code to use AWS SDK for JavaScript (v3).
For more information, check the migration guide at https://a.co/7PzMCcy
(Use
node --trace-warnings ...
to show where the warning was created)(node:181900) NOTE: The AWS SDK for JavaScript (v2) is in maintenance mode.
WARNING: Unable to connect to 'http://localhost:8080/app'.
Cloud code and push notifications may be unavailable!
Error: Command failed: APPLICATION_ID=opensign SERVER_URL=http://localhost:8080/app MASTER_KEY=XnAadwKxxByMr npx parse-dbtool migrate
ParseError: XMLHttpRequest failed: "Unable to connect to the Parse API"
at handleError (/.../Parse/lib/node/RESTController.js:296:15)
Environment Details:
Below is my .env file configuration:
This is my .env :
PUBLIC_URL=http://server.sv:3000
Set it to true if you want to generate the Sourcemap for debugging
GENERATE_SOURCEMAP=false
Set it to the URL from where APIs will be accessible, for local development it should be localhost:3000/api/app (use your local port number instead)
REACT_APP_SERVERURL=http://server.sv:3001/api/app
A 12 character long random app identifier. The value of this should be same as APP_ID which is a variable used by backend API.
REACT_APP_APPID=opensign
Backend ExpressJS config ****************************************************************************************************************************************************************************************
A 12 character long random app identifier. The value of this should be same as REACT_APP_APPID which is a variable used by Frontend React App.
APP_ID=opensign
Name of the app. It will be visible in the verification emails sent out.
appName=open_sign_server
A 12 character long random secret key that allows access to all the data. It is used in Parse dashboard config to view all the data in the database.
MASTER_KEY=XnAadwKxxByMr
Mongodb URI to connect to
MONGODB_URI=mongodb://localhost:27018/OpenSignDB
Path on which APIs should be mounted. Do not change this. This variable shall be removed & value hardcoded in the source code in coming versions.
PARSE_MOUNT=/app
Set it to the URL from where APIs will be accessible to the NodeJS functions, for local development it should be localhost:3000/api/app (use your local port number instead)
SERVER_URL=http://localhost:3001/api/app
Storage config ************************************************************************************************************************************************************************************************
Digital ocean space name or AWS S3 bucket name for uploading documents
DO_SPACE=DOSPACENAME
Digital ocean spaces endpoint or AWS S3 endpoint for uploading documents
DO_ENDPOINT=ams3.digitaloceanspaces.com
Digital ocean baseurl or AWS S3 base URL
DO_BASEURL=http://DOSPACENAME.ams3.digitaloceanspaces.com
Digital ocean spaces access key ID or AWS s3 Access key ID for uploading the docs
DO_ACCESS_KEY_ID=
Digital ocean spaces secret access key or AWS s3 secret access key for uploading the docs
DO_SECRET_ACCESS_KEY=
Digital ocean spaces region or AWS s3 region
DO_REGION=us-west
local storage
USE_LOCAL=true
Email mailgun or set SMTP_ENABLE true to use SMTP config (The app will not initialize if any of these 3 variables are not set) *********************************************************************************************************************
MAILGUN_API_KEY=
MAILGUN_DOMAIN=mail.yourdomain.com
MAILGUN_SENDER=[email protected]
SMTP_ENABLE=true
SMTP_HOST=smtp.yourhost.com
SMTP_PORT=443
SMTP_USER_EMAIL=[email protected]
SMTP_PASS=password # if your password includes spaces then write password in single quotes ('asdf pasd asdf bgds').
Base64 encoded PFX or p12 document signing certificate file *********************************************************************************************************************
PFX_BASE64='MIIKCQIBAzCCCc8GCSqGSIb3DQEHAaCCCcAEggm8MIIJuDCCBG8GCSqGSIb3DQEH
BqCCBGAwggRcAgEAMIIEVQYJKoZIhvcNAQcBMBwGCiqGSIb3DQEMAQYwDgQIpumu
bFabBWACAggAgIIEKDqHS7Icd5MzIBk1dBokGK2s+5a2fA4308WA1QzEWmczqVYI
z6lYmW8qsiZIw4PFkRzdIx1+zCmP8jgWiiqh5RKnbHYmh1JPNyx9SqmUDILDXmjg
Kx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ass pharse of above PFX or p12 document
PASS_PHRASE=opensign
Thank you for your help!
Expected Behavior
No response
Current Behavior
No response
Steps to reproduce
No response
Screenshots of the issue(optional)
No response
Operating System [e.g. MacOS Sonoma 14.1, Windows 11]
No response
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]
2.6.0
What environment are you seeing the problem on?
No response
Please check the boxes that apply to this issue report.
Code of Conduct
The text was updated successfully, but these errors were encountered: