Can't access web server after installing on Windows machine: HTTP Status 404 - Requested Resource Not Available

Installation Forum (Inactive)
Can't access web server after installing on Windows machine: HTTP Status 404 - Requested Resource Not Available grantog  2014-09-29 14:42
Status: Closed
 
Hello all,

I just installed LabKey using the Windows stand-alone installer, however, upon trying to open the webpage - http://localhost:8080/labkey/, I receive the following error: HTTP Status 404 - Requested Resource Not Available. I've attached a screenshot. I am running Windows 7 on a virtual machine (VMWare) from my Macbook Pro. I should note that I also have SAS 9.4 installed, and when I try to access http://localhost:8080/, I am welcomed to a SAS 9.4 screen (see additional screenshot).

I've tried uninstalling and re-installing, however, to no avail. I've also tried to download the latest apache manually.

Any help would be appreciated. I was considering using the command line via my Mac, but would prefer the GUI provided by the Windows installation.
 
 
jeckels responded:  2014-09-29 17:29
Hello,

It sounds like there's a separate web server running on port 8080 already. The LabKey Server installer doesn't check exhaustively for potentially conflicting software, so you might not get any warnings or errors during the install itself.

However, the web server (Tomcat) for LabKey Server is likely failing to start up because the port is already in use. You can try these steps to modify the Tomcat installation, after running the Windows installer:

Open C:\Program Files (x86)\LabKey Server\apache-tomcat-7.0.52\conf\server.xml
Search for "8080" and replace it with another port number, like "8090". Save the file.
Open Services (click the Start button, type "Services", and choose Services from the list).
Find "LabKey Server Apache Tomcat 7.0" in the list. Stop it (if it's running) and start it.
Try going to http://localhost:8090/labkey" in your browser.

Some of the directory names may not match exactly with your system, but they should be close.

If that doesn't work, please attach all of the log files you find in C:\Program Files (x86)\LabKey Server\apache-tomcat-7.0.52\logs.

Thanks,
Josh
 
grantog responded:  2014-09-29 18:23
Hi Josh,

I attempted what you suggested but it did not work.

My log files are attached. I opened a few but they were blank, FYI.

Thanks for the help,
Grant
 
Brian Connolly responded:  2014-09-30 14:14
Grant,

I am reviewing the logs and have a few questions. These logs show that the Windows Service was started at 18:17:39 and then it stopped at 18:18:17. Did you manually stop the service after you tested it (and the browser could not connect)?

Also, is there a log file named catalina.2014-09-29.log or similar? If so, can you send that file if it is not empty.

If you are not manually stopping the LabKeyTomcat7 service, can you review your EventLogs for error messages around 18:18. These logs may contain more information about this start up problem.

Brian
 
grantog responded:  2014-09-30 15:14
Hi Brian,

Thanks for the response. I may have manually stopped the service, but I am fairly certain I would have restarted it before attempting to connect.

After changing the port number to 8090, I get a different error message - that Firefox cannot connect (attached a screenshot). It looks like less of an internal error and more of a connectivity issue now.

Couldn't find a log file that started with catalina. Which logs should I review around 18:18? I have a dozen plus logs in my logs folder, however, most are blank.
 
Brian Connolly responded:  2014-09-30 15:25
Grant,

The screenshot shows that you are going to incorrect URL to access the server. Can you try to

1. Start the LabKey Server application

2. Open a browser window

3. In the URL location bar, enter http://localhost:8090/labkey


-Brian
 
grantog responded:  2014-10-01 08:52
Hi Brian,

Upon entering the URL, it automatically redirects me to http://www.localhost.com:8090/labkey. I can tell the page is searching when I initially put in http://localhost:8090/labkey.

I confirmed that Apache was running before this and was directed to appropriate Java directory.

Any other ideas? Should I just attempt to install it via my Mac OS? I tried uninstalling the SAS 9.4 Web Server application.

G
 
Brian Connolly responded:  2014-10-01 09:15
Grant,

Since you have uninstalled the SAS 9.4 Web Server application, I recommend that you

1. Uninstall the LabKey Server application from the Windows VM
2. Install the LabKey Server application on Window VM

Using this method will make it easier to debug any problems you might have, as you will be using a standard configuration.

-Brian
 
grantog responded:  2014-10-01 10:27
I uninstalled SAS 9.4 completely and reinstalled LabKey Server.

I received the following error message (screenshot of it attached):



Configuration Error Detected at LabKey Server Startup
DataSources are not properly configured in labkey.xml.

This is a problem with your configuration. Please contact your local server administrator for assistance, or LabKey Software at support@labkey.com for operational assistance with correcting the configuration error.

org.labkey.api.util.ConfigurationException: DataSources are not properly configured in labkey.xml.
       at org.labkey.api.module.ModuleLoader.initializeDataSources(ModuleLoader.java:790)
       at org.labkey.api.module.ModuleLoader.doInit(ModuleLoader.java:332)
       at org.labkey.api.module.ModuleLoader.init(ModuleLoader.java:249)
       at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279)
       at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260)
       at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:105)
       at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4809)
       at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5485)
       at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
       at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
       at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
       at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)
       at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:670)
       at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1839)
       at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
       at java.util.concurrent.FutureTask.run(Unknown Source)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
       at java.lang.Thread.run(Unknown Source)
