Backup from ARM and restore on 64bits
M5oul opened this issue · 0 comments
M5oul commented
The binary for ARM is backup and do not works on 64bits processor architecture:
./gogs web
-bash: ./gogs: cannot execute binary file: Exec format error
I tried an upgrade, and get these errors:
gogs@moul:/opt/gogs$ ./gogs web
2017/09/27 14:28:53 [TRACE] Custom path: /opt/gogs/custom
2017/09/27 14:28:53 [TRACE] Log path: /var/log/gogs
2017/09/27 14:28:53 [TRACE] Log Mode: File (Trace)
2017/09/27 14:28:53 [ INFO] Gogs: Go Git Service 0.11.0.0403
panic: template: user/auth/login:31: function "AppSubURL" not defined
goroutine 1 [running]:
html/template.Must(0x0, 0x16e7e60, 0xc4207b9820, 0x0)
/usr/local/go/src/html/template/template.go:360 +0x54
github.com/gogits/gogs/vendor/gopkg.in/macaron%2ev1.compile(0xc420500640, 0x13, 0xc4204ab840, 0x1, 0x1, 0x0, 0x0, 0xc420500680, 0x2, 0x2, ...)
/home/vagrant/gopath/src/github.com/gogits/gogs/vendor/gopkg.in/macaron.v1/render.go:292 +0x4cc
github.com/gogits/gogs/vendor/gopkg.in/macaron%2ev1.(*TemplateSet).Set(0xc420510390, 0xf42185, 0x7, 0xc420480e10, 0x0)
/home/vagrant/gopath/src/github.com/gogits/gogs/vendor/gopkg.in/macaron.v1/render.go:318 +0x63
github.com/gogits/gogs/vendor/gopkg.in/macaron%2ev1.renderHandler(0xc420500640, 0x13, 0xc4204ab840, 0x1, 0x1, 0x0, 0x0, 0xc420500680, 0x2, 0x2, ...)
/home/vagrant/gopath/src/github.com/gogits/gogs/vendor/gopkg.in/macaron.v1/render.go:385 +0x18d
github.com/gogits/gogs/vendor/gopkg.in/macaron%2ev1.Renderer(0xc4201811e8, 0x1, 0x1, 0xa, 0x1)
/home/vagrant/gopath/src/github.com/gogits/gogs/vendor/gopkg.in/macaron.v1/render.go:422 +0x172
github.com/gogits/gogs/cmd.newMacaron(0xc42037fcc0)
/home/vagrant/gopath/src/github.com/gogits/gogs/cmd/web.go:110 +0x5cf
github.com/gogits/gogs/cmd.runWeb(0xc42037fcc0, 0x0, 0xc42037fcc0)
/home/vagrant/gopath/src/github.com/gogits/gogs/cmd/web.go:166 +0x74
github.com/gogits/gogs/vendor/github.com/urfave/cli.HandleAction(0xe26e20, 0xf846d0, 0xc42037fcc0, 0xc420386a00, 0x0)
/home/vagrant/gopath/src/github.com/gogits/gogs/vendor/github.com/urfave/cli/app.go:483 +0xb9
github.com/gogits/gogs/vendor/github.com/urfave/cli.Command.Run(0xf3d71a, 0x3, 0x0, 0x0, 0x0, 0x0, 0x0, 0xf50e4d, 0x10, 0x0, ...)
/home/vagrant/gopath/src/github.com/gogits/gogs/vendor/github.com/urfave/cli/command.go:193 +0xb72
github.com/gogits/gogs/vendor/github.com/urfave/cli.(*App).Run(0xc4200f3860, 0xc42000c140, 0x2, 0x2, 0x0, 0x0)
/home/vagrant/gopath/src/github.com/gogits/gogs/vendor/github.com/urfave/cli/app.go:250 +0x7d0
main.main()
/home/vagrant/gopath/src/github.com/gogits/gogs/gogs.go:41 +0x3ea
tail -f /var/log/gogs/gogs.log
2017/09/27 14:28:53 [TRACE] Log Mode: File (Trace)
2017/09/27 14:28:53 [ INFO] Gogs: Go Git Service 0.11.0.0403
2017/09/27 14:28:53 [ INFO] Cache Service Enabled
2017/09/27 14:28:53 [ INFO] Session Service Enabled
2017/09/27 14:28:53 [ INFO] Mail Service Enabled
2017/09/27 14:28:53 [ INFO] Notify Mail Service Enabled
2017/09/27 14:28:53 [ INFO] Git Version: 2.1.4
2017/09/27 14:28:53 [ INFO] SQLite3 Supported
2017/09/27 14:28:53 [ INFO] Run Mode: Production
2017/09/27 14:28:53 [TRACE] Doing: CheckRepoStats