Skip to content
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

Unable to start the compiled wakapi on Linux/windows with "dev" config #703

Closed
justin-jiajia opened this issue Nov 3, 2024 · 1 comment

Comments

@justin-jiajia
Copy link
Contributor

justin-jiajia commented Nov 3, 2024

Describe the bug
I'm unable to start wakapi on Linux or windows with "dev" in config or without the config.yml.

I just downloaded the latest release here. I could correctly run it. Then I changed the env: production into env: dev that would stop it from starting with the logs below.

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0xeb9b71]

goroutine 1 [running]:
github.com/muety/wakapi/config.(*Config).IsDev(...)
        /home/runner/work/wakapi/wakapi/config/config.go:228
github.com/muety/wakapi/config.Log()
        /home/runner/work/wakapi/wakapi/config/sentry.go:31 +0x31
github.com/muety/wakapi/config.readColors()
        /home/runner/work/wakapi/wakapi/config/config.go:444 +0x126
github.com/muety/wakapi/config.Load({0x1258356, 0xa}, {0x1254449, 0x7})
        /home/runner/work/wakapi/wakapi/config/config.go:488 +0x319
main.main()
        /home/runner/work/wakapi/wakapi/main.go:122 +0x138

The same thing happened without the config file("dev"as default).

I have tested it on windows and the same thing happened.

However, I built and ran it on Github Codespaces and it ran as excepted.

System information
Please provide information on:

  • Wakapi version: 2.12.1
  • Operating system
    • If Linux: which distro?
justin-jiajia@jiajia:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.1 LTS
Release:        22.04
Codename:       jammy
@muety muety closed this as completed in a1ebc24 Nov 3, 2024
@muety
Copy link
Owner

muety commented Nov 3, 2024

New release coming soon!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants