| Issue 3308: | Client-side console output always shows default web server port for new changes | |
| 1 person starred this issue and may be notified of changes. | Back to list |
Affected Version: 2.10.2 What steps will reproduce the problem? 1. Make the Gerrit UI run on a non-standard port, e.g. 8090 instead of 8080 2. Push changes to Gerrit via SSH and observe the client-side console output What is the expected output? What do you see instead? I'd expect the configured non-standard port to be part of the console output. However, the output always shows the default port of 8080. This is the output from my server which is running on port 8090: remote: New Changes: remote: http://bf-anddevci.domain.com:8080/1 WIP 2 remote: http://bf-anddevci.domain.com:8080/2 WIP 3
Apr 16, 2015
Project Member
#1
edwin.ke...@gmail.com
Status:
AwaitingInformation
Apr 16, 2015
I was simply using the DEB package as provided by [1] to install Gerrit. Indeed, looking at /etc/gerrit/gerrit.config shows:
[gerrit]
basePath = git
canonicalWebUrl = http://bf-anddevci.domain.com:8080/
[database]
type = h2
database = db/ReviewDB
[index]
type = LUCENE
[auth]
type = DEVELOPMENT_BECOME_ANY_ACCOUNT
[sendemail]
smtpServer = localhost
[sshd]
listenAddress = *:29418
[httpd]
listenUrl = http://*:8090/
So the port as part of canonicalWebUrl mismatches the port as part of listenUrl. Does it even make sense to allow the port to be part of both?
[1] https://groups.google.com/d/msg/repo-discuss/2F6eeXZwABE/t-VFE47sJ7cJ
Apr 16, 2015
> So the port as part of canonicalWebUrl mismatches the port as part of listenUrl. > Does it even make sense to allow the port to be part of both? canonicalWebUrl is the URL that is returned to users, listenUrl is the URL under which Gerrit runs internally. They may be different, when you run a proxy in front of Gerrit.
Apr 16, 2015
So then this basically is a bug in the DEB packaging / configuration. As such, is valid to stay as an issue in here, or am I supposed to report it elsewhere?
Apr 16, 2015
Yes, this looks like a bug in the DEB packaging. AFAIK Luca is maintaining it, just let him know about this issue here.
Apr 16, 2015
The Deb package has 8080 as configured port for the initial setup, how did you manage to change it to 8090 automatically? If you edit manually re confit after having installed the Deb package, you cannot expect the packaging itself to fix the canonicalWebUrl by magic ;-)
Apr 16, 2015
I'm not aware of having done something special. I just already had Jenkins running on port 8080 before installing Gerrit. Can it be that some installation logic then automatically picked port 8090 for Gerrit? |
|
| ► Sign in to add a comment |