gitlab - 更新GitLab后,输出错误CSS

标签 gitlab

更新(omnibus-gitlab)后,当“仪表板|”时Gitlab'加载,输出错误:

"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'

更新 7.4.2 之前的 GitLab。

$ 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

我的环境:

$ 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:  <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="ec8b8598acab8598a4998ec2808f80c280838f" rel="noreferrer noopener nofollow">[email protected]</a>: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

最佳答案

app/assets/stylesheets/application.scss#L5应包含jquery.ui.datepicker

不是jquety.ui.datepicker,它(确实)不存在。

关于gitlab - 更新GitLab后,输出错误CSS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29603643/

相关文章:

gitlab - 作业脚本在 gitlab ci 中在哪里运行?

git - 如果Git Workflow具有增量版本控制功能,为什么我们需要语义版本控制?

添加/删除 SSH key 时出现 Gitlab 500 错误

jira - 将 JIRA 问题迁移到 GitLab?

Gitlab api 在合并请求中获取提交

github - 从github镜像到gitlab

nginx - 重新创建 gitlabs nginx conf 文件

gitlab - 如何编写自定义GitLab审批规则?

amazon-web-services - GitLab Ci/Cd 到 Amazon LightSail

ruby - Errno::EACCES:通过 gitlab 安装 gems 时权限被拒绝