[DRE-maint] Bug#984828: gitlab: code tree not rendered (circling circle instead)

Mike Gabriel mike.gabriel at das-netzwerkteam.de
Tue Mar 9 11:06:26 GMT 2021


HI Praveen,

On  Mo 08 Mär 2021 21:51:20 CET, Pirate Praveen wrote:

> On 2021, മാർച്ച് 9 12:56:44 AM IST, Mike Gabriel  
> <mike.gabriel at das-netzwerkteam.de> wrote:
>> Package: gitlab
>> Version: 13.7.8+ds1-1~fto10+1
>> Severity: serious
>>
>> Hi Praveen,
>>
>> here comes the other issue I am facing. Occurred with 13.7.7 and also
>> occurs with 13.7.8:
>>
>> When I open a Git repository on my GitLab instance, I see a circling
>> circle where the code files/dirs should actually be.
>
> Can you share a screenshot ?

Screenshots attached. In fact the JS errors are slightly different,  
depending on the browser I use.

>> The JS console provides four error messages:
>>
>> 1.
>> Uncaught TypeError: o.a.fn.tooltip is undefined (with a backtrace I
>> omit here for now).

This is the FF error message, the error in chromium is:

bootstrap.js:32 Uncaught TypeError: Cannot read property 'Constructor'  
of undefined
      at Object.yv3B (bootstrap.js:32)
      at c (bootstrap:84)
      at Object.dvoh (main.197bffc7.chunk.js:118)
      at c (bootstrap:84)
      at Module.<anonymous> (main.197bffc7.chunk.js:50)
      at Module.HVBj (main.197bffc7.chunk.js:50)
      at c (bootstrap:84)
      at Object.213 (pages.projects.show.7aaabbab.chunk.js:1)
      at c (bootstrap:84)
      at t (bootstrap:45)

>> 2.
>> Source-Map-Fehler: Error: JSON.parse: unexpected character at line 1
>> column 1 of the JSON data
>> Ressourcen-Adresse:
>> https://gitlab.das-netzwerkteam.de/assets/webpack/runtime.2cbada1d.bundle.js
>> Source-Map-Adresse: runtime.2cbada1d.bundle.js.map
>>
>> 3.
>> Source-Map-Fehler: Error: JSON.parse: unexpected character at line 1
>> column 1 of the JSON data
>> Ressourcen-Adresse:
>> https://gitlab.das-netzwerkteam.de/assets/webpack/pages.projects.show.7aaabbab.chunk.js
>> Source-Map-Adresse: pages.projects.show.7aaabbab.chunk.js.map
>>
>> 4.
>> Source-Map-Fehler: Error: JSON.parse: unexpected character at line 1
>> column 1 of the JSON data
>> Ressourcen-Adresse:
>> https://gitlab.das-netzwerkteam.de/assets/webpack/pages.projects.show.7aaabbab.chunk.js
>> Source-Map-Adresse: pages.projects.show.7aaabbab.chunk.js.map

Also, message 2, 3 and 4 are messages from Firefox 78.8.0 ESR.  
Chromium 88.0.4324.182 shows:

[DOM] Found 2 elements with non-unique id #branch_name: (More info:  
https://goo.gl/9p2vKq) <input type=​"text" name=​"branch_name"  
id=​"branch_name" value=​"master" required=​"required"  
class=​"form-control js-branch-name ref-name">​ <input type=​"text"  
name=​"branch_name" id=​"branch_name" value=​"master"  
required=​"required" class=​"form-control js-branch-name ref-name">​
aleksis:1 [DOM] Found 2 elements with non-unique id #hide_label: (More  
info: https://goo.gl/9p2vKq) <input type=​"hidden" name=​"hide_label"  
id=​"hide_label" value=​"true">​ <input type=​"hidden"  
name=​"hide_label" id=​"hide_label" value=​"true">​
aleksis:1 [DOM] Found 2 elements with non-unique id  
#new_notification_setting: (More info: https://goo.gl/9p2vKq) <form  
class=​"notification-form no-label" id=​"new_notification_setting"  
action=​"/​-/​notification_settings" accept-charset=​"UTF-8"  
data-remote=​"true" method=​"post">​…​</form>​ <form  
class=​"custom-notifications-form" id=​"new_notification_setting"  
action=​"/​-/​notification_settings" accept-charset=​"UTF-8"  
method=​"post">​…​</form>​
aleksis:1 [DOM] Found 2 elements with non-unique id #original_branch:  
(More info: https://goo.gl/9p2vKq) <input type=​"hidden"  
name=​"original_branch" id=​"original_branch" value=​"master"  
class=​"js-original-branch">​ <input type=​"hidden"  
name=​"original_branch" id=​"original_branch" value=​"master"  
class=​"js-original-branch">​
aleksis:1 [DOM] Found 2 elements with non-unique id #project_id: (More  
info: https://goo.gl/9p2vKq) <input type=​"hidden" name=​"project_id"  
id=​"project_id" value=​"13">​ <input type=​"hidden"  
name=​"project_id" id=​"project_id" value=​"13">​

(see screenshot for better readability).

>> Any clue where else to look for error or log messages that might help
>> to track down this issue?
>
> You can try removing /usr/share/gitlab/public/assets (keep a backup  
> in case you want to restore) and regenerating it.
>
> dpkg-reconfigure gitlab
>
> Or run gitlab-rake assets:precompile
>
> And run webpack as given in, https://wiki.debian.org/gitlab/webpack
>
>> I can push / pull to / from my GitLab server via the git command, only
>> the rendering of code trees (and possibly other Javascript dependent
>> functionalities) seem(s) to be broken.
>
> Removing /var/lib/gitlab/node_modules and /var/lib/gitlab/yarn.lock  
> and regenerating it via yarnpkg install command could be another way.
>
> See /usr/lib/gitlab/scripts/rake-tasks.sh

I have now done all that (remove assets, remove node_modules and  
yarn.lock, uninstall all libjs-* and node-* packages, rebuild  
everything with dpkg-reconfigure), unfortunately to no avail.

I will now wait for gitlab 13.8.5 and see if that fixes things. If  
not, I will remove +/- nearly everything from the server and install  
from scratch.

Mike

-- 

DAS-NETZWERKTEAM
c\o Technik- und Ökologiezentrum Eckernförde
Mike Gabriel, Marienthaler Str. 17, 24340 Eckernförde
mobile: +49 (1520) 1976 148
landline: +49 (4351) 850 8940

GnuPG Fingerprint: 9BFB AEE8 6C0A A5FF BF22  0782 9AF4 6B30 2577 1B31
mail: mike.gabriel at das-netzwerkteam.de, http://das-netzwerkteam.de

-------------- next part --------------
A non-text attachment was scrubbed...
Name: gitlab-13.7.8_broken-js_chromium-88.0.4324.182.png
Type: image/png
Size: 377902 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-ruby-extras-maintainers/attachments/20210309/6fe6b757/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gitlab-13.7.8_broken-js_ffesr-78.8.0esr.png
Type: image/png
Size: 455569 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-ruby-extras-maintainers/attachments/20210309/6fe6b757/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 851 bytes
Desc: Digitale PGP-Signatur
URL: <http://alioth-lists.debian.net/pipermail/pkg-ruby-extras-maintainers/attachments/20210309/6fe6b757/attachment-0001.sig>


More information about the Pkg-ruby-extras-maintainers mailing list