Error on Upsource start. not able to reach the page

I recently made an US upgrade in my CentOS VM.

I got it running and next day it was not able to connect to the SVN repository, which helped with an Upsource restart.

One day after I am not able to get to the page properly. I rebooted the machine and while it says Upsource is running I got this message in nginx when trying to access Upsource in the browser:

 

nginx error!

The page you are looking for is temporarily unavailable. Please try again later.

Website Administrator

Something has triggered an error on your website. This is the default error page for nginx that is distributed with Fedora.

 

I got this when starting upsource:

 

Starting Upsource...
* Configuring JetBrains Upsource 2017.2
* JetBrains Upsource 2017.2 runtime environment is successfully configured
* Loading logging configuration from /usr/local/upsource-2017.2.2197/lib/ext/log4j.xml
* Redirecting JetBrains Upsource 2017.2 logging to /usr/local/upsource-2017.2.21                                                                                          97/logs/internal/services/bundleProcess
* Configuring Service-Container[bundleProcess]
* Configuring Bundle Backend Service
* Configuring Starting Page Service
* Configuring Upsource Configurator
* Configuring Hub
* Configuring Bundle Hub Configurator
* Configuring Apache Cassandra
* Configuring Upsource Cluster Initialize Service
* Configuring Upsource Frontend
* Starting Service-Container[bundleProcess]
[Upsource Error] [2017-08-23 12:31:05,446]  ERROR - rvice.util.cmd.LogStreamThread - Error in reading stream
[Upsource Error] java.io.IOException: Stream closed
[Upsource Error]        at java.io.BufferedInputStream.getBufIfOpen(BufferedInputStream.java:170)
[Upsource Error]        at java.io.BufferedInputStream.read(BufferedInputStream. java:336)
[Upsource Error]        at com.jetbrains.service.util.cmd.InterruptableInputStream.read(InterruptableInputStream.java:34)
[Upsource Error]        at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:284)
[Upsource Error]        at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:326)
[Upsource Error]        at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178)
[Upsource Error]        at java.io.InputStreamReader.read(InputStreamReader.java:184)
[Upsource Error]        at java.io.BufferedReader.fill(BufferedReader.java:161)
[Upsource Error]        at java.io.BufferedReader.readLine(BufferedReader.java:324)
[Upsource Error]        at java.io.BufferedReader.readLine(BufferedReader.java:389)
[Upsource Error]        at com.jetbrains.service.util.cmd.LogStreamThread.run(LogStreamThread.java:39)
[Upsource Error] [2017-08-23 12:31:05,446]  ERROR - rvice.util.cmd.LogStreamThread - Error in reading stream
[Upsource Error] java.io.IOException: Stream closed
[Upsource Error]        at java.io.BufferedInputStream.getBufIfOpen(BufferedInputStream.java:170)
[Upsource Error]        at java.io.BufferedInputStream.read(BufferedInputStream.java:336)
[Upsource Error]        at com.jetbrains.service.util.cmd.InterruptableInputStream.read(InterruptableInputStream.java:34)
[Upsource Error]        at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:284)
[Upsource Error]        at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:326)
[Upsource Error]        at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178)
[Upsource Error]        at java.io.InputStreamReader.read(InputStreamReader.java:184)
[Upsource Error]        at java.io.BufferedReader.fill(BufferedReader.java:161)
[Upsource Error]        at java.io.BufferedReader.readLine(BufferedReader.java:324)
[Upsource Error]        at java.io.BufferedReader.readLine(BufferedReader.java:389)
[Upsource Error]        at com.jetbrains.service.util.cmd.LogStreamThread.run(LogStreamThread.java:39)
* Starting Bundle Backend Service
* Starting Starting Page Service
* JetBrains Upsource 2017.2 will be available on [*****] after start
Upsource is running

 

I am not able to track the problem and would appreciate any help. I renamed the log folder so new and cleaner logs are in place, so I have two log folders from when it was running couple of days before and since it is not working now.

 

Thanks.

1 comment
Comment actions Permalink

Looks this was an Nginx problem with permissions:

[crit] ---  connect() to **** failed (13: Permission denied) while connecting to upstream

For some reason after a reboot nginx was having problems with SELinux.

Solved running the following commands:

sudo cat /var/log/audit/audit.log | grep nginx | grep denied | audit2allow -M mynginx
sudo semodule -i mynginx.pp
0

Please sign in to leave a comment.