2

After update (omnibus-gitlab), when 'Dashboard | Gitlab' load, outputs error:

"Error compiling CSS asset Sprockets::FileNotFound: couldn't find file 'jquery.ui.datepicker' (in /home/git/gitlab/app/assets/stylesheets/application.scss:5) /usr/local/lib/ruby/gems/2.1.0/gems/sprickets-2.12.3/lib/sprockets/context.rb:106:in `resolve'

GitLab befor update 7.4.2.

$ sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production
Checking Environment ...

Git configured for git user? ... yes

Checking Environment ... Finished

Checking GitLab Shell ...

GitLab Shell version >= 2.0.1 ? ... OK (2.0.1)
Repo base directory exists? ... yes
Repo base directory is a symlink? ... no
Repo base owned by git:git? ... yes
Repo base access is drwxrws---? ... yes
Satellites access is drwxr-x---? ... yes
hooks directories in repos are links: ...
... ok
Running /home/git/gitlab-shell/bin/check
Check GitLab API access: OK
Check directories and files:
        /home/git/repositories: OK
        /home/git/.ssh/authorized_keys: OK
Test redis-cli executable: redis-cli 2.4.14
Send ping to redis server: PONG
gitlab-shell self-check successful

Checking GitLab Shell ... Finished

Checking Sidekiq ...

Running? ... yes
Number of Sidekiq processes ... 1

Checking Sidekiq ... Finished

Checking LDAP ...

LDAP is disabled in config/gitlab.yml

Checking LDAP ... Finished

Checking GitLab ...

Database config exists? ... yes
Database is SQLite ... no
All migrations up? ... yes
Database contains orphaned GroupMembers? ... no
GitLab config exists? ... yes
GitLab config outdated? ... no
Log directory writable? ... yes
Tmp directory writable? ... yes
Init script exists? ... yes
Init script up-to-date? ... yes
projects have namespace: ...
... yes
Redis version >= 2.0.0? ... yes
Ruby version >= 2.0.0 ? ... yes (2.1.2)
Your git bin path is "/usr/bin/git"
Git version >= 1.7.10 ? ... yes (1.7.10)

Checking GitLab ... Finished

My environment:

$ sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production

System information
System:         Debian 7.8
Current User:   git
Using RVM:      no
Ruby Version:   2.1.2p95
Gem Version:    2.2.2
Bundler Version:1.7.4
Rake Version:   10.4.2
Sidekiq Version:2.17.0

GitLab information
Version:        7.4.2
Revision:       477743a
Directory:      /home/git/gitlab
DB Adapter:     mysql2
URL:            https://GitHub.lcl.loc/gitlab
HTTP Clone URL: https://GitHub.lcl.loc/gitlab/some-project.git
SSH Clone URL:  git@GitHub.lcl.loc:some-project.git
Using LDAP:     no
Using Omniauth: no

GitLab Shell
Version:        2.0.1
Repositories:   /home/git/repositories/
Hooks:          /home/git/gitlab-shell/hooks/
Git:            /usr/bin/git
scientistnik
  • 343
  • 4
  • 19

3 Answers3

2

app/assets/stylesheets/application.scss#L5 should include jquery.ui.datepicker.

Not jquety.ui.datepicker, which (indeed) does not exist.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • jquety.ui.datepicker really not. And what next? I don't understand what to do( How douwnload this in Debian console?! – scientistnik Apr 13 '15 at 11:42
  • @Nikolay my question is: do you have `jquety` in `application.scss#L5`? or `jquery`? `jquery` exists. `jquety` looks like a type. – VonC Apr 13 '15 at 11:43
  • "*= require jquery.ui.datepicker" - this 5 line in file app/assets/stylesheets/application.scss#L5 – scientistnik Apr 13 '15 at 11:47
  • @Nikolay then could you do an *exact* copy-and-paste of the error message, because your question includes `jquety`, not `jquery`. – VonC Apr 13 '15 at 11:48
  • I am sorry, but I cann't copy text. Or don't khow how this do. Text not emit. – scientistnik Apr 13 '15 at 11:51
  • @Nikolay can you add other details to your question? (your environment, your version before and after the update, ...) – VonC Apr 13 '15 at 11:53
1

I found a solution in this link. Need rename jquery.ui.datepicker to jquery-ui/datepicker and jquery.ui.autocomplete to jquery-ui/autocomplete in file /home/git/gitlab/app/assets/stylesheets/application.scss.

Community
  • 1
  • 1
scientistnik
  • 343
  • 4
  • 19
0

In my case I've GitLab with external Nginx. Restarting nginx all go back to normal.

service nginx restart
Giulio Roggero
  • 1,692
  • 1
  • 16
  • 11