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
Sopel Appears to not know the Python PATH #1604
Comments
Went googling about for similar errors and found rkt/rkt#2322… Is this happening under SELinux? I'm kinda grasping at whatever, since I don't have that much time to dig into this, but if you have a chance to run with It's possible (even likely) that this has nothing to do with the CLI rework, and everything to do with how Sopel's restart function actually works. We might be able to work around it with tweaks to the example service unit files, or we might be able to change how restarting works when loading/startup is sufficiently refactored (@Exirel continues to make steady progress on that front). Or both. Who knows? |
Im afk, but Ubuntu 18.04 |
Ubuntu is a distro and SELinux is an access control module, but you're probably using AppArmor then instead unless something changed in recent Ubuntu versions. AppArmor and SELinux serve the same purpose, so you'll only have one or the other. This Ubuntu bug looks possibly related: https://bugs.launchpad.net/cloud-images/+bug/1791691 |
And that's why you don't want to use old-style services with systemd and why you don't want to handle a restart yourself with systemd. |
@Exirel So, do you have a suggestion for handling this case, then? Should Sopel try to detect when it's running under systemd (or whatever other service manager) and refuse to honor the restart command? Or do we fix this by tweaking the example unit files? I really want to avoid removing functionality from Sopel run as a standalone process just because it doesn't play nicely with Sopel run under a service manager. :/ |
@dgw well, if Sopel isn't run as a daemon (ie. it's a new-style service), both If it is run as a daemon, then the service unit for systemd must be configured for that purpose. See also: the
|
Well, if passed |
Exactly! :) And one day I'll extract the whole daemon feature out of Sopel into a |
Switching from |
I have restarted my bot several times, and had thought the issue had gone away, Just caught an instance of it. However, I have been seeing it less frequently with |
@deathbybandaid have you seen this at all recently on any |
I'll have to check, I've been restarting with systemctl since |
Been a long time since this saw any activity, so let's close it out. It can be reopened if the symptom is observed again. |
Whilst utilizing
bot.restart()
The bot occasionally hangs during the shutdown procedure (about 1 out of 4 uses ofbot.restart
). This did not occur prior to the recent updates to cli.Traceback:
Then all the modules shutdown procedures happen
The Bot then hangs for a few minutes before the bot actually restarts:
This is possible related to the bot being run via systemd.
systemd file:
I can provide additional information if needbe.
The text was updated successfully, but these errors were encountered: