openforis / arena

http://www.openforis.org
MIT License
15 stars 5 forks source link

Server not starting at 9090 #3151

Open hillsonghimire opened 10 months ago

hillsonghimire commented 10 months ago

I've followed the installation doc. The RStudio server is already running at the port 8787 and database is running at 5444. During docker run the table are migrated to the database, so there is no issue as I see in the database configuration. I've updated all the env variables given below in * or within <>.

The issue is tricky because I do not see any build errors, but the docker container is already terminated. image

Also leaving FILE_STORAGE_AWS_S3_BUCKET_REGION= empty, give region not set error.

Here is my environment config:


---------------------------------------------------------------------------
# Default web server port
ARENA_PORT=9090

# DB
## specify the connection parameters as a URL in the format
## postgres://user:password@host:port/database
# DATABASE_URL=postgres://arena:arena@localhost:5444/arena
## or one by one
PGHOST=20X.15X.XX.XX
PGPORT=5444
PGDATABASE=arena
PGUSER=arena
PGPASSWORD=arena

# temporary uploaded files folder
TEMP_FOLDER=/home/hydro/Desktop/openforis/arena/upload

# FILES STORAGE
## (if both FILE_STORAGE_PATH and FILE_STORAGE_AWS_S3_BUCKET_NAME are not specified, files will be stored in DB)

## FILES STORAGE (file system)
### path of a folder in the file system used to store files
FILE_STORAGE_PATH=/home/hydro/Desktop/openforis/arena/fileStore/

## FILES STORAGE (AWS S3 Bucket)
FILE_STORAGE_AWS_S3_BUCKET_NAME=
FILE_STORAGE_AWS_S3_BUCKET_REGION=<ap-southeast-1>
FILE_STORAGE_AWS_ACCESS_KEY=
FILE_STORAGE_AWS_SECRET_ACCESS_KEY=

# Email service (Arena uses Sendgrid to send emails)
SENDGRID_API_KEY= <**********************************************************>

# Analysis
ANALYSIS_OUTPUT_DIR=/home/hydro/Desktop/openforis/arena/analysisOut

# Server
## HTTP Session
## Secret used to sign the session ID cookie 
SESSION_ID_COOKIE_SECRET=<********************************************************>

## Set to true if http requests must be forwarded to https
USE_HTTPS=false

# RStudio Server
RSTUDIO_DOWNLOAD_SERVER_URL=
RSTUDIO_SERVER_URL=<http://20X.15X.XX.XX:8787>
RSTUDIO_PROXY_SERVER_URL=
RSTUDIO_POOL_SERVER_URL=
RSTUDIO_POOL_SERVICE_KEY=

# reCAPTCHA v2 keys (get it from https://www.google.com/recaptcha/about/)
RECAPTCHA_SITE_KEY=<********************************************************>
RECAPTCHA_SECRET_KEY=<**********************************************************>

# MAP
## Planet Lab Maps API key (get it from https://www.planet.com/markets/mapping/)
MAP_API_KEY_PLANET=

# System Admin user email address
# used to create default system admin user when DB is empty
# and to send emails to the users
ADMIN_EMAIL=<mail@email.com>
# Admin user password: used only when default system admin user is created the first time
# it MUST BE DELETED after the first startup
ADMIN_PASSWORD=<myPassword>
---------------------------------------------------------------------------
SteRiccio commented 9 months ago

Dear user, if you don't have any errors in the commad line, you should be able to access Arena in your browser at the address http://localhost:9090. Do you have any errors in the browser or in the command line after trying to access that address? Also, please comment out all the environment variables starting with FILE_STORAGE_AWS in your .env file if you are not using the AWS S3 Bucket files storage way (we have updated the documentation) and you can also comment out FILE_STORAGE_PATH if you prefer to store the uploaded files directly into the database. Let us know, many thanks.