Closed jorge-vitrubio closed 1 year ago
Experienced the same issue.
Resolved by removing the line app_service_config_files:
from /etc/matrix-synapse/conf.d/app_service.yaml
The file above had only that line, with no other configuration options. Now the file is completely empty.
I do not have any config files in /etc/matrix-synapse/app-service/
Commit which gave me the clue: b1968a55cb1ab413e5c4a7e2b1082760a7fae6d9
so, I did as you said, I commented that line so would have no effect.
yunohos app upgrade synaptic
yunohost backup restore synapse-pre-upgrade
ended_at: 2023-06-05 08:32:49.392472
error: "Could not restore synapse: Something unexpected went wrong: \nTraceback (most\
\ recent call last):\n File \"/usr/lib/python3/dist-packages/yunohost/backup.py\"\
, line 1465, in _restore_app\n permission_create(\n File \"/usr/lib/python3/dist-packages/yunohost/log.py\"\
, line 410, in func_wrapper\n result = func(*args, **kwargs)\n File \"/usr/lib/python3/dist-packages/yunohost/permission.py\"\
, line 401, in permission_create\n raise YunohostValidationError(\"permission_already_exist\"\
, permission=permission)\nyunohost.utils.error.YunohostValidationError: Permission\
\ 'synapse.admin_api' already exists\n"
interface: cli
operation: backup_restore_app
parent: null
related_to:
- - app
- synapse
started_at: 2023-06-05 08:32:49.101353
success: false
yunohost_version: 11.1.20
============
2023-06-05 10:32:49,117: INFO - Restoring synapse...
2023-06-05 10:32:49,384: DEBUG - initializing ldap interface
2023-06-05 10:32:49,391: ERROR - Could not restore synapse: Something unexpected went wrong:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/yunohost/backup.py", line 1465, in _restore_app
permission_create(
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/permission.py", line 401, in permission_create
raise YunohostValidationError("permission_already_exist", permission=permission)
yunohost.utils.error.YunohostValidationError: Permission 'synapse.admin_api' already exists
now I am stuck with no option even to install a new synapse and loosing history
` yunohost app install synapse`
produces this errors
app: synapse
force: false
label: null
no_remove_on_failure: false
ended_at: 2023-06-05 08:35:09.329683
error: Permission 'synapse.main' already exists
interface: cli
operation: app_install
parent: null
related_to:
- - app
- synapse
started_at: 2023-06-05 08:35:09.287148
success: false
yunohost_version: 11.1.20
============
2023-06-05 10:35:09,310: INFO - Installing synapse...
so, in order to clean up permissions I followed this indications https://github.com/YunoHost-Apps/synapse_ynh/issues/329#issuecomment-1236519608
sudo yunohost tools shell -c "from yunohost.permission import permission_delete; permission_delete('synapse.main', force=True)"
sudo yunohost tools shell -c "from yunohost.permission import permission_delete; permission_delete('synapse.server_api', force=True)"
sudo yunohost tools shell -c "from yunohost.permission import permission_delete; permission_delete('synapse.server_client_infos', force=True)"
this allowed me to recover the bakcup but I am still stuck with the upgrade
so, How I solved it:
once I had the backup reinstalled, i did:
yunohost app synapse upgrade
app_service_config_files:
from /etc/matrix-synapse/conf.d/app_service.yaml
THANKS!!! @eclecticvx yunohost service restart matrix-synapse
and yunohost service restart coturn-synapse
reinstall my_webapp in main domain
now it looks like I have a working synapse
Describe the bug
applied update from synapse version 1.74.0~ynh1 to 1.84.1~ynh1
Context
Hardware: VPS bought online
yunohost-admin version: 11.1.9.4 (stable)
moulinette version: 11.1.4 (stable)
ssowat version: 11.1.4 (stable)
I have access to my server: Through SSH
Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: no
Steps to reproduce
on main domain i am running an html web page with my_webapp in html only mode
i am using matrix.domain.tdl for synapse but users resolve at USERNAME@domain.tdl
before applying upgrade i do backup the my_webapp for the main domian.
then i do remove the my_webapp on main domain
after that i do
yunohost tools update
andyunohost app upgrade synaptic
then I get this logs https://paste.yunohost.org/raw/lokokubodo
after that i do recover the
my_webapp
for the main domainExpected behavior
a connection to the synapse/ matrix from whatever app: using nheko in debian, and SchildiChat from f-droid in LineageOS
Logs
https://paste.yunohost.org/raw/lokokubodo
I have come back to the backup previous to the upgrade and the synapse install it is working ok, even with the
my_weapp
restored for the main domain.