0

We are hosting a Verdaccio 3.4.0 npm private registry within docker.

It use a mounted volume to store packages.

For some reason, the container started to crash, it can now start but it can't see any packages:

image

I have checked and the mounted volumes is still: /verdaccio/storage

I noticed that the disk space was full, but even after cleaning more than half of the full disk space, it keep saying there's no packages published.

This is becoming critical since it impacts all our CI,

How can I restore the state of my server?

4

1 回答 1

1

为了传播知识,我们有一个关于这个问题的聊天(verdaccio community chat )。你的理由是:

  • 硬盘空间不足导致 Verdaccio 无法创建或修改文件。
  • 由于第一点,您的数据库已损坏(空),提醒一下,Verdaccio 打开文件并尝试写入,特别是当您发布新包时的数据库

解决方案很简单,清除磁盘中的一些空间,重新启动服务器并从备份中恢复以前的.sinopia-db.json数据库。

始终保持备份:-)

于 2020-03-11T14:32:10.660 回答