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

[BUG]: utils install in docker fails due to missing /home/username directory #42

Closed
laundmo opened this issue Jan 22, 2024 · 2 comments
Closed
Assignees
Labels
Maybe bug Unconfirmed bug

Comments

@laundmo
Copy link

laundmo commented Jan 22, 2024

Bot Version

v4.1.0

Hosting method

Other

Plugins

Extended Utils

Summary

Utils installaion tries to install as user, can't due to no user home folder

What happened?

I'm hosting the Modmail bot in Docker. There is no home folder for the user running the bot, so the installation fails trying to user-install the dependency.

Error Logs

discord.ext.commands.errors.ExtensionFailed: Extension 'plugins.Jerrie-Aries.modmail-plugins.utils-master.utils' raised an error: RuntimeError: Unable to install requirements:
ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: '/home/modmail'
Check the permissions.


The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/modmailbot/cogs/plugins.py", line 404, in plugins_add
    await self.load_plugin(plugin)
  File "/modmailbot/cogs/plugins.py", line 265, in load_plugin
    raise InvalidPluginError("Cannot load extension, plugin invalid.") from exc
cogs.plugins.InvalidPluginError: Cannot load extension, plugin invalid.

Screenshots

No response

Additional Information

Fix idea: ability to override the venv detection with a ENV var, to use a global install in docker.

@laundmo laundmo added the Maybe bug Unconfirmed bug label Jan 22, 2024
@laundmo
Copy link
Author

laundmo commented Jan 22, 2024

there is a USING_DOCKER env set by the Dockerfile of Modmail which can be used

@laundmo
Copy link
Author

laundmo commented Jan 22, 2024

nevermind, this is a Modmail side issue: modmail-dev/Modmail#3323

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

No branches or pull requests

2 participants