• FEATURES
  • PRICING
  • MARKETPLACE
  • CASE STUDIES
  • BLOG
  • Deploy Open Specimen Securely Errors

    Hello Sri, Dave, OS Community,

    I was trying to follow the steps in How To Deploy OpenSpecimen Securely instructions that are on this link: https://catissueplus.atlassian.net/wiki/pages/viewpage.action?pageId=19005463?

    Section A: Fronting JBoss with Apache
    As I was installing the Apache 2.2 service the first part, I got an error on the command prompt window:
    Errors reported here must be corrected before the service can be started. (OS 10013) An attempt was made to access a socket in a way forbidden by its access permission : make_sock: could not bind to address 0.0.0.0:80
    No listening sockets available, shutting down
    Unable to open logs

    I ignored the message and went on

    I finished the first part Fronting JBoss with Apache and reached the end of it with running the command:
    Start JBoss with the “-b 0.0.0.0” argument so it will listen on all network interfaces, allowing Apache to communicate with it. I routed the output to a text file and here is what I see:

    DEPLOYMENTS IN ERROR:
    **Deployment “jboss.jca:name=DefaultDS,service=DataSourceBinding” is in error due to the following reason(s): ** NOT FOUND Depends on ‘jboss.jca:name=DefaultDS,service=DataSourceBinding’ **
    Deployment “WebServer” is in error due to the following reason(s): org.xml.sax.SAXException: Premature end of file. @ unknown[-1,-1]
    Deployment “vfsfile:/C:/Jboss/jboss-5.1.0.GA/server/default/deploy/jmx-console.war/” is in error due to the following reason(s): org.xml.sax.SAXException: XML document structures must start and end within the same entity. @ vfsfile:/C:/Jboss/jboss-5.1.0.GA/server/default/deploy/jmx-console.war/WEB-INF/jboss-web.xml[7,69]
    Deployment “jboss.web:service=WebServer” is in error due to the following reason(s): ** NOT FOUND Depends on ‘jboss.web:service=WebServer’ ****

    I can open the JBOSS but not Open Specimen.

    Section B. Securing Apache Server with SSL
    I started with this section and created an environment variable: OPENSSL_CONF when I reached carrying out this command I got stuck: openssl req -new -out server.csr

    I got an error message saying unable to load config info from /usr/local/ssl/openssl.cnf

    I am trying to research it, I am suspecting there will some tweaks needed. If anyone went through that, please advice and share what you did. By the way, we do not have OS with UNIX but have it with windows.

    Dave, Sri, that will be a good topic for a technical/developer Webinar.

    Thank you

    Nadia

    “make_sock: could not bind to address 0.0.0.0:80 No listening sockets available, shutting down” sounds like you have something else using port 80. Do you have another webserver running? There are some other explanations here: https://wiki.apache.org/httpd/CouldNotBindToAddress

    Hi Nadia,

    Sounds like some service on your machine already using the port 80. You need to stop that service before starting Apache web server. Apache server by default listens on same port. If you are using Windows machine please run below command to check what service is listening on that port.

    netstat -ano|findstr “80”

    Kill that process and start Apache server.

    Thanks,

    Vivek

    Hello Bob, Vivek,

    I tried to research it and tried some suggestion and it did not work out.

    Bob, I will check your link, thank you for responding back and sharing.

    Vivek, Thank you for sending me the command, I tried another one and it did not work out. I will try yours.

    Regards

    Nadia

    Hello Guys,

    Ok I changed the port number for Apache to 81. And I re-installed Apache (repair), so I am NOT getting any error message like before: make_sock: could not bind to address 0.0.0.0:80

    However when I start Jboss by this command “-b 0.0.0.0” , it starts Jboss but it does not start Open Specimen, when I route the output to a file, same error is shown:

    DEPLOYMENTS IN ERROR:
    Deployment “jboss.jca:name=DefaultDS,service=DataSourceBinding” is in error due to the following reason(s):
    NOT FOUND Depends on 'jboss.jca:name=DefaultDS,service=DataSourceBinding’

    Deployment “WebServer” is in error due to the following reason(s): org.xml.sax.SAXException: Premature end of file. @ unknown[-1,-1]

    Deployment "vfsfile:/C:/Jboss/jboss-5.1.0.GA/server/default/deploy/jmx-console.war/" is in error due to the following reason(s): XML document structures must start and end within the same entity. @ vfsfile:/C:/Jboss/jboss-5.1.0.GA/server/default/deploy/jmx-console.war/WEB-INF/jboss-web.xml[7,69]

    Deployment “jboss.web:service=WebServer” is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.web:service=WebServer’

    Any clues, insights what might be wrong?

    Thanks for your help

    Nadia

    Hello Vivek,

    I am assuming that this part Deploying OS Securely, is a must, correct?

    Nadia

    Hi Nadia,

    If your OpenSpecimen URL is exposed on the internet for public access then it is must. In case you are testing OS on your local machine then it is not necessary.

    Thanks,

    Vivek

    Hello Vivek,

    Thank you for your response back.

    What if the server (for production and testing) was behind a firewall? Would it still be recommended?

    Thanks

    Nadia

    Hi Vivek

    One more question so the document at this URL:

    https://catissueplus.atlassian.net/wiki/pages/viewpage.action?pageId=19005463?

    List 3 sections:

    1-Fronting JBoss with Apache
    2-Securing Apache server with SSL
    3-Configuring JBoss to minimize security risks

    Would it be ok if I were to work with the last section; Configuring JBoss to minimize security risks and then later work with sections 1 & 2 ?

    Thanks

    Nadia