-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sqlite3 err: disk I/O error: invalid argument in Linux 2.6.36.4brcmarm armv7l GNU/Linux ARM Cortex-A9 #32907
Comments
I think this problem may be related to the old Linux kernel, but I can't confirm it yet. |
thanks reply. I really need help. older versions like 1.21.x or 1.18.x can not be run in my device. see:
|
Linux kernel 2.6.36.4 should be supported by Golang v1.23, but will not be in Golang v1.24. |
I believe Gitea only supports down to kernel version 3.0 due to how we compile our binaries for CGO |
it's so sad... it seems well but only sqlite currently. |
Maybe #32628 can resolve this. |
#32628 will not depend on CGO. So you can cross-compile easily. |
I try branch master merge #32628 run and out put:
I try do i miss something. |
GOARM=5 GOARCH=arm That should select the correct architecture |
You can use the file command to view the format information of the executable file. |
Thanks to eeyrjmr. it's right. I have been build a arm5 version with go pure sqlite and it can be run in my device. And, "disk I/O error" happend again. I also write a demo only use ncruces/go-sqlite3 and it also cause "disk I/O error". I maybe figure it out next time. it's a well try, at least. #32628 so good for droping cgo. However, makefile need some modify, like gcc flags. |
On Linux my SQLite driver uses OFD locks, which showed up in Linux 3.15 (2017, all currently supported versions have it). On other systems, my advice would be to try the Just be careful that, if you use build tags, don't do database maintenance while gitea is running (no Litestream, no online backups, no vacuuming the database using the |
thanks bro. it works in my ncruces go-sqlite demo and gitea. gitea build with #32628: I'll try next. maybe with cgo version sqlite or postgresql. |
It's possible the SQLite driver is to blame. The performance depends on the JIT compiler which only supports amd64 and arm64. See the support matrix: |
hi everyone. I try more case. flow is my result Linux 2.6.36.4 armv7l with Pure Go Lite solutions, There is some data race maybe:
And. gitea cost lost of memory likely 200+MB. I think that maybe many one like me to see a low cost self-host git server. so Gogs could be better. Gogs cost like 20~30MB. Is't better to create a new issue for this resource cost? Maybe some build tagsis better for poor device building? So. I fork gogs and fix some security problems waiting gitea to be better. thanks bro. |
Description
Dears.
I use gogs 0.13.x + postgres before and want update to gitea for security in my device ARM5 Cortex-A9 Linux 2.6.36.4brcmarm.
then it makes some troblue in sqlite with
disk I/O error: invalid argument
. maybe pr 32628 pr 20614 would help???env
operators 1
step:
/home/git/gitea/
with./gitea web --port 3001 --verbose
Initial Configuration
, db change intosqlite
and just clickInstall Gitea
button with other defualt settingsThe database settings are invalid: disk I/O error: invalid argument
ls /home/git/gitea/data/gitea.db
exist, but 0 sizeoperators 2
and I try next:
custom
data
) into this ARM5 device../gitea web --port 3001 --verbose
then can see log bellow:Gitea Version
1.22.0 - 1.22.6 and v1.23.0-rc0
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
Git Version
git version 2.39.2
Operating System
Linux XXX 2.6.36.4brcmarm armv7l GNU/Linux
How are you running Gitea?
su - git -c "cd /home/git/gitea && ./gitea-1.23.0-rc0-linux-arm-5 web --verbose"
Database
SQLite
The text was updated successfully, but these errors were encountered: