Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better logging of no space left on disk #7413

Closed
2 of 7 tasks
mjarkk opened this issue Jul 10, 2019 · 1 comment
Closed
2 of 7 tasks

Better logging of no space left on disk #7413

mjarkk opened this issue Jul 10, 2019 · 1 comment
Labels
type/proposal The new feature has not been accepted yet but needs to be discussed first.

Comments

@mjarkk
Copy link

mjarkk commented Jul 10, 2019

  • Gitea version (or commit ref): 1.7, 1.8, 1.8.3, 1.9 (Docker version)
  • Git version: (Unknown due to usage of docker container)
  • Operating system: CoreOS
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist: (This is a log from v1.8)
2019/07/10 09:14:46 [I] Gitea vbafa9ff built with go1.11.9 : bindata, sqlite, sqlite_unlock_notify
2019/07/10 09:14:51 [T] AppPath: /app/gitea/gitea
2019/07/10 09:14:51 [T] AppWorkPath: /app/gitea
2019/07/10 09:14:51 [T] Custom path: /data/gitea
2019/07/10 09:14:51 [T] Log path: /data/gitea/log
2019/07/10 09:14:52 [T] AppPath: /app/gitea/gitea
2019/07/10 09:14:52 [T] AppWorkPath: /app/gitea
2019/07/10 09:14:52 [T] Custom path: /data/gitea
2019/07/10 09:14:52 [T] Log path: /data/gitea/log
2019/07/10 09:14:53 [T] AppPath: /app/gitea/gitea
2019/07/10 09:14:53 [T] AppWorkPath: /app/gitea
2019/07/10 09:14:53 [T] Custom path: /data/gitea
2019/07/10 09:14:53 [T] Log path: /data/gitea/log
2019/07/10 09:14:54 [T] AppPath: /app/gitea/gitea
2019/07/10 09:14:54 [T] AppWorkPath: /app/gitea
2019/07/10 09:14:54 [T] Custom path: /data/gitea
2019/07/10 09:14:54 [T] Log path: /data/gitea/log
2019/07/10 09:14:55 [T] AppPath: /app/gitea/gitea
2019/07/10 09:14:55 [T] AppWorkPath: /app/gitea
2019/07/10 09:14:55 [T] Custom path: /data/gitea
2019/07/10 09:14:55 [T] Log path: /data/gitea/log
2019/07/10 09:14:56 [T] AppPath: /app/gitea/gitea
2019/07/10 09:14:56 [T] AppWorkPath: /app/gitea
2019/07/10 09:14:56 [T] Custom path: /data/gitea
2019/07/10 09:14:56 [T] Log path: /data/gitea/log
2019/07/10 09:14:57 [T] AppPath: /app/gitea/gitea
2019/07/10 09:14:57 [T] AppWorkPath: /app/gitea
2019/07/10 09:14:57 [T] Custom path: /data/gitea
2019/07/10 09:14:57 [T] Log path: /data/gitea/log
2019/07/10 09:14:58 [T] AppPath: /app/gitea/gitea
2019/07/10 09:14:58 [T] AppWorkPath: /app/gitea
2019/07/10 09:14:58 [T] Custom path: /data/gitea
2019/07/10 09:14:58 [T] Log path: /data/gitea/log
2019/07/10 09:14:59 [T] AppPath: /app/gitea/gitea
2019/07/10 09:14:59 [T] AppWorkPath: /app/gitea
2019/07/10 09:14:59 [T] Custom path: /data/gitea
2019/07/10 09:14:59 [T] Log path: /data/gitea/log
2019/07/10 09:15:00 [T] AppPath: /app/gitea/gitea
2019/07/10 09:15:00 [T] AppWorkPath: /app/gitea
2019/07/10 09:15:00 [T] Custom path: /data/gitea
2019/07/10 09:15:00 [T] Log path: /data/gitea/log
2019/07/10 09:15:01 [T] AppPath: /app/gitea/gitea
2019/07/10 09:15:01 [T] AppWorkPath: /app/gitea
2019/07/10 09:15:01 [T] Custom path: /data/gitea
2019/07/10 09:15:01 [T] Log path: /data/gitea/log
...
...

Description

Today i made a push to the server and noticed after that that the server stopped working.
After a way to long time debugging i found the problem being that the disk was 100% full.

Somewhere in a gitea issue i found a notice about not having not enough space and that's how i finally found why gitea crashed.

It would be great if gitea shows me that i've not enough space left on the disk because the current logging (see logging) doesn't help a lot.

If it's not possible to show that i don't have enough disk space it would be at least nice if there was some more verbose logging in the docker logs.

Screenshots

Gitea did not start So i only have a 503 proxy error what is not worth making a screenshot of.

@lunny lunny added the type/proposal The new feature has not been accepted yet but needs to be discussed first. label Jul 10, 2019
@wxiaoguang
Copy link
Contributor

The logger system has changed a lot, maybe it could print better messages now?

Feel free to reopen if there is still something to be improved.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type/proposal The new feature has not been accepted yet but needs to be discussed first.
Projects
None yet
Development

No branches or pull requests

3 participants