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

do-magic.sh error copying referenceccdaservice.xml to tomcat localhost directory on vagrant up #2

Closed
drbgfc opened this issue Jan 24, 2019 · 3 comments

Comments

@drbgfc
Copy link
Contributor

drbgfc commented Jan 24, 2019

Steps to Reproduce:

Ran:
git clone --recurse-submodules https://github.com/mieweb/vagrant-ccda-validator.git
cd vagrant-ccda-validator
vagrant up
Waited

Tried opening up any of the following URLS:
http://localhost:8080/referenceccdaservice/static/validationui.html
http://localhost:8080/referenceccdaservice/swagger-ui.html#/reference-ccda-validation-controller

Got 404

Looked at tomcat log, noticed that it didn't boot properly.
Looked at vagrant log, noticed the culprit:
default: Copying config_extras...
default: cp:
default: cannot create regular file ‘/etc/tomcat/Catalina/localhost/referenceccdaservice.xml’
default: : No such file or directory
default: Done!

Note: This is related to line 15 in https://github.com/mieweb/vagrant-ccda-validator/blob/master/files/scripts/do-magic.sh
cp -f /etc/ccda/files/config_extra/referenceccdaservice.xml /etc/tomcat/Catalina/localhost/referenceccdaservice.xml

Manual Fix:
-SSHd into the VM
-stopped the tomcat instance using the service
-manually copied over referenceccdaservice.xml to /etc/tomcat/Catalina/localhost/
-restarted the tomcat instance using the service
-checked the logs (all good)
-now able to access and use the software at the respective URLs

If you would like the full logs let me know.
Thanks,
Dan

@wreiske
Copy link
Member

wreiske commented Jan 24, 2019

Looking into this now. I think I fixed this recently? Let me look... Thanks for the report!

Edit: Probably just need to add mkdir -p /etc/tomcat/Catalina/localhost/ right before the cp.

@wreiske
Copy link
Member

wreiske commented Jan 24, 2019

@drbgfc please confirm the latest commit fixes your issue. If it still isn't working for you, please re-open this ticket.

Thanks!

@drbgfc
Copy link
Contributor Author

drbgfc commented Jan 25, 2019

Yes it works. I destroyed the VM, deleted the git cloned directory and reran the steps in the help file from scratch without issue.
The relevant output now shows no error:
default: Copying config_extras...
default: Done!

Thanks.

BTW I might as well mention. Scenario/content validation is not setup for this, but would not prove difficult to include. I can probably find time to submit a PR for that. Vocabulary is set up but of course is missing the licensed code systems and value sets (as it should be, for now). So one would have to manually add those to match SITE results. We are working towards a way to offer a package to make it simple. If that happens, combined with the scenario integration, this vagrant VM could be a complete solution of emulating the SITE C-CDA Validator in production.

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