-
-
Notifications
You must be signed in to change notification settings - Fork 221
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
Problem: Airtime playout fails to start without minimal locale setup. #317
Comments
I successfully installed Libretime in Debian Stretch, just needed to change a few files and it installed without any issues, although I needed to add a few missing packages. I will create a new branch with the modifications asap. |
I'll be happy to merge them, I got sidetracked with running vagrant on libvirt when I tried to test the install on Stretch. There really isn't any reason for running LibreTime on anything older than Stretch except that the installer needs to learn about Stretch and the docs need updating. See #303 for more info on this. |
Added Debian Stretch support #318 |
This might be a Raspbian specific issue, can you post the output of the installer script to help us figure out what is failing? |
You need to use the git installer for now, sorry about not mentioning that earlier. I'll to a tarball release that contains the fixes very soon. |
Oh also, you might need to hack the installer script to support Rasbian, previous Raspberry Pi users seem to have used Debian on the device. |
Virgin Debian 9.1 Stretch install failing... Airtime playout service fails to start airtime-playout.service: Failed to set invocation ID on control group /system.slice/airtime-playout.service, ignoring: Operation not permitted
|
You seem to be on a minimal install without locale. localectl set-locale LANG="en_US.utf8" Also, no need for upstart, the installer configures systemd, you can use something like this: # check status
systemctl status airtime-playout
# look at logs:
journalctl -u airtime-playout
# follow logs:
journalctl -u airtime-playout -fn The bug from #334 might also be affecting you if you are on master. |
You're correct about the minimal install without locale... Using a new VPS for development purposes that apparently didn't set the locale. My prod VPS service allows me to install from iso so I don't run into this issue. Using your command wasn't enough as postgresql coughed on the locale... For some reason dpkg-reconfigure locales didn't work for me either. The following commands worked for me to get every entry populated with correct locale. Anyone else using this who is not en_US may want to use their own for this command...
reboot to apply... |
This issue was moved to http://discourse.libretime.org/t/install-libretime-on-stretch-9-1/30 |
This issue popped up again. So I think there is an actual bug. I'm going to modify the description but basically the issue is some VPS are provided without basic locale and this causes issues with airtime-playout and so we should be able to alleviate this by adding a line to the install code that does this automatically. I'd just like to setup a virtualbox image where I can recreate this. |
It probably makes sense to add a check for the locale to the installer, we should also add something to that effect to the docs. For the time being I added some hints to the known issues section of the docs. |
We ran into some locale issues with postgresql while testing #678 and also #670 so I was thinking that this could be a good place to discuss how we want to deal with unset or non-UTF 8 locale during setup. Detecting and failing the installer is one possible solution but I'm not sure the best script to use to do this sort of detection. Once we have determined that the locale isn't set or it isn't UTF-8 compatible then we could provide them with the choice of setting it to a default such as en_US.utf8 or failing and providing the user with instructions for how to set it to what they want it to be. I'd think that most non US language setups would already be utf8 compatible, so as long as we don't override a pre-existing and working locale setting it when detecting a failed state wouldn't be the end of the world. Also it shouldn't affect the UI language choice and considering we only support LibreTime on a single box it isn't likely to affect other software. |
So we found out that the generic vagrant box had a lot of issues because it didn't appear to have utf8 installed by default. In addition to the missing install. A potential solution to this would be for the installer to detect a missing or non-utf8 locale and to error out and provide a link to a manual page for how to best resolve the issue. The other option would be for it to detect a non-utf8 or missing locale issue and then attempt to resolve the issue by setting things to a default en-us/utf8. I'm leaning towards the first option because it is easier for us but I guess my bigger question is how would something like this affect the debian package as I suspect we will run into a lot more users deploying this way. |
I can prompt and configure locale in the deb if it isn't set already. Requiring a restart after install can also be documented. Really though, the long term fix is to port stuff to python 3 and have utf-8 support built in |
Yeah you are right about the python 3 upgrade to the various python services. |
Since we are planning on merging python3 this will hopefully be resolved by #951 and so I'm going to remove it from the release 3 beta blockers. |
With Python 3 support now landed, what is needed to test that this fixed? |
I suppose we need to figure out how to setup a debian instance w/o locales test that it fails in Python 2.7 and then update it and see if it works in the latest ? I don't know it was only ever triggered by certain VPS providers that had really minimal images shipped. We could also just close it and re-open it if people report the problem. Doing some basic research it seems like locales should be generated in general. Not an expert on this or the history of why there is a locale called C but it seems like when that is setup vs. a specific locale this triggered the problem in the past. This StackOverflow post has some more details about the locale being set to C. So I guess we should see if libretime works with the locale set to C at this point. |
We could probably disable the locale generation stuff in the install script and see what happens. That should leave C to be the only locale in minimal installs (not sure if Vagrant will work here, depends on how the images were built) |
I would like to solve this, how can I reproduce it ? As @paddatrapper suggested, I think we can remove the locale generation and see what happens, a lot has changed since the issue was first raised. |
My guess would be an LXC container? Not sure |
Installing libretime on stretch 9.1 is not supported. Any update on this?
The text was updated successfully, but these errors were encountered: