Server unavailable error from UI

293 views
Skip to first unread message

Gaurav Negi

unread,
Oct 10, 2017, 9:15:19 PM10/10/17
to repo-d...@googlegroups.com
Dear All,
   I just now installed Gerrit 2.14.4. 

I am seeing some weird behavior. 

1. One behavior is similar to this
Accessing Gerrit on UI, sometimes say "Server" Unavailable". 
Few retries later it comes up. 

2. Sometimes whole gerrit URL via HTTP, goes away and it says site not reachable.
Other times it comes back. 

While I checked on server, everytime Gerrit process is running. 

Anyone has any idea?
Or where can I check?

Thanks
-Gaurav

Gaurav Negi

unread,
Oct 10, 2017, 9:19:57 PM10/10/17
to repo-d...@googlegroups.com
One thing I noticed is gerrit has started so many processes 
The server only has gerrit installed 


gerrit@gerrit-Staging:~/GERRIT/etc$ ps -ef | grep -i gerrit
avahi      995     1  0 17:53 ?        00:00:00 avahi-daemon: running [gerrit-Staging.local]
root      1457  1075  0 17:53 ?        00:00:00 sshd: gerrit [priv]
gerrit    1472     1  0 17:53 ?        00:00:00 /lib/systemd/systemd --user
gerrit    1473  1472  0 17:53 ?        00:00:00 (sd-pam)
gerrit    1522  1457  0 17:53 ?        00:00:00 sshd: gerrit@pts/8
gerrit    1523  1522  0 17:53 pts/8    00:00:00 -bash
gerrit    1572     1  1 17:53 ?        00:00:25 GerritCodeReview -jar /home/gerrit/GERRIT/bin/gerrit.war daemon -d /home/gerrit/GERRIT --run-id=1507683239.1541
gerrit    1807     1  0 18:16 ?        00:00:00 /usr/bin/gnome-keyring-daemon --daemonize --login
gerrit    1809  1785  0 18:16 ?        00:00:00 /sbin/upstart --user
gerrit    1891  1809  0 18:16 ?        00:00:00 upstart-udev-bridge --daemon --user
gerrit    1894  1809  0 18:16 ?        00:00:00 /bin/sh -e /proc/self/fd/9
gerrit    1896  1894  0 18:16 ?        00:00:00 sleep 60
gerrit    1900  1809  0 18:16 ?        00:00:00 dbus-daemon --fork --session --address=unix:abstract=/tmp/dbus-6ZxXlOCZ4U
gerrit    1912  1809  0 18:16 ?        00:00:00 /usr/lib/x86_64-linux-gnu/hud/window-stack-bridge
gerrit    1944  1809  0 18:16 ?        00:00:00 upstart-dbus-bridge --daemon --system --user --bus-name system
gerrit    1962  1809  0 18:16 ?        00:00:00 upstart-dbus-bridge --daemon --session --user --bus-name session
gerrit    1963  1809  0 18:16 ?        00:00:00 upstart-file-bridge --daemon --user
gerrit    1964  1809  0 18:16 ?        00:00:00 /usr/lib/x86_64-linux-gnu/bamf/bamfdaemon
gerrit    1965  1809  0 18:16 ?        00:00:00 gpg-agent --homedir /home/gerrit/.gnupg --use-standard-socket --daemon
gerrit    1967  1809  0 18:16 ?        00:00:00 /usr/bin/ibus-daemon --daemonize --xim --address unix:tmpdir=/tmp/ibus
gerrit    1973  1809  0 18:16 ?        00:00:00 /usr/lib/gvfs/gvfsd
gerrit    1981  1809  0 18:16 ?        00:00:00 /usr/lib/gvfs/gvfsd-fuse /run/user/1000/gvfs -f -o big_writes
gerrit    1992  1967  0 18:16 ?        00:00:00 /usr/lib/ibus/ibus-dconf
gerrit    1994  1967  0 18:16 ?        00:00:00 /usr/lib/ibus/ibus-ui-gtk3
gerrit    1996  1809  0 18:16 ?        00:00:00 /usr/lib/ibus/ibus-x11 --kill-daemon
gerrit    2008  1967  0 18:16 ?        00:00:00 /usr/lib/ibus/ibus-engine-simple
gerrit    2020  1809  0 18:16 ?        00:00:00 /usr/lib/x86_64-linux-gnu/hud/hud-service
gerrit    2022  1809  0 18:16 ?        00:00:00 /usr/lib/unity-settings-daemon/unity-settings-daemon
gerrit    2030  1809  0 18:16 ?        00:00:00 /usr/lib/at-spi2-core/at-spi-bus-launcher --launch-immediately
gerrit    2031  1809  0 18:16 ?        00:00:00 /usr/lib/gnome-session/gnome-session-binary --session=ubuntu
gerrit    2036  1809  0 18:16 ?        00:00:00 /usr/lib/x86_64-linux-gnu/unity/unity-panel-service
gerrit    2049  2030  0 18:16 ?        00:00:00 /usr/bin/dbus-daemon --config-file=/etc/at-spi2/accessibility.conf --nofork --print-address 3
gerrit    2060  1809  0 18:16 ?        00:00:00 /usr/lib/at-spi2-core/at-spi2-registryd --use-gnome-session
gerrit    2072  1809  0 18:16 ?        00:00:00 /usr/lib/dconf/dconf-service
gerrit    2081  1809  0 18:16 ?        00:00:00 /usr/lib/x86_64-linux-gnu/indicator-messages/indicator-messages-service
gerrit    2082  1809  0 18:16 ?        00:00:00 /usr/lib/x86_64-linux-gnu/indicator-bluetooth/indicator-bluetooth-service
gerrit    2083  1809  0 18:16 ?        00:00:00 /usr/lib/x86_64-linux-gnu/indicator-power/indicator-power-service
gerrit    2086  1809  0 18:16 ?        00:00:00 /usr/lib/x86_64-linux-gnu/indicator-datetime/indicator-datetime-service
gerrit    2087  1809  0 18:16 ?        00:00:00 /usr/lib/x86_64-linux-gnu/indicator-keyboard/indicator-keyboard-service --use-gtk
gerrit    2088  1809  0 18:16 ?        00:00:00 /usr/lib/x86_64-linux-gnu/indicator-sound/indicator-sound-service
gerrit    2091  1809  0 18:16 ?        00:00:00 /usr/lib/x86_64-linux-gnu/indicator-printers/indicator-printers-service
gerrit    2092  1809  0 18:16 ?        00:00:00 /usr/lib/x86_64-linux-gnu/indicator-session/indicator-session-service
gerrit    2104  1809 11 18:16 ?        00:00:04 compiz
gerrit    2108  1809  0 18:16 ?        00:00:00 /usr/lib/x86_64-linux-gnu/indicator-application/indicator-application-service
gerrit    2146  1809  0 18:16 ?        00:00:00 /usr/lib/evolution/evolution-source-registry
gerrit    2151  1809  0 18:16 ?        00:00:00 /usr/bin/pulseaudio --start --log-target=syslog
gerrit    2198  1809  0 18:16 ?        00:00:00 /usr/lib/evolution/evolution-calendar-factory
gerrit    2217  2031  4 18:16 ?        00:00:01 /usr/bin/gnome-software --gapplication-service
gerrit    2219  2031  0 18:16 ?        00:00:00 nautilus -n
gerrit    2220  2031  0 18:16 ?        00:00:00 /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1
gerrit    2221  2031  0 18:16 ?        00:00:00 /usr/lib/unity-settings-daemon/unity-fallback-mount-helper
gerrit    2225  2031  0 18:16 ?        00:00:00 nm-applet
gerrit    2238  1809  0 18:16 ?        00:00:00 /usr/lib/gvfs/gvfs-udisks2-volume-monitor
gerrit    2255  1809  0 18:16 ?        00:00:00 /usr/lib/gvfs/gvfs-gphoto2-volume-monitor
gerrit    2260  1809  0 18:16 ?        00:00:00 /usr/lib/gvfs/gvfs-goa-volume-monitor
gerrit    2265  1809  0 18:16 ?        00:00:00 /usr/lib/gvfs/gvfs-mtp-volume-monitor
gerrit    2270  1809  0 18:16 ?        00:00:00 /usr/lib/gvfs/gvfs-afc-volume-monitor
gerrit    2286  2198  0 18:16 ?        00:00:00 /usr/lib/evolution/evolution-calendar-factory-subprocess --factory contacts --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.Calendarx2198x2 --own-path /org/gnome/evolution/dataserver/Subprocess/Backend/Calendar/2198/2
gerrit    2308  1809  0 18:16 ?        00:00:00 /usr/lib/evolution/evolution-addressbook-factory
gerrit    2310  2198  0 18:16 ?        00:00:00 /usr/lib/evolution/evolution-calendar-factory-subprocess --factory local --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.Calendarx2198x3 --own-path /org/gnome/evolution/dataserver/Subprocess/Backend/Calendar/2198/3
gerrit    2316  1809  0 18:16 ?        00:00:00 /usr/lib/gvfs/gvfsd-trash --spawner :1.5 /org/gtk/gvfs/exec_spaw/0
gerrit    2324  2308  0 18:16 ?        00:00:00 /usr/lib/evolution/evolution-addressbook-factory-subprocess --factory local --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.AddressBookx2308x2 --own-path /org/gnome/evolution/dataserver/Subprocess/Backend/AddressBook/2308/2
gerrit    2376  1809  0 18:16 ?        00:00:00 /usr/lib/x86_64-linux-gnu/unity-scope-home/unity-scope-home
gerrit    2386  1809  0 18:16 ?        00:00:00 /usr/bin/unity-scope-loader applications/applications.scope applications/scopes.scope commands.scope
gerrit    2388  1809  0 18:16 ?        00:00:00 /usr/lib/x86_64-linux-gnu/unity-lens-files/unity-files-daemon
gerrit    2399  1809  0 18:16 ?        00:00:00 /bin/sh -c /usr/lib/x86_64-linux-gnu/zeitgeist/zeitgeist-maybe-vacuum; /usr/bin/zeitgeist-daemon
gerrit    2403  2399  0 18:16 ?        00:00:00 /usr/bin/zeitgeist-daemon
gerrit    2411  1809  0 18:16 ?        00:00:00 zeitgeist-datahub
gerrit    2412  1809  0 18:16 ?        00:00:00 /usr/lib/x86_64-linux-gnu/zeitgeist-fts
gerrit    2459  1809  0 18:16 ?        00:00:00 /usr/lib/gnome-terminal/gnome-terminal-server
gerrit    2465  2459  0 18:16 pts/19   00:00:00 bash
gerrit    2505  1523  0 18:17 pts/8    00:00:00 ps -ef
gerrit    2506  1523  0 18:17 pts/8    00:00:00 grep --color=auto -i gerrit

Saša Živkov

unread,
Oct 11, 2017, 2:46:04 AM10/11/17
to Gaurav Negi, repo-d...@googlegroups.com
On Wed, Oct 11, 2017 at 3:15 AM, Gaurav Negi <gaura...@gmail.com> wrote:
Dear All,
   I just now installed Gerrit 2.14.4. 

I am seeing some weird behavior. 

1. One behavior is similar to this
Accessing Gerrit on UI, sometimes say "Server" Unavailable". 
Few retries later it comes up. 

2. Sometimes whole gerrit URL via HTTP, goes away and it says site not reachable.
Other times it comes back. 

While I checked on server, everytime Gerrit process is running. 

A running Gerrit process is not a guarantee that it is reachable from your machine.
 

Anyone has any idea?

Intermittent network issues?
 
Or where can I check?

logs/httpd_log

Check if requests are being accepted/processed. Especially from the IP address of the machine
which reported "Server unavailable".

 

Thanks
-Gaurav

--
--
To unsubscribe, email repo-discuss+unsubscribe@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Luca Milanesio

unread,
Oct 11, 2017, 4:59:02 AM10/11/17
to Gaurav Negi, repo-d...@googlegroups.com, Saša Živkov
Are you behind a HTTP reverse proxy?
If yes, which one? what's the timeout?

Luca.

To unsubscribe, email repo-discuss...@googlegroups.com

More info at http://groups.google.com/group/repo-discuss?hl=en

--- 
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.

Gaurav Negi

unread,
Oct 11, 2017, 4:27:32 PM10/11/17
to Luca Milanesio, repo-d...@googlegroups.com, Saša Živkov
Thanks Sasa and Luca for the reply.
Sorry all for the false flag. 

It was a local network issue. 
Gerrit server had IP, that was conflicting with another server. 
So two servers were fighting for the same IP. 
After giving unique IP to the Gerrit server, it fixed the issue. 



Luca.



Thanks
-Gaurav

-- 
-- 
To unsubscribe, email repo-discuss+unsub...@googlegroups.com

More info at http://groups.google.com/group/repo-discuss?hl=en

--- 
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


-- 
-- 
To unsubscribe, email repo-discuss+unsub...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages