GitLab Errno::ENOSPC:设备@dir\u s\u mkdir上没有剩余空间
在运行了很长时间的作业后,我的GitLab(docker容器上)变得不可用,我相信它充满了tmp文件、元数据或其他内容。当我尝试做备份时,我意识到磁盘已满,我得到下面的错误 我解决这个问题的方法是将磁盘大小增加一倍,现在至少我可以工作了 我在容器GitLab Errno::ENOSPC:设备@dir\u s\u mkdir上没有剩余空间,gitlab,gitlab-omnibus,gitlab-ce,Gitlab,Gitlab Omnibus,Gitlab Ce,在运行了很长时间的作业后,我的GitLab(docker容器上)变得不可用,我相信它充满了tmp文件、元数据或其他内容。当我尝试做备份时,我意识到磁盘已满,我得到下面的错误 我解决这个问题的方法是将磁盘大小增加一倍,现在至少我可以工作了 我在容器gitlab ctl registry垃圾收集-m()中运行了这个命令,可以释放3GB的空间 我认为这是Linux inode的一个问题,但正如您在下面看到的,它不是。GitLab的官方文档有时非常优秀,但有时会出现循环 我不知道我应该删除什么来获得空间
gitlab ctl registry垃圾收集-m
()中运行了这个命令,可以释放3GB的空间
我认为这是Linux inode的一个问题,但正如您在下面看到的,它不是。GitLab的官方文档有时非常优秀,但有时会出现循环
我不知道我应该删除什么来获得空间,总的来说,我不知道下一次如何避免这个问题,在Gitlab论坛上搜索,但不知何故没有明确的提示或疑难解答
如果我再运行一次那个作业,我会再次崩溃磁盘,这让我感到震惊
关于删除什么、添加什么以避免这种情况,或者如何为此实施一些内务管理或警报,您有什么想法吗?/etc/gitlab/gitlab.rb
,谢谢
docker exec -t gitlab gitlab-backup create
rake aborted!
Errno::ENOSPC: No space left on device @ dir_s_mkdir - /tmp/prometheus-mmap20201110-4631-1eio26e
/opt/gitlab/embedded/service/gitlab-rails/config/initializers/7_prometheus_metrics.rb:18:in `<top (required)>'
/opt/gitlab/embedded/service/gitlab-rails/config/environment.rb:5:in `<top (required)>'
/opt/gitlab/embedded/bin/bundle:23:in `load'
/opt/gitlab/embedded/bin/bundle:23:in `<main>'
Tasks: TOP => gitlab:backup:create => gitlab_environment => environment
(See full trace by running task with --trace)
Gitlab版本
root@gitlab:/# gitlab-rake gitlab:env:info
System information
System:
Proxy: no
Current User: git
Using RVM: no
Ruby Version: 2.6.6p146
Gem Version: 2.7.10
Bundler Version:1.17.3
Rake Version: 12.3.3
Redis Version: 5.0.9
Git Version: 2.28.0
Sidekiq Version:5.2.9
Go Version: unknown
GitLab information
Version: 13.4.4-ee
Revision: 4196ccb4738
Directory: /opt/gitlab/embedded/service/gitlab-rails
DB Adapter: PostgreSQL
DB Version: 11.9
URL: https://
HTTP Clone URL: https://
SSH Clone URL: git@
Elasticsearch: no
Geo: no
Using LDAP: no
Using Omniauth: yes
Omniauth Providers:
GitLab Shell
Version: 13.7.0
Repository storage paths:
- default: /var/opt/gitlab/git-data/repositories
GitLab Shell path: /opt/gitlab/embedded/service/gitlab-shell
Git: /opt/gitlab/embedded/bin/git
您是否在同一台机器上安装了GitLab和GitLab runner?@Rekovni我为runner和GitLab安装了不同的机器。我是否也应该在跑步者身上寻找一些东西呢;从您的问题的声音来看,
在运行了很长时间的作业之后,我的GitLab(docker容器上)变得不可用
,似乎GitLab runner机器的磁盘空间不足,而不是GitLab服务器本身。我会看看那里发生了什么。您还可以使用ncdu
查看GitLab服务器本身占用的空间
root@gitlab:/# gitlab-rake gitlab:env:info
System information
System:
Proxy: no
Current User: git
Using RVM: no
Ruby Version: 2.6.6p146
Gem Version: 2.7.10
Bundler Version:1.17.3
Rake Version: 12.3.3
Redis Version: 5.0.9
Git Version: 2.28.0
Sidekiq Version:5.2.9
Go Version: unknown
GitLab information
Version: 13.4.4-ee
Revision: 4196ccb4738
Directory: /opt/gitlab/embedded/service/gitlab-rails
DB Adapter: PostgreSQL
DB Version: 11.9
URL: https://
HTTP Clone URL: https://
SSH Clone URL: git@
Elasticsearch: no
Geo: no
Using LDAP: no
Using Omniauth: yes
Omniauth Providers:
GitLab Shell
Version: 13.7.0
Repository storage paths:
- default: /var/opt/gitlab/git-data/repositories
GitLab Shell path: /opt/gitlab/embedded/service/gitlab-shell
Git: /opt/gitlab/embedded/bin/git