can not open gitea web after restart #13753

Closed
opened 2025-11-02 10:52:11 -06:00 by GiteaMirror · 5 comments
Owner

Originally created by @Leo2442926161 on GitHub (Nov 25, 2024).

Description

Hi folks,
I installed gitea with Docker on my SBC and I had pushed a lot code to my repository, after several days, I restarted my SBC, I can not visit to my git web anymore.

I tried to run iotop and it seems keep reading from disk for hours, has anyone knows how to solve this? the docker logs is attached, please check out, thans very much.

docker ps
CONTAINER ID   IMAGE                COMMAND                  CREATED       STATUS          PORTS                                                                                          NAMES
3ce78aa0dfb3   gitea/gitea:latest   "/usr/bin/entrypoint…"   2 weeks ago   Up 22 minutes   0.0.0.0:2222->2222/tcp, :::2222->2222/tcp, 22/tcp, 0.0.0.0:3000->3000/tcp, :::3000->3000/tcp   gitea

gitea.log

Gitea Version

latest

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

running on ubuntu with docker

Database

None

Originally created by @Leo2442926161 on GitHub (Nov 25, 2024). ### Description Hi folks, I installed gitea with Docker on my SBC and I had pushed a lot code to my repository, after several days, I restarted my SBC, I can not visit to my git web anymore. I tried to run iotop and it seems keep reading from disk for hours, has anyone knows how to solve this? the docker logs is attached, please check out, thans very much. ``` docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 3ce78aa0dfb3 gitea/gitea:latest "/usr/bin/entrypoint…" 2 weeks ago Up 22 minutes 0.0.0.0:2222->2222/tcp, :::2222->2222/tcp, 22/tcp, 0.0.0.0:3000->3000/tcp, :::3000->3000/tcp gitea ``` [gitea.log](https://github.com/user-attachments/files/17898292/gitea.log) ### Gitea Version latest ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version _No response_ ### Operating System _No response_ ### How are you running Gitea? running on ubuntu with docker ### Database None
GiteaMirror added the issue/needs-feedback label 2025-11-02 10:52:11 -06:00
Author
Owner

@lunny commented on GitHub (Nov 25, 2024):

Can you try to enter the container and run gitea manually?

@lunny commented on GitHub (Nov 25, 2024): Can you try to enter the container and run gitea manually?
Author
Owner

@Leo2442926161 commented on GitHub (Nov 25, 2024):

Thanks Lunny, I've entered docker container and stop/start gitea, I got same problem.

seems it's retriving data from my disk, the web is keeping in wait stauts, I could open somethings but didn't show up all of my git repository.

is there any other command should I run?

@Leo2442926161 commented on GitHub (Nov 25, 2024): Thanks Lunny, I've entered docker container and stop/start gitea, I got same problem. seems it's retriving data from my disk, the web is keeping in wait stauts, I could open somethings but didn't show up all of my git repository. is there any other command should I run?
Author
Owner

@Leo2442926161 commented on GitHub (Nov 25, 2024):

I am wondering that if gitea retrieves data from disk at boot stage everytime? if yes, does that means it takes a lot time at boot stage?

I am also curious when will gitea need to retrieve all of data from disk?

@Leo2442926161 commented on GitHub (Nov 25, 2024): I am wondering that if gitea retrieves data from disk at boot stage everytime? if yes, does that means it takes a lot time at boot stage? I am also curious when will gitea need to retrieve all of data from disk?
Author
Owner

@yp05327 commented on GitHub (Nov 27, 2024):

Some possibly related logs:
image
image
image

I can see many Slow SQL Query in ScheduleTask, but it should not block the web access?
And looks like that the web access is working but the DB is frozen because of these slow queries. (DB is SQLite)
@lunny

@yp05327 commented on GitHub (Nov 27, 2024): Some possibly related logs: ![image](https://github.com/user-attachments/assets/41574ee4-f57e-4a53-9c23-07a2fe5d057e) ![image](https://github.com/user-attachments/assets/f1d8259b-ab8d-4689-90c0-d8f5dfe35df8) ![image](https://github.com/user-attachments/assets/25e444d8-42b4-4be6-b2d9-e0072d05b408) I can see many `Slow SQL Query` in ScheduleTask, but it should not block the web access? And looks like that the web access is working but the DB is frozen because of these slow queries. (DB is SQLite) @lunny
Author
Owner

@GiteaBot commented on GitHub (Dec 28, 2024):

We close issues that need feedback from the author if there were no new comments for a month. 🍵

@GiteaBot commented on GitHub (Dec 28, 2024): We close issues that need feedback from the author if there were no new comments for a month. :tea:
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#13753