YunoHost-Apps / synapse_ynh

Matrix server (synapse) package for YunoHost
https://matrix.org/
GNU General Public License v3.0
79 stars 42 forks source link

set_admin_user action broken #226

Closed Gredin67 closed 6 months ago

Gredin67 commented 3 years ago

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 commented 3 years ago

Do you still a an issue about this ?

Gredin67 commented 3 years ago

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 commented 2 years ago

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 commented 2 years ago

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

nomore1007 commented 6 months ago

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 commented 6 months ago

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 commented 6 months ago

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 commented 6 months ago

Should be fixed and documented in packaging v2