Skip to content
This repository has been archived by the owner on Dec 22, 2023. It is now read-only.

on linux, restheartd.conf is not picking config file. #6

Open
genxlogics opened this issue Dec 14, 2016 · 1 comment
Open

on linux, restheartd.conf is not picking config file. #6

genxlogics opened this issue Dec 14, 2016 · 1 comment

Comments

@genxlogics
Copy link

genxlogics commented Dec 14, 2016

hi @ujibang ,
i am using restheart2.0.0 on linux and running it as forked process. i configured the restheartd.conf to point to my restheart.yml file which includes

https-listener: false
https-host: 0.0.0.0
https-port: 444

http-listener: true
http-host: 0.0.0.0
http-port: 8081

now first thing is it's not picking my defined log file. its only logging in /tmp/restheart.log

when i see that file it shows as. if you notice its only taking the default configuration and not using my config file specified in restheartd.conf

so my security/ports/ or anything are not working as expected.

16:37:37.216 [main] INFO org.restheart.Bootstrapper - Starting RESTHeart instance default
16:37:37.216 [main] INFO org.restheart.Bootstrapper - version 2.0.2
16:37:37.218 [main] INFO org.restheart.Bootstrapper - Logging to file /tmp/restheart.log with level INFO
16:37:37.405 [main] INFO org.restheart.Bootstrapper - MongoDB connection pool initialized
16:37:37.405 [main] INFO org.restheart.Bootstrapper - MongoDB version 3.4.0
16:37:37.405 [main] WARN org.restheart.Bootstrapper - ***** No Identity Manager specified. Authentication disabled.
16:37:37.405 [main] WARN org.restheart.Bootstrapper - ***** No access manager specified. users can do anything.
16:37:37.405 [main] INFO org.restheart.Bootstrapper - Token based authentication enabled with token TTL 15 minutes

**16:37:37.583 [main] INFO org.restheart.Bootstrapper - HTTPS listener bound at 0.0.0.0:4443

16:37:37.583 [main] INFO org.restheart.Bootstrapper - HTTP listener bound at 0.0.0.0:8080**
16:37:37.584 [main] INFO org.restheart.Bootstrapper - Local cache for db and collection properties enabled with TTL 1000 msecs
16:37:37.584 [main] INFO org.restheart.Bootstrapper - Local cache for schema stores not enabled
16:37:37.789 [main] INFO org.restheart.Bootstrapper - URL / bound to MongoDB resource *
16:37:37.877 [main] INFO org.restheart.Bootstrapper - Embedded static resources browser extracted in /tmp/restheart-7235751717071695347
16:37:37.896 [main] INFO org.restheart.Bootstrapper - URL /browser bound to static resources /tmp/restheart-7235751717071695347. Access Manager: false
16:37:38.042 [main] INFO org.restheart.Bootstrapper - Pid file /var/run/restheart-0.pid
16:37:38.042 [main] INFO org.restheart.Bootstrapper - RESTHeart started

if you notice its taking the default configuration from somewhere. please help !!!

@gunner95
Copy link

gunner95 commented Mar 1, 2018

Just saw your query. I was facing the same issue.
Try the following command,
java -server -jar restheart.jar /restheart.yml

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants