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

set_admin_user action broken #226

Closed
Gredin67 opened this issue Dec 23, 2020 · 8 comments
Closed

set_admin_user action broken #226

Gredin67 opened this issue Dec 23, 2020 · 8 comments
Labels

Comments

@Gredin67
Copy link

Hi @Josue-T did you change something that could have affected yunohost app action run $synapse_instance set_admin_user -a username=$whatsappbot
I get following error log:
https://paste.yunohost.org/raw/canezeqiku

@Josue-T
Copy link

Josue-T commented Mar 30, 2021

Do you still a an issue about this ?

@Josue-T Josue-T added the bug label Mar 30, 2021
@Gredin67
Copy link
Author

Gredin67 commented Apr 1, 2021

Yes, I am still using a custom command because it was not working
https://github.com/YunoHost-Apps/mautrix_whatsapp_ynh/blob/testing/scripts/install#L315L316
Did you change something that I should test?

@benneti
Copy link

benneti commented Sep 17, 2021

I get the same error when running yunohost app action run synapse set_admin_user -a username=telegrambot as root.

Warning: Warning: This feature is experimental and not considered stable, you should not use it unless you know what you are doing.
Warning: Warning: This feature is experimental and not considered stable, you should not use it unless you know what you are doing.
Warning: could not change directory to "/etc/yunohost/apps/synapse": Permission denied
Success! Action successed!

@Gredin67
Copy link
Author

This is still broken, but I don't need it if #229 is solved with spaces

@nomore1007
Copy link

nomore1007 commented Feb 19, 2024

I get the following python error when running this command.

Traceback (most recent call last):
File "/usr/bin/yunohost", line 77, in
yunohost.cli(
File "/usr/lib/python3/dist-packages/yunohost/init.py", line 41, in cli
ret = moulinette.cli(
File "/usr/lib/python3/dist-packages/moulinette/init.py", line 110, in cli
Cli(
File "/usr/lib/python3/dist-packages/moulinette/interfaces/cli.py", line 503, in run
ret = self.actionsmap.process(args, timeout=timeout)
File "/usr/lib/python3/dist-packages/moulinette/actionsmap.py", line 580, in process
return func(**arguments)
File "/usr/lib/python3/dist-packages/yunohost/log.py", line 410, in func_wrapper
result = func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/yunohost/app.py", line 1880, in app_action_run
return AppConfigPanel(app).run_action(
File "/usr/lib/python3/dist-packages/yunohost/utils/configpanel.py", line 263, in run_action
action_id = action.split(".")[2]
IndexError: list index out of range

@Josue-T
Copy link

Josue-T commented Feb 20, 2024

This feature has been removed by the yunohost core so it's not more available. But I added here an equivalent script which can be run by user.

@nomore1007
Copy link

Thank you. I was able to get it to work with the command on the install page, but I need to submit a change on it.

@Josue-T
Copy link

Josue-T commented Mar 9, 2024

Should be fixed and documented in packaging v2

@Josue-T Josue-T closed this as completed Mar 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants