-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Static files not embeded #338
Comments
$ ./listmonk --config=/tmp/config.toml --install
2021/05/05 16:37:33 main.go:84: v0.9.0-beta (e90fb1d 2021-02-13T12:41:40Z)
2021/05/05 16:37:33 init.go:98: reading config: /tmp/config.toml
2021/05/05 16:37:33 init.go:175: connecting to db: localhost:9432/listmonk
** first time installation **
** IMPORTANT: This will wipe existing listmonk tables and types in the DB 'listmonk' **
continue (y/n)? y
2021/05/05 16:37:34 install.go:134: Setup complete
2021/05/05 16:37:34 install.go:135: Run the program and access the dashboard at 0.0.0.0:9000 ^ The binary is fine. I suspect this could have something to do with |
I put the binary in I can't think what more permissions it should have, 755 for a static binary should be correct. |
What OS are you running this on? The binary definitely has static files embedded, does work cross-platform, and is in production in many environments. This must have something to do with permissions somehow (or SELinux, if you've that running?). This is the binary downloaded from the releases page.
|
I'm using Arch Linux, and specifically setting up packaging for the distribution. There are three flavors of packaging, all of which I'm getting configured:
All of the builds add config file backups, a systemd service, creation of a non privileged user, etc. The builds for the first two make no attempt to embed static files at all and place them in a known system location. The third of course should have them built in. This issue is specifically about listmonk-bin using the upstream built binary. SELinux is not involved at all. |
Given the discussion on #340 I finally figured out what the difference is here. The distribution packaging system by default runs Normally when this fails for any reason the binary just won't run at all (e.g. Thanks for your time trying to figure it out. |
Whew, that explains it :) |
Having downloaded the v0.9.0-beta generic linux build and trying to run, I'm faced with this message:
I read #20 which seems to be the same issue it repeatedly suggests this is a problem with "old versions, try the new one". However it looks like something new has not gotten embeded properly.
The text was updated successfully, but these errors were encountered: