[solved] Disks cannot power down because of pruning every 10 Min on SQLite

I am seeing the following every ten minutes:

2019/07/02 17:05:23 ...go-xorm/xorm/rows.go:50:newRows() [I] [SQL] SELECT `id`, `repo_id`, `interval`, `enable_prune`, `updated_unix`, `next_update_unix` FROM `mirror` WHERE (next_update_unix<=?) AND (next_update_unix!=0) []interface {}{1562087123}
2019/07/02 17:15:23 ...go-xorm/xorm/rows.go:50:newRows() [I] [SQL] SELECT `id`, `repo_id`, `interval`, `enable_prune`, `updated_unix`, `next_update_unix` FROM `mirror` WHERE (next_update_unix<=?) AND (next_update_unix!=0) []interface {}{1562087723}
2019/07/02 17:25:23 ...go-xorm/xorm/rows.go:50:newRows() [I] [SQL] SELECT `id`, `repo_id`, `interval`, `enable_prune`, `updated_unix`, `next_update_unix` FROM `mirror` WHERE (next_update_unix<=?) AND (next_update_unix!=0) []interface {}{1562088323}
2019/07/02 17:35:23 ...go-xorm/xorm/rows.go:50:newRows() [I] [SQL] SELECT `id`, `repo_id`, `interval`, `enable_prune`, `updated_unix`, `next_update_unix` FROM `mirror` WHERE (next_update_unix<=?) AND (next_update_unix!=0) []interface {}{1562088923}
2019/07/02 17:45:23 ...go-xorm/xorm/rows.go:50:newRows() [I] [SQL] SELECT `id`, `repo_id`, `interval`, `enable_prune`, `updated_unix`, `next_update_unix` FROM `mirror` WHERE (next_update_unix<=?) AND (next_update_unix!=0) []interface {}{1562089523}
2019/07/02 17:55:23 ...go-xorm/xorm/rows.go:50:newRows() [I] [SQL] SELECT `id`, `repo_id`, `interval`, `enable_prune`, `updated_unix`, `next_update_unix` FROM `mirror` WHERE (next_update_unix<=?) AND (next_update_unix!=0) []interface {}{1562090123}
2019/07/02 18:05:23 ...go-xorm/xorm/rows.go:50:newRows() [I] [SQL] SELECT `id`, `repo_id`, `interval`, `enable_prune`, `updated_unix`, `next_update_unix` FROM `mirror` WHERE (next_update_unix<=?) AND (next_update_unix!=0) []interface {}{1562090723}
2019/07/02 18:15:23 ...go-xorm/xorm/rows.go:50:newRows() [I] [SQL] SELECT `id`, `repo_id`, `interval`, `enable_prune`, `updated_unix`, `next_update_unix` FROM `mirror` WHERE (next_update_unix<=?) AND (next_update_unix!=0) []interface {}{1562091323}

This continuous request to the disk stops the disks from going on standby and saving power.

How can I disable this? or am I going to have to comment the line out on the code :wink:

  • Luis

Ok, looks like the issue is due to the Cron job and trying to Update Mirrors. Going to disable that or extend the clock.

SOLVED:

Added:

[cron.update_mirrors]
ENABLED = false

to the app.ini according to https://github.com/go-gitea/gitea/blob/68ec7b8be9d945ffb83431ba1113997cfc9e648c/modules/setting/cron.go#L54