Gitea: RPI 4B : Gitea 1.11.4 keeps restarting every 30 seconds

Created on 3 May 2020  路  6Comments  路  Source: go-gitea/gitea

  • Gitea version (or commit ref): gitea-1.11.4-linux-arm-6
  • Git version: 2.20.1
  • Operating system: Raspbian Buster
  • Database (use [x]):

    • [ ] PostgreSQL

    • [X] MySQL

    • [ ] MSSQL

    • [ ] SQLite

  • Can you reproduce the bug at https://try.gitea.io:

    • [ ] Yes (provide example URL)

    • [ ] No

    • [X] Not relevant

  • Log gist:

Description

Hi,

I've installed Gitea on a Raspberry Pi 4B and I noticed in the syslog file that Gitea service keeps stopping and restarting every ~30 seconds.

Here's a part of my /var/log/syslog file log.txt.

I installed it following the documentation : Installation from binary

It works fine except every ~30 seconds it's not available while it's restarting.

Any ideas ?
thanks

kinquestion

All 6 comments

You should also check the gitea.log probably found in /var/lib/gitea/log/ or wherever is your GITEA_WORK_DIR/log.

Afterwards, search the error written in the log. There is a high possibility that someone else also stumbled to a similar issue.

PS - I think that Raspbian doesn't support MySql 8 it supports MariaDB so this might also be your problem?! Don't take my word for it. But, when I installed on my Raspberry Pi I used PostgreSQL.

Thanks for your reply.
I had a look at the log file one error was :

2020/05/02 19:18:43 ...eue/queue_wrapped.go:67:setInternal() [W] [Attempt: 798] Failed to create queue: level for task cfg: {/var/lib/gitea/data/queues/task 1000 20 1 6 1s 5m0s 5 task-level} error: leveldb: manifest corrupted (field 'comparer'): missing [file=MANIFEST-000038]

So I tried to delete index files as described here : #7013.
But it didn't fix it, it keeps restarting.

Here's the latest gitea log file, maybe it can help...

gitea.log.tar.gz

Relevant line in the log:

2020/05/03 21:43:36 ...eue/queue_wrapped.go:67:setInternal() [W] [Attempt: 692] Failed to create queue: level for task cfg: {/var/lib/gitea/data/queues/task 1000 20 1 6 1s 5m0s 5 task-level} error: leveldb: manifest corrupted (field 'comparer'): missing [file=MANIFEST-000038]

also

2020/05/03 21:43:20 ...eue/queue_wrapped.go:67:setInternal() [W] [Attempt: 7] Failed to create queue: level for  cfg: [123 34 65 100 100 114 101 115 115 101 115 34 58 34 34 44 34 66 97 116 99 104 76 101 110 103 116 104 34 58 50 48 44 34 66 108 111 99 107 84 105 109 101 111 117 116 34 58 49 48 48 48 48 48 48 48 48 48 44 34 66 111 111 115 116 84 105 109 101 111 117 116 34 58 51 48 48 48 48 48 48 48 48 48 48 48 44 34 66 111 111 115 116 87 111 114 107 101 114 115 34 58 53 44 34 68 66 73 110 100 101 120 34 58 48 44 34 68 97 116 97 68 105 114 34 58 34 47 118 97 114 47 108 105 98 47 103 105 116 101 97 47 100 97 116 97 47 113 117 101 117 101 115 47 105 115 115 117 101 95 105 110 100 101 120 101 114 34 44 34 77 97 120 87 111 114 107 101 114 115 34 58 49 48 44 34 78 97 109 101 34 58 34 105 115 115 117 101 95 105 110 100 101 120 101 114 34 44 34 78 101 116 119 111 114 107 34 58 34 34 44 34 80 97 115 115 119 111 114 100 34 58 34 34 44 34 81 117 101 117 101 76 101 110 103 116 104 34 58 50 48 44 34 81 117 101 117 101 78 97 109 101 34 58 34 105 115 115 117 101 95 105 110 100 101 120 101 114 95 113 117 101 117 101 34 44 34 87 111 114 107 101 114 115 34 58 49 125] error: leveldb: manifest corrupted (field 'comparer'): missing [file=MANIFEST-000038]

Translated from ASCII:

{"Addresses":"","BatchLength":20,"BlockTimeout":1000000000,"BoostTimeout":300000000000,"BoostWorkers":5,"DBIndex":0,"DataDir":"/var/lib/gitea/data/queues/issue_indexer","MaxWorkers":10,"Name":"issue_indexer","Network":"","Password":"","QueueLength":20,"QueueName":"issue_indexer_queue","Workers":1}

This sounds like an abrupt shutdown corrupted your queue databases. You should try deleting the /var/lib/gitea/data/queues/task directory. If that is not enough, you may need to delete all the directories below queues.

Fixed.

I had to delete the index files and all the directories below queues and now it works fines.
Thanks for your help.

Yaaay! 馃帀

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghost picture ghost  路  3Comments

BNolet picture BNolet  路  3Comments

jakimfett picture jakimfett  路  3Comments

haytona picture haytona  路  3Comments

jonasfranz picture jonasfranz  路  3Comments