Caused by: org.labkey.api.util.ConfigurationException: Can't connect to data source "labkeyDataSource".
       at org.labkey.api.data.DbScope.ensureDataBase(DbScope.java:957)
       at org.labkey.api.module.ModuleLoader.ensureDatabase(ModuleLoader.java:860)
       at org.labkey.api.module.ModuleLoader.initializeDataSources(ModuleLoader.java:767)
       ... 18 more
Caused by: org.postgresql.util.PSQLException: FATAL: password authentication failed for user "grant"
       at org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(ConnectionFactoryImpl.java:400)
       at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:173)
       at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:64)
       at org.postgresql.jdbc2.AbstractJdbc2Connection.<init>(AbstractJdbc2Connection.java:138)
       at org.postgresql.jdbc3.AbstractJdbc3Connection.<init>(AbstractJdbc3Connection.java:29)
       at org.postgresql.jdbc3g.AbstractJdbc3gConnection.<init>(AbstractJdbc3gConnection.java:21)
       at org.postgresql.jdbc4.AbstractJdbc4Connection.<init>(AbstractJdbc4Connection.java:31)
       at org.postgresql.jdbc4.Jdbc4Connection.<init>(Jdbc4Connection.java:24)
       at org.postgresql.Driver.makeConnection(Driver.java:410)
       at org.postgresql.Driver.connect(Driver.java:280)
       at java.sql.DriverManager.getConnection(Unknown Source)
       at java.sql.DriverManager.getConnection(Unknown Source)
       at org.labkey.api.data.DbScope.ensureDataBase(DbScope.java:920)
       ... 20 more
 
grantog responded:  2014-10-01 10:45
I should also mention that I uninstalled Apache and PostGre when at the same time I uninstalled LabKey.

It seems postgre is installed automatically when installing LabKey Server. Should I attempt to download Apache and install manually?

G
 
Brian Connolly responded:  2014-10-01 12:09
Grant,
I am sorry to say that you will probably need to re-install the LabKey Server application again. Because you uninstalled the Tomcat and PostgreSQL manually at the same time as uninstalling LabKey I believe your workstation is in a corrupted state.

The LabKey Server Graphical Windows Installer (which you are using), not only installs LabKey Server, but also installs all other required software. This means that the LabKey Server Graphical Windows Installer will install

- JAVA
- Tomcat
- PostgreSQL
- LabKey Server application


Given you installation is in a corrupted state, my recommendation is for you to

1. Uninstall the LabKey Server application
- This should uninstall LabKey Server, Tomcat and PostgreSQL application from your Windows workstation.

2. Verify that Tomcat and PostgreSQL were properly uninstalled.
- If these were not, then proceed to uninstall each application


3. Delete the directory C:\Program Files (x86)\LabKey Server and it's contents using the Windows File Explorer
- If you do not want to delete the directory, then simply rename the directory

4. Install the LabKey Server using the graphical windows installer


I am sorry that you are having so many problems getting the software installed. After you follow the instructions above, if the server is still not working then I recommend we jump on a web conference where I can review your server installation and help you get it working.

- Brian
 
grantog responded:  2014-10-01 12:38
Hi Brian,

This worked! Thank you! I even deleted some of the LabKey, Apache, and PostgreSQL entries in the registry.

Up and running,
Grant