Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to start OpenMRS. Error thrown was: '/var/lib/OpenMRS' should be a directory but it is not #1

Closed
rcrichton opened this issue Feb 16, 2015 · 3 comments

Comments

@rcrichton
Copy link

Hi, when I tried to run the docker image I got the following. Any ideas?

WARN - OpenmrsUtil.getDirectoryInApplicationDataDirectory(1284) |2015-02-16 11:36:54,439| '/var/lib/OpenMRS' doesn't exist.  Creating directories now.
Exception in thread "Thread-4" org.openmrs.module.ModuleException: Unable to start OpenMRS. Error thrown was: '/var/lib/OpenMRS' should be a directory but it is not
    at org.openmrs.web.WebDaemon.startOpenmrs(WebDaemon.java:68)
    at org.openmrs.web.filter.initialization.InitializationFilter$InitializationCompletion$1.run(InitializationFilter.java:1637)
    at java.lang.Thread.run(Thread.java:745)
Caused by: org.openmrs.api.APIException: '/var/lib/OpenMRS' should be a directory but it is not
    at org.openmrs.util.OpenmrsUtil.getDirectoryInApplicationDataDirectory(OpenmrsUtil.java:1289)
    at org.openmrs.util.OpenmrsUtil.getOpenmrsLogLocation(OpenmrsUtil.java:1246)
    at org.openmrs.util.OpenmrsUtil.setupLogAppenders(OpenmrsUtil.java:594)
    at org.openmrs.util.OpenmrsUtil.startup(OpenmrsUtil.java:547)
    at org.openmrs.api.context.Context.startup(Context.java:831)
    at org.openmrs.web.Listener.startOpenmrs(Listener.java:195)
    at org.openmrs.web.WebDaemon$1.run(WebDaemon.java:46)
@chaityabshah
Copy link
Owner

I was able to reproduce your error but it had no effect on OpenMRS starting up. Go to the url http://192.168.59.103:8080/openmrs/ and you should see your application running.

@chaityabshah
Copy link
Owner

Please let me know if your problem still exists or not so I can close the issue.

@rcrichton
Copy link
Author

Ah ok, I see. If I navigate to the web app all appears to be working.

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

No branches or pull requests

2 participants