Wrong base URL (localhost:10080) for ajax requests in self-hosted installation
Summary
In a self-hosted installation, after upgrading to 16.3.0-ee, some AJAX actions fails:
- mark a MR as draft
- turn on/off new navigation UI
- retrieve last commit upon project page loading
Using the network inspection tool of CDT, it can be seen that the requests are sent to the wrong base URL (http://localhost:10080 instead of http://gitlab.my-company-name.it). Please, take a look at the screenshot below.
It's the first time ever that we experience this problem after upgrading GitLab. We use an omnibus installation on an Ubuntu Server machine and we regularly update using apt
(following your guidelines).
Steps to reproduce
Just try to mark as draft a MR that currently is in a ready status.
What is the current bug behavior?
The MR status remains unchanged.
The navigation UI preference is not applied.
What is the expected correct behavior?
The MR status should change accordingly.
The navgiation UI preference should be saved and applied.
Relevant logs and/or screenshots
Results of GitLab environment info
This bug occurs on a self-hosted GitLab EE installation.
Expand for output related to GitLab environment info
System information System: Ubuntu 18.04 Proxy: no Current User: git Using RVM: no Ruby Version: 3.0.6p216 Gem Version: 3.4.18 Bundler Version:2.4.18 Rake Version: 13.0.6 Redis Version: 7.0.12 Sidekiq Version:6.5.7 Go Version: unknown GitLab information Version: 16.3.0-ee Revision: 3dfd4e0bcc7 Directory: /opt/gitlab/embedded/service/gitlab-rails DB Adapter: PostgreSQL DB Version: 13.11 URL: http://gitlab.my-company-name.it HTTP Clone URL: http://gitlab.my-company-name.it/some-group/some-project.git SSH Clone URL: git@gitlab.my-company-name.it:some-group/some-project.git Elasticsearch: no Geo: no Using LDAP: no Using Omniauth: yes Omniauth Providers: GitLab Shell Version: 14.26.0 Repository storages: - default: unix:/var/opt/gitlab/gitaly/gitaly.socket GitLab Shell path: /opt/gitlab/embedded/service/gitlab-shell Gitaly - default Address: unix:/var/opt/gitlab/gitaly/gitaly.socket - default Version: 16.3.0 - default Git Version: 2.41.0.gl1
Results of GitLab application Check
Expand for output related to the GitLab application check
Checking GitLab subtasks ...Checking GitLab Shell ...
GitLab Shell: ... GitLab Shell version >= 14.26.0 ? ... OK (14.26.0) Running /opt/gitlab/embedded/service/gitlab-shell/bin/check Internal API available: OK Redis available via internal API: OK gitlab-shell self-check successful
Checking GitLab Shell ... Finished
Checking Gitaly ...
Gitaly: ... default ... OK
Checking Gitaly ... Finished
Checking Sidekiq ...
Sidekiq: ... Running? ... yes Number of Sidekiq processes (cluster/worker) ... 1/1
Checking Sidekiq ... Finished
Checking Incoming Email ...
Incoming Email: ... Reply by email is disabled in config/gitlab.yml
Checking Incoming Email ... Finished
Checking LDAP ...
LDAP: ... LDAP is disabled in config/gitlab.yml
Checking LDAP ... Finished
Checking GitLab App ...
Database config exists? ... yes All migrations up? ... yes Database contains orphaned GroupMembers? ... no GitLab config exists? ... yes GitLab config up to date? ... yes Cable config exists? ... yes Resque config exists? ... yes Log directory writable? ... yes Tmp directory writable? ... yes Uploads directory exists? ... yes Uploads directory has correct permissions? ... yes Uploads directory tmp has correct permissions? ... yes Systemd unit files or init script exist? ... skipped (omnibus-gitlab has neither init script nor systemd units) Systemd unit files or init script up-to-date? ... skipped (omnibus-gitlab has neither init script nor systemd units) Projects have namespace: ... 4/1 ... yes 4/3 ... yes 4/4 ... yes 4/5 ... yes 4/6 ... yes 4/7 ... yes 4/8 ... yes 4/9 ... yes 4/10 ... yes 4/11 ... yes 4/12 ... yes 5/13 ... yes 4/14 ... yes 5/15 ... yes 4/16 ... yes 4/17 ... yes 4/18 ... yes 4/19 ... yes 4/20 ... yes 4/21 ... yes 4/22 ... yes 4/23 ... yes 4/24 ... yes 4/25 ... yes 4/26 ... yes 4/27 ... yes 4/28 ... yes 4/29 ... yes 4/30 ... yes 4/31 ... yes 4/32 ... yes 4/33 ... yes 3/37 ... yes 3/38 ... yes 3/39 ... yes 4/40 ... yes 4/41 ... yes 4/42 ... yes 4/46 ... yes 4/48 ... yes 4/49 ... yes 4/50 ... yes 4/51 ... yes 4/52 ... yes 4/54 ... yes 4/55 ... yes 4/56 ... yes 4/57 ... yes 4/58 ... yes 4/59 ... yes 37/60 ... yes 4/61 ... yes 4/62 ... yes 3/63 ... yes 4/64 ... yes 10/65 ... yes 4/70 ... yes 3/77 ... yes 10/78 ... yes 10/79 ... yes 10/80 ... yes 11/81 ... yes 11/82 ... yes 11/83 ... yes 37/86 ... yes 4/87 ... yes 4/89 ... yes 4/90 ... yes 11/91 ... yes 4/92 ... yes 4/93 ... yes 2/94 ... yes 4/95 ... yes 11/96 ... yes 11/97 ... yes 37/98 ... yes 10/99 ... yes 11/100 ... yes 4/101 ... yes 4/102 ... yes 4/103 ... yes 4/104 ... yes 4/105 ... yes 4/106 ... yes 4/107 ... yes 10/108 ... yes 3/109 ... yes 4/110 ... yes 10/113 ... yes 37/116 ... yes 37/118 ... yes 4/119 ... yes 4/120 ... yes 4/121 ... yes 4/122 ... yes 4/124 ... yes 4/125 ... yes 4/126 ... yes 4/127 ... yes 4/128 ... yes 15/129 ... yes 4/130 ... yes 4/131 ... yes 4/132 ... yes 8/134 ... yes 9/135 ... yes 4/136 ... yes 4/137 ... yes 9/138 ... yes 9/139 ... yes 9/141 ... yes 4/142 ... yes 9/143 ... yes 4/144 ... yes 4/145 ... yes 10/146 ... yes 37/147 ... yes 37/148 ... yes 37/149 ... yes 37/150 ... yes 4/151 ... yes 10/153 ... yes 4/154 ... yes 4/155 ... yes 4/157 ... yes 4/159 ... yes 37/160 ... yes 37/163 ... yes 37/165 ... yes 37/166 ... yes 4/167 ... yes 4/168 ... yes 4/169 ... yes 4/170 ... yes 30/173 ... yes 4/174 ... yes 4/175 ... yes 38/176 ... yes 4/179 ... yes 15/180 ... yes 10/181 ... yes 10/182 ... yes 4/183 ... yes 38/185 ... yes 9/186 ... yes 4/187 ... yes 38/188 ... yes 38/189 ... yes 4/190 ... yes 19/191 ... yes 16/192 ... yes 19/193 ... yes 25/194 ... yes 25/195 ... yes 38/196 ... yes 38/197 ... yes 4/198 ... yes 4/199 ... yes 4/200 ... yes 5/202 ... yes 5/203 ... yes 39/204 ... yes 39/205 ... yes 39/206 ... yes 4/207 ... yes 38/208 ... yes 4/210 ... yes 4/211 ... yes 4/212 ... yes 38/213 ... yes 5/214 ... yes 2/215 ... yes Redis version >= 6.0.0? ... yes Ruby version >= 3.0.6 ? ... yes (3.0.6) Git user has default SSH configuration? ... yes Active users: ... 10 Is authorized keys file accessible? ... yes GitLab configured to store new projects in hashed storage? ... yes All projects are in hashed storage? ... yes Elasticsearch version 7.x-8.x or OpenSearch version 1.x ... skipped (Advanced Search is disabled) All migrations must be finished before doing a major upgrade ... skipped (Advanced Search is disabled)
Checking GitLab App ... Finished
Checking GitLab subtasks ... Finished