go-gitea / gitea

Git with a cup of tea! Painless self-hosted all-in-one software development service, including Git hosting, code review, team collaboration, package registry and CI/CD
https://gitea.com
MIT License
45.03k stars 5.49k forks source link

Unrecognized descriptor: @168h #1341

Closed camlafit closed 7 years ago

camlafit commented 7 years ago

Description

Hi

I use 386 binary from https://dl.gitea.io With 1.0.1, gitea run without problem : su -l git -s /bin/bash -c "/var/opt/gitea/gitea web --config /var/opt/gitea/webelys/custom/conf/app.ini"

If I update binary to 1.0.2 or more recent 1.1.x, I get this error : Unrecognized descriptor: @168h

2017/03/20 17:06:37 [I] Log Mode: File(Info)
2017/03/20 17:06:37 [I] XORM Log Mode: File(Info)
2017/03/20 17:06:37 [I] Cache Service Enabled
2017/03/20 17:06:37 [I] Session Service Enabled
2017/03/20 17:06:37 [I] Migration: generate and migrate wiki Git hooks
2017/03/20 17:06:38 [I] Git Version: 2.1.4
2017/03/20 17:06:38 [...modules/cron/cron.go:28 NewContext()] [E] Cron[Update mirrors]: Unrecognized descriptor: @168h
camlafit commented 7 years ago

Ok

About this was a mistmake. Config file in 1.0.1 allowed this :

[cron.update_mirrors]
SCHEDULE = @168h

But since 1.0.2 is not valid, must be updated to :

[cron.update_mirrors]
SCHEDULE = @every 168h