Docker-gitlab: Error in javascript in version 9.4.0

Created on 25 Jul 2017  路  6Comments  路  Source: sameersbn/docker-gitlab

After upgrading to v9.4.0, I noticed that the javascript has some errors and some thing

image

Dynamic pages like the repository dashboard keep loading

image

Also: GitLab doesn't show diff colors in commits anymore

image

Am I the only one with this issue or is this a general problem with the current version?

Note: I'm not using the new navigation design.

bug

Most helpful comment

It has been fixed by #1302 and will be available in 9.4.0-1. If the issue still persits please reopen this issue.

All 6 comments

@xNevo Note that you aren't the only one seeing no diff coloring (I am as well): https://gitlab.com/gitlab-org/gitlab-ce/issues/35510 (not the OP, but good to have it linked).

I am seeing some javascript errors -- but I don't have any issues with dynamic pages.
Try a Ctrl+F5 on those pages just in case.

Scrolling down on the commit list reveals the issue you are experiencing~

In addition: I no longer have access to Cycle Analytics (page loads, I still have navigation, but analytics section is blank).

capture

capture

same errors in MR page.
I no longer access to Commits tab & Changes tab.

I found a workaround for the issue.

solution

  1. run a gitlab container
  2. open a shell in the running container (e.g. docker exec -it gitlab bash)

    1. compile locale po files to js (bundle exec rake gettext:compile RAILS_ENV=production)

    2. recompile assets (bundle exec rake gitlab:assets:compile RAILS_ENV=production NODE_ENV=production)

cause

  • lack of locale data in js

Hey at all,
I got the same error. Thanks for @masakij for the hint. I will try to add the gettext:compile. Would you like to make an PR for that or should I do it ? It can be placed in the same place for compiling the assets. https://github.com/sameersbn/docker-gitlab/blob/master/assets/build/install.sh#L167

It has been fixed by #1302 and will be available in 9.4.0-1. If the issue still persits please reopen this issue.

Would like to ref the following issue, for those who like to have all info in one location:
https://gitlab.com/gitlab-org/gitlab-ce/issues/35193
https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/install/installation.md#compile-gettext-po-files

Was this page helpful?
0 / 5 - 0 ratings

Related issues

STOIE picture STOIE  路  4Comments

paolomainardi picture paolomainardi  路  4Comments

WeiLiPenguin picture WeiLiPenguin  路  4Comments

pmoralesp picture pmoralesp  路  3Comments

rakesh-k picture rakesh-k  路  3Comments