FS#66259 - [gitea] fails to start due to wrong folder naming

Attached to Project: Community Packages
Opened by Mathieu (MrBeardedMan) - Tuesday, 14 April 2020, 20:51 GMT
Last edited by Maxime Gauduin (Alucryd) - Saturday, 18 April 2020, 05:23 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Maxime Gauduin (Alucryd)
Bruno Pagani (ArchangeGabriel)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 4
Private No

Details

Description:

options folder should be renamed conf during build process as mentioned here
https://github.com/go-gitea/gitea/issues/535#issuecomment-269671556

Additional info:
* using latest version from community repo: 1.11.4-2

Steps to reproduce:
try to start gitea and it will fail with following message:

panic: fail to set message file(en-US): open conf/locale/locale_en-US.ini: no such file or directory
This task depends upon

Closed by  Maxime Gauduin (Alucryd)
Saturday, 18 April 2020, 05:23 GMT
Reason for closing:  Duplicate
Additional comments about closing:   FS#66145 
Comment by Gerhard Bogner (slashME) - Wednesday, 15 April 2020, 09:15 GMT
going by https://github.com/go-gitea/gitea/issues/1014 this is due to not being built with TAGS="bindata"
Comment by Gerhard Bogner (slashME) - Wednesday, 15 April 2020, 09:21 GMT
downgrading to 1.11.1-1 from https://archive.archlinux.org/repos/2020/03/28/community/os/x86_64/gitea-1.11.1-1-x86_64.pkg.tar.zst works for now. in 1.11.3 some stylesheets and scripts can't be found and return http 404.
Comment by Maxime Gauduin (Alucryd) - Wednesday, 15 April 2020, 10:37 GMT
I'm not seeing this error, did you pacdiff your conf?
Comment by Bert (whisprin) - Wednesday, 15 April 2020, 22:06 GMT
Which database are you using @Alucryd ? I'm using mariadb and get the same error starting with:

[Warning] Aborted connection 2294 to db: 'gitea' user: 'gitea' host: 'localhost' (Got an error reading communication packets)
<stacktrace>
panic: fail to set message file(en-US): open conf/locale/locale_en-US.ini: no such file or directory

I solved it by starting from the app.ini supplied by the package and manually updating values according to my previous config. Then I encountered the installation page of gitea with all values already filled in - finishing the installation and 1.11.4-2 is up and running
Comment by andy brandt (smorks) - Thursday, 16 April 2020, 03:39 GMT
i had the same issue, and running pacdiff fixed the issue.

it appears that the following entry was added to app.ini which should fix the issue.

STATIC_ROOT_PATH = /usr/share/gitea
Comment by Gerhard Bogner (slashME) - Thursday, 16 April 2020, 08:18 GMT
adding the STATIC_ROOT_PATH helped for me as well.

Loading...