Dex (Outline) Update Error

The necessary RAM will also depend on what is currently running, maybe 4GB isn’t enough for your case ?
What’s sure is that your error above was caused by a lack of RAM, not a problem in the package script !

Hello,

I will make some additional tests, but only Yunohost and Outline are on this server.

Very strange…

It happened before than in some moments as it is a shared VPS the update fails because it is launched in the worst time and lacks RAM. I will try to get the proper error this time.

Thanks and sorry again for all the hassle involved.
Once I can get a proper error, hopefully I’ll be able to analyse it and solve your update problem

It seemed to work this time

description: Upgrade the 'outline' app
log_path: /var/log/yunohost/categories/operation/20240508-142722-app_upgrade-outline.log
logs:
  - 2024-05-08 14:37:54,623: DEBUG - + set +o xtrace
  - 2024-05-08 14:37:54,779: DEBUG - + set +o xtrace
  - 2024-05-08 14:37:54,831: DEBUG - + echo '! Helper used in legacy mode !'
  - 2024-05-08 14:37:54,832: DEBUG - + set +x
  - 2024-05-08 14:37:54,837: DEBUG - + echo '[###################.] > Reloading NGINX web server...'
  - 2024-05-08 14:37:54,838: DEBUG - + set -o xtrace
  - 2024-05-08 14:37:54,838: DEBUG - + ynh_systemd_action --service_name=nginx --action=reload
  - 2024-05-08 14:37:54,838: DEBUG - + local legacy_args=nalpte
  - 2024-05-08 14:37:54,839: DEBUG - + args_array=(['n']='service_name=' ['a']='action=' ['l']='line_match=' ['p']='log_path=' ['t']='timeout=' ['e']='length=')
  - 2024-05-08 14:37:54,839: DEBUG - + local -A args_array
  - 2024-05-08 14:37:54,839: DEBUG - + local service_name
  - 2024-05-08 14:37:54,839: DEBUG - + local action
  - 2024-05-08 14:37:54,839: DEBUG - + local line_match
  - 2024-05-08 14:37:54,840: DEBUG - + local length
  - 2024-05-08 14:37:54,840: DEBUG - + local log_path
  - 2024-05-08 14:37:54,840: DEBUG - + local timeout
  - 2024-05-08 14:37:54,840: DEBUG - + ynh_handle_getopts_args --service_name=nginx --action=reload
  - 2024-05-08 14:37:54,841: DEBUG - + set +o xtrace
  - 2024-05-08 14:37:54,841: INFO - [###################.] > Reloading NGINX web server...
  - 2024-05-08 14:37:55,000: DEBUG - + service_name=nginx
  - 2024-05-08 14:37:55,000: DEBUG - + action=reload
  - 2024-05-08 14:37:55,000: DEBUG - + line_match=
  - 2024-05-08 14:37:55,001: DEBUG - + length=20
  - 2024-05-08 14:37:55,001: DEBUG - + log_path=/var/log/nginx/nginx.log
  - 2024-05-08 14:37:55,001: DEBUG - + timeout=300
  - 2024-05-08 14:37:55,001: DEBUG - + '[' reload == stop ']'
  - 2024-05-08 14:37:55,001: DEBUG - + [[ -n '' ]]
  - 2024-05-08 14:37:55,001: DEBUG - + '[' reload == reload ']'
  - 2024-05-08 14:37:55,002: DEBUG - + action=reload-or-restart
  - 2024-05-08 14:37:55,002: DEBUG - ++ date --utc --rfc-3339=seconds
  - 2024-05-08 14:37:55,005: DEBUG - ++ cut -d+ -f1
  - 2024-05-08 14:37:55,009: DEBUG - + local 'time_start=2024-05-08 14:37:55 UTC'
  - 2024-05-08 14:37:55,009: DEBUG - + systemctl reload-or-restart nginx
  - 2024-05-08 14:37:55,335: DEBUG - + [[ -n '' ]]
  - 2024-05-08 14:37:55,336: DEBUG - + ynh_script_progression '--message=Upgrade of outline completed' --last
  - 2024-05-08 14:37:55,336: DEBUG - + set +o xtrace
  - 2024-05-08 14:37:55,601: DEBUG - + set +o xtrace
  - 2024-05-08 14:37:55,626: DEBUG - + echo '! Helper used in legacy mode !'
  - 2024-05-08 14:37:55,627: DEBUG - + set +x
  - 2024-05-08 14:37:55,634: DEBUG - + echo '[####################] > Upgrade of outline completed'
  - 2024-05-08 14:37:55,635: INFO - [####################] > Upgrade of outline completed
  - 2024-05-08 14:37:55,635: DEBUG - + set -o xtrace
  - 2024-05-08 14:37:55,636: DEBUG - + ynh_exit_properly
  - 2024-05-08 14:37:55,636: DEBUG - + local exit_code=0
  - 2024-05-08 14:37:55,637: DEBUG - + [[ upgrade =~ ^install$|^upgrade$|^restore$ ]]
  - 2024-05-08 14:37:55,637: DEBUG - + rm -rf /var/cache/yunohost/download/
  - 2024-05-08 14:37:55,643: DEBUG - + '[' 0 -eq 0 ']'
  - 2024-05-08 14:37:55,644: DEBUG - + exit 0
  - 2024-05-08 14:37:56,659: DEBUG - Checking that required services are up and running...
  - 2024-05-08 14:37:58,389: SUCCESS - outline upgraded
metadata:
  ended_at: 2024-05-08 14:37:58
  env:
    BASH_XTRACEFD: 7
    NO_BACKUP_UPGRADE: 0
    YNH_APP_ACTION: upgrade
    YNH_APP_BASEDIR: /var/cache/yunohost/app_tmp_work_dirs/app_j6rx04tr
    YNH_APP_CURRENT_VERSION: 0.69.2.2~ynh1
    YNH_APP_ID: outline
    YNH_APP_INSTANCE_NAME: outline
    YNH_APP_INSTANCE_NUMBER: 1
    YNH_APP_MANIFEST_VERSION: 0.74.0~ynh1
    YNH_APP_PACKAGING_FORMAT: 1.0
    YNH_APP_UPGRADE_TYPE: UPGRADE_APP
    YNH_ARCH: amd64
    YNH_CWD: /var/cache/yunohost/app_tmp_work_dirs/app_j6rx04tr/scripts
    YNH_DEBIAN_VERSION: bullseye
    YNH_INTERFACE: cli
    YNH_STDRETURN: /tmp/tmp3gwke5t6/stdreturn
  error: None
  interface: cli
  operation: app_upgrade
  parent: None
  related_to:
    - app
    - outline
  started_at: 2024-05-08 14:27:22
  success: True
  yunohost_version: 11.2.11.3
metadata_path: /var/log/yunohost/categories/operation/20240508-142722-app_upgrade-outline.yml
name: 20240508-142722-app_upgrade-outline

I will try to do the rest of the updates later.

And Outline is still properly displaying everything, Yunohost works fine too.

Wow that’s a great step further !
Please first try to update Outline before Dex.
Once updated and once you are sure everything works, including import of pictures / export of backups you’ll be able to remove MinIO.

Updating to the latest available Outline version has been done with no issue.
Everything works fine. I just could not try the export of backups as I didn’t find the backup button.

Dex in the other hand still refuse to update properly.
The fix chmod 644 ~/.wget-hsts from @OniriCorpe who worked a while ago unfortunately doesn’t work anymore. At least the restoration after the failed upgrade works properly.

https://paste.yunohost.org/raw/meyalixiha
So once again stuck with a 404 error when trying to upgrade Dex.

I’m really glad that at least you have been able to upgrade Outline to the latest available version.
When you log into Outline, you can go to Preferences > Export > Export data.
This will create a backup of all your Outline documents, that will be sent as a link to your email and also available for future download at that exact same page.

Let’s now try to fix that Dex issue. From your logs it looks like a download issue, probably while downloading a go library needed to compile Dex. If you can find it, would be interesting to have a look at your /tmp/go-build.20240513055002.4072.log file ? Dex seems too long and hard to compile for what should remain a small helper app, bridging from OIDC to LDAP login. There is a tentative by @OniriCorpe to extract the executable from Docker (extract docker image by OniriCorpe · Pull Request #49 · YunoHost-Apps/dex_ynh · GitHub) which is probably a better approach than my pure compilation from sources way. I clearly don’t have the time to push it further at the moment, though. Let me have a look at your file first !

Also, I would suggest changing your MinIO app URL, just to be safe. If everything in Outline is still perfectly working after a few days then you can remove it as it’s no longer needed.

@FreeS still got your problem ?

Thank you very much for the help with Outline.
I will follow your advice for Minio.

Regarding Dex, the 4072.log is 1 line long and pretty uninteresting:

/tmp/go-build.20240513055002.4072 /var/cache/yunohost/app_tmp_work_dirs/app_2510rx93/scripts

Unfortunately I wouldn’t really have any other idea than launching the upgrade again, in command line debug mode to follow-up what’s happening in real time…

sudo yunohost app upgrade dex --force --debug

neither do i :confused:

Here is the result:

320  DEBUG initializing base actions map parser for cli
323  DEBUG loading actions map
326  DEBUG building parser...
360  DEBUG building parser took 0.034s
364  DEBUG acquiring lock...
393  DEBUG lock has been acquired
423  DEBUG loading python module yunohost.app took 0.029s
423  DEBUG processing action [35496.1]: yunohost.app.upgrade with args={'app': [                                                'dex'], 'url': None, 'file': None, 'force': True, 'no_safety_backup': False, 'co                                                ntinue_on_failure': False}
775  INFO Now upgrading dex…
859  DEBUG initializing ldap interface
1014 DEBUG Checking default branch
1508 DEBUG Downloading…
3392 DEBUG Done
3405 DEBUG Checking requirements for dex…
3426 INFO Creating a safety backup prior to the upgrade
3473 INFO Collecting files to be backed up for dex…
3503 DEBUG Executing command '['sh', '-c', '/bin/bash -x "/var/cache/yunohost/ap                                                p_tmp_work_dirs/app_gw7st3yu/scripts/backup"  7>&1']'
3516 DEBUG + source ../settings/scripts/_common.sh
3517 DEBUG ++ GO_VERSION=1.19
3517 DEBUG + source /usr/share/yunohost/helpers
3518 DEBUG +++ set +o
3519 DEBUG +++ grep xtrace
3524 DEBUG ++ readonly 'XTRACE_ENABLE=set -o xtrace'
3524 DEBUG ++ XTRACE_ENABLE='set -o xtrace'
3524 DEBUG ++ set +x
3573 DEBUG + ynh_abort_if_errors
3574 DEBUG + set -o errexit
3574 DEBUG + set -o nounset
3574 DEBUG + trap ynh_exit_properly EXIT
3575 DEBUG + ynh_print_info '--message=Loading installation settings...'
3575 DEBUG + local legacy_args=m
3575 DEBUG + args_array=(['m']='message=')
3575 DEBUG + local -A args_array
3576 DEBUG + local message
3576 DEBUG + ynh_handle_getopts_args '--message=Loading installation settings...                                                '
3577 DEBUG + set +o xtrace
3596 DEBUG + echo 'Loading installation settings...'
3596 DEBUG + app=dex
3597 INFO Loading installation settings...
3598 DEBUG ++ ynh_app_setting_get --app=dex --key=domain
3599 DEBUG ++ local _globalapp=dex
3599 DEBUG ++ local legacy_args=ak
3600 DEBUG ++ args_array=(['a']='app=' ['k']='key=')
3600 DEBUG ++ local -A args_array
3601 DEBUG ++ local app
3601 DEBUG ++ local key
3602 DEBUG ++ ynh_handle_getopts_args --app=dex --key=domain
3602 DEBUG ++ set +o xtrace
3680 DEBUG ++ app=dex
3681 DEBUG ++ [[ domain =~ (unprotected|protected|skipped)_ ]]
3681 DEBUG ++ ynh_app_setting get dex domain
3682 DEBUG ++ set +o xtrace
3861 DEBUG + domain=fr.docs.app.ioi.online
3862 DEBUG ++ ynh_app_setting_get --app=dex --key=path
3863 DEBUG ++ local _globalapp=dex
3864 DEBUG ++ local legacy_args=ak
3864 DEBUG ++ args_array=(['a']='app=' ['k']='key=')
3864 DEBUG ++ local -A args_array
3865 DEBUG ++ local app
3865 DEBUG ++ local key
3865 DEBUG ++ ynh_handle_getopts_args --app=dex --key=path
3866 DEBUG ++ set +o xtrace
3941 DEBUG ++ app=dex
3941 DEBUG ++ [[ path =~ (unprotected|protected|skipped)_ ]]
3942 DEBUG ++ ynh_app_setting get dex path
3943 DEBUG ++ set +o xtrace
4102 DEBUG + path_url=/
4103 DEBUG ++ ynh_app_setting_get --app=dex --key=final_path
4104 DEBUG ++ local _globalapp=dex
4105 DEBUG ++ local legacy_args=ak
4106 DEBUG ++ args_array=(['a']='app=' ['k']='key=')
4106 DEBUG ++ local -A args_array
4107 DEBUG ++ local app
4107 DEBUG ++ local key
4108 DEBUG ++ ynh_handle_getopts_args --app=dex --key=final_path
4108 DEBUG ++ set +o xtrace
4180 DEBUG ++ app=dex
4181 DEBUG ++ [[ final_path =~ (unprotected|protected|skipped)_ ]]
4182 DEBUG ++ ynh_app_setting get dex final_path
4182 DEBUG ++ set +o xtrace
4308 DEBUG + final_path=/opt/yunohost/dex
4309 DEBUG ++ ynh_app_setting_get --app=dex --key=port
4310 DEBUG ++ local _globalapp=dex
4311 DEBUG ++ local legacy_args=ak
4311 DEBUG ++ args_array=(['a']='app=' ['k']='key=')
4312 DEBUG ++ local -A args_array
4312 DEBUG ++ local app
4313 DEBUG ++ local key
4313 DEBUG ++ ynh_handle_getopts_args --app=dex --key=port
4313 DEBUG ++ set +o xtrace
4371 DEBUG ++ app=dex
4372 DEBUG ++ [[ port =~ (unprotected|protected|skipped)_ ]]
4372 DEBUG ++ ynh_app_setting get dex port
4373 DEBUG ++ set +o xtrace
4503 DEBUG + port=5556
4504 DEBUG ++ ynh_app_setting_get --app=dex --key=oidc_name
4505 DEBUG ++ local _globalapp=dex
4505 DEBUG ++ local legacy_args=ak
4505 DEBUG ++ args_array=(['a']='app=' ['k']='key=')
4506 DEBUG ++ local -A args_array
4506 DEBUG ++ local app
4506 DEBUG ++ local key
4506 DEBUG ++ ynh_handle_getopts_args --app=dex --key=oidc_name
4507 DEBUG ++ set +o xtrace
4574 DEBUG ++ app=dex
4574 DEBUG ++ [[ oidc_name =~ (unprotected|protected|skipped)_ ]]
4575 DEBUG ++ ynh_app_setting get dex oidc_name
4575 DEBUG ++ set +o xtrace
4685 DEBUG + oidc_name=Outline
4686 DEBUG ++ ynh_app_setting_get --app=dex --key=oidc_secret
4686 DEBUG ++ local _globalapp=dex
4687 DEBUG ++ local legacy_args=ak
4687 DEBUG ++ args_array=(['a']='app=' ['k']='key=')
4687 DEBUG ++ local -A args_array
4688 DEBUG ++ local app
4688 DEBUG ++ local key
4688 DEBUG ++ ynh_handle_getopts_args --app=dex --key=oidc_secret
4688 DEBUG ++ set +o xtrace
4748 DEBUG ++ app=dex
4749 DEBUG ++ [[ oidc_secret =~ (unprotected|protected|skipped)_ ]]
4749 DEBUG ++ ynh_app_setting get dex oidc_secret
4749 DEBUG ++ set +o xtrace
4873 DEBUG + oidc_secret=E7CFD381F0F3358E8E73A051934CC120B06C3D1C06489108CB87D3A                                                266CFE15E
4875 DEBUG ++ ynh_app_setting_get --app=dex --key=oidc_callback
4875 DEBUG ++ local _globalapp=dex
4876 DEBUG ++ local legacy_args=ak
4877 DEBUG ++ args_array=(['a']='app=' ['k']='key=')
4877 DEBUG ++ local -A args_array
4878 DEBUG ++ local app
4879 DEBUG ++ local key
4879 DEBUG ++ ynh_handle_getopts_args --app=dex --key=oidc_callback
4880 DEBUG ++ set +o xtrace
4941 DEBUG ++ app=dex
4942 DEBUG ++ [[ oidc_callback =~ (unprotected|protected|skipped)_ ]]
4943 DEBUG ++ ynh_app_setting get dex oidc_callback
4943 DEBUG ++ set +o xtrace
5052 DEBUG + oidc_callback=fr.docs.ioi.online/auth/oidc.callback
5052 DEBUG + ynh_print_info '--message=Declaring files to be backed up...'
5052 DEBUG + local legacy_args=m
5053 DEBUG + args_array=(['m']='message=')
5053 DEBUG + local -A args_array
5053 DEBUG + local message
5053 DEBUG + ynh_handle_getopts_args '--message=Declaring files to be backed up.                                                ..'
5053 DEBUG + set +o xtrace
5071 DEBUG + echo 'Declaring files to be backed up...'
5072 DEBUG + ynh_backup --src_path=/opt/yunohost/dex
5072 DEBUG + local legacy_args=sdbm
5073 INFO Declaring files to be backed up...
5073 DEBUG + args_array=(['s']='src_path=' ['d']='dest_path=' ['b']='is_big' ['m                                                ']='not_mandatory')
5073 DEBUG + local -A args_array
5074 DEBUG + local src_path
5074 DEBUG + local dest_path
5075 DEBUG + local is_big
5075 DEBUG + local not_mandatory
5075 DEBUG + ynh_handle_getopts_args --src_path=/opt/yunohost/dex
5076 DEBUG + set +o xtrace
5120 DEBUG + dest_path=
5121 DEBUG + is_big=0
5121 DEBUG + not_mandatory=0
5122 DEBUG + BACKUP_CORE_ONLY=1
5122 DEBUG + test -n dex
5122 DEBUG ++ ynh_app_setting_get --app=dex --key=do_not_backup_data
5123 DEBUG ++ local _globalapp=dex
5123 DEBUG ++ local legacy_args=ak
5124 DEBUG ++ args_array=(['a']='app=' ['k']='key=')
5124 DEBUG ++ local -A args_array
5125 DEBUG ++ local app
5125 DEBUG ++ local key
5125 DEBUG ++ ynh_handle_getopts_args --app=dex --key=do_not_backup_data
5126 DEBUG ++ set +o xtrace
5186 DEBUG ++ app=dex
5187 DEBUG ++ [[ do_not_backup_data =~ (unprotected|protected|skipped)_ ]]
5187 DEBUG ++ ynh_app_setting get dex do_not_backup_data
5188 DEBUG ++ set +o xtrace
5292 DEBUG + do_not_backup_data=
5293 DEBUG + '[' 0 -eq 1 ']'
5293 DEBUG + '[' '!' -e /opt/yunohost/dex ']'
5293 DEBUG ++ realpath /opt/yunohost/dex
5296 DEBUG + src_path=/opt/yunohost/dex
5296 DEBUG + [[ -z '' ]]
5297 DEBUG + dest_path=opt/yunohost/dex
5297 DEBUG + [[ -e opt/yunohost/dex ]]
5298 DEBUG + local rel_dir=/apps/dex/backup
5298 DEBUG + rel_dir=/apps/dex/backup/
5299 DEBUG + dest_path=/apps/dex/backup/opt/yunohost/dex
5300 DEBUG + dest_path=apps/dex/backup/opt/yunohost/dex
5301 DEBUG ++ sed --regexp-extended 's/"/\"\"/g'
5301 DEBUG ++ echo /opt/yunohost/dex
5303 DEBUG + local src=/opt/yunohost/dex
5304 DEBUG ++ echo apps/dex/backup/opt/yunohost/dex
5305 DEBUG ++ sed --regexp-extended 's/"/\"\"/g'
5309 DEBUG + local dest=apps/dex/backup/opt/yunohost/dex
5310 DEBUG + echo '"/opt/yunohost/dex","apps/dex/backup/opt/yunohost/dex"'
5311 DEBUG ++ dirname /home/yunohost.backup/tmp/dex-pre-upgrade1/apps/dex/backup                                                /opt/yunohost/dex
5315 DEBUG + mkdir --parents /home/yunohost.backup/tmp/dex-pre-upgrade1/apps/dex                                                /backup/opt/yunohost
5320 DEBUG + ynh_backup --src_path=/etc/nginx/conf.d/fr.docs.app.ioi.online.d/de                                                x.conf
5321 DEBUG + local legacy_args=sdbm
5321 DEBUG + args_array=(['s']='src_path=' ['d']='dest_path=' ['b']='is_big' ['m                                                ']='not_mandatory')
5322 DEBUG + local -A args_array
5323 DEBUG + local src_path
5324 DEBUG + local dest_path
5328 DEBUG + local is_big
5329 DEBUG + local not_mandatory
5330 DEBUG + ynh_handle_getopts_args --src_path=/etc/nginx/conf.d/fr.docs.app.io                                                i.online.d/dex.conf
5330 DEBUG + set +o xtrace
5389 DEBUG + dest_path=
5390 DEBUG + is_big=0
5390 DEBUG + not_mandatory=0
5391 DEBUG + BACKUP_CORE_ONLY=1
5392 DEBUG + test -n dex
5392 DEBUG ++ ynh_app_setting_get --app=dex --key=do_not_backup_data
5393 DEBUG ++ local _globalapp=dex
5394 DEBUG ++ local legacy_args=ak
5394 DEBUG ++ args_array=(['a']='app=' ['k']='key=')
5395 DEBUG ++ local -A args_array
5395 DEBUG ++ local app
5396 DEBUG ++ local key
5397 DEBUG ++ ynh_handle_getopts_args --app=dex --key=do_not_backup_data
5398 DEBUG ++ set +o xtrace
5464 DEBUG ++ app=dex
5465 DEBUG ++ [[ do_not_backup_data =~ (unprotected|protected|skipped)_ ]]
5466 DEBUG ++ ynh_app_setting get dex do_not_backup_data
5466 DEBUG ++ set +o xtrace
5604 DEBUG + do_not_backup_data=
5605 DEBUG + '[' 0 -eq 1 ']'
5605 DEBUG + '[' '!' -e /etc/nginx/conf.d/fr.docs.app.ioi.online.d/dex.conf ']'
5606 DEBUG ++ realpath /etc/nginx/conf.d/fr.docs.app.ioi.online.d/dex.conf
5609 DEBUG + src_path=/etc/nginx/conf.d/fr.docs.app.ioi.online.d/dex.conf
5609 DEBUG + [[ -z '' ]]
5609 DEBUG + dest_path=etc/nginx/conf.d/fr.docs.app.ioi.online.d/dex.conf
5610 DEBUG + [[ -e etc/nginx/conf.d/fr.docs.app.ioi.online.d/dex.conf ]]
5610 DEBUG + local rel_dir=/apps/dex/backup
5611 DEBUG + rel_dir=/apps/dex/backup/
5611 DEBUG + dest_path=/apps/dex/backup/etc/nginx/conf.d/fr.docs.app.ioi.online.                                                d/dex.conf
5612 DEBUG + dest_path=apps/dex/backup/etc/nginx/conf.d/fr.docs.app.ioi.online.d                                                /dex.conf
5612 DEBUG ++ sed --regexp-extended 's/"/\"\"/g'
5613 DEBUG ++ echo /etc/nginx/conf.d/fr.docs.app.ioi.online.d/dex.conf
5614 DEBUG + local src=/etc/nginx/conf.d/fr.docs.app.ioi.online.d/dex.conf
5615 DEBUG ++ echo apps/dex/backup/etc/nginx/conf.d/fr.docs.app.ioi.online.d/dex                                                .conf
5616 DEBUG ++ sed --regexp-extended 's/"/\"\"/g'
5620 DEBUG + local dest=apps/dex/backup/etc/nginx/conf.d/fr.docs.app.ioi.online.                                                d/dex.conf
5621 DEBUG + echo '"/etc/nginx/conf.d/fr.docs.app.ioi.online.d/dex.conf","apps/d                                                ex/backup/etc/nginx/conf.d/fr.docs.app.ioi.online.d/dex.conf"'
5622 DEBUG ++ dirname /home/yunohost.backup/tmp/dex-pre-upgrade1/apps/dex/backup                                                /etc/nginx/conf.d/fr.docs.app.ioi.online.d/dex.conf
5624 DEBUG + mkdir --parents /home/yunohost.backup/tmp/dex-pre-upgrade1/apps/dex                                                /backup/etc/nginx/conf.d/fr.docs.app.ioi.online.d
5628 DEBUG + ynh_backup --src_path=/etc/logrotate.d/dex
5628 DEBUG + local legacy_args=sdbm
5628 DEBUG + args_array=(['s']='src_path=' ['d']='dest_path=' ['b']='is_big' ['m                                                ']='not_mandatory')
5628 DEBUG + local -A args_array
5629 DEBUG + local src_path
5629 DEBUG + local dest_path
5629 DEBUG + local is_big
5629 DEBUG + local not_mandatory
5629 DEBUG + ynh_handle_getopts_args --src_path=/etc/logrotate.d/dex
5629 DEBUG + set +o xtrace
5701 DEBUG + dest_path=
5702 DEBUG + is_big=0
5702 DEBUG + not_mandatory=0
5702 DEBUG + BACKUP_CORE_ONLY=1
5703 DEBUG + test -n dex
5703 DEBUG ++ ynh_app_setting_get --app=dex --key=do_not_backup_data
5704 DEBUG ++ local _globalapp=dex
5705 DEBUG ++ local legacy_args=ak
5706 DEBUG ++ args_array=(['a']='app=' ['k']='key=')
5706 DEBUG ++ local -A args_array
5707 DEBUG ++ local app
5707 DEBUG ++ local key
5708 DEBUG ++ ynh_handle_getopts_args --app=dex --key=do_not_backup_data
5708 DEBUG ++ set +o xtrace
5779 DEBUG ++ app=dex
5779 DEBUG ++ [[ do_not_backup_data =~ (unprotected|protected|skipped)_ ]]
5780 DEBUG ++ ynh_app_setting get dex do_not_backup_data
5781 DEBUG ++ set +o xtrace
5932 DEBUG + do_not_backup_data=
5933 DEBUG + '[' 0 -eq 1 ']'
5933 DEBUG + '[' '!' -e /etc/logrotate.d/dex ']'
5934 DEBUG ++ realpath /etc/logrotate.d/dex
5937 DEBUG + src_path=/etc/logrotate.d/dex
5937 DEBUG + [[ -z '' ]]
5938 DEBUG + dest_path=etc/logrotate.d/dex
5938 DEBUG + [[ -e etc/logrotate.d/dex ]]
5938 DEBUG + local rel_dir=/apps/dex/backup
5939 DEBUG + rel_dir=/apps/dex/backup/
5939 DEBUG + dest_path=/apps/dex/backup/etc/logrotate.d/dex
5939 DEBUG + dest_path=apps/dex/backup/etc/logrotate.d/dex
5940 DEBUG ++ sed --regexp-extended 's/"/\"\"/g'
5941 DEBUG ++ echo /etc/logrotate.d/dex
5944 DEBUG + local src=/etc/logrotate.d/dex
5948 DEBUG ++ sed --regexp-extended 's/"/\"\"/g'
5949 DEBUG ++ echo apps/dex/backup/etc/logrotate.d/dex
5951 DEBUG + local dest=apps/dex/backup/etc/logrotate.d/dex
5952 DEBUG + echo '"/etc/logrotate.d/dex","apps/dex/backup/etc/logrotate.d/dex"'
5953 DEBUG ++ dirname /home/yunohost.backup/tmp/dex-pre-upgrade1/apps/dex/backup                                                /etc/logrotate.d/dex
5955 DEBUG + mkdir --parents /home/yunohost.backup/tmp/dex-pre-upgrade1/apps/dex                                                /backup/etc/logrotate.d
5962 DEBUG + ynh_backup --src_path=/etc/systemd/system/dex.service
5963 DEBUG + local legacy_args=sdbm
5964 DEBUG + args_array=(['s']='src_path=' ['d']='dest_path=' ['b']='is_big' ['m                                                ']='not_mandatory')
5965 DEBUG + local -A args_array
5965 DEBUG + local src_path
5966 DEBUG + local dest_path
5966 DEBUG + local is_big
5967 DEBUG + local not_mandatory
5968 DEBUG + ynh_handle_getopts_args --src_path=/etc/systemd/system/dex.service
5968 DEBUG + set +o xtrace
6046 DEBUG + dest_path=
6047 DEBUG + is_big=0
6047 DEBUG + not_mandatory=0
6048 DEBUG + BACKUP_CORE_ONLY=1
6049 DEBUG + test -n dex
6050 DEBUG ++ ynh_app_setting_get --app=dex --key=do_not_backup_data
6051 DEBUG ++ local _globalapp=dex
6052 DEBUG ++ local legacy_args=ak
6053 DEBUG ++ args_array=(['a']='app=' ['k']='key=')
6054 DEBUG ++ local -A args_array
6055 DEBUG ++ local app
6057 DEBUG ++ local key
6057 DEBUG ++ ynh_handle_getopts_args --app=dex --key=do_not_backup_data
6059 DEBUG ++ set +o xtrace
6129 DEBUG ++ app=dex
6130 DEBUG ++ [[ do_not_backup_data =~ (unprotected|protected|skipped)_ ]]
6130 DEBUG ++ ynh_app_setting get dex do_not_backup_data
6130 DEBUG ++ set +o xtrace
6273 DEBUG + do_not_backup_data=
6274 DEBUG + '[' 0 -eq 1 ']'
6274 DEBUG + '[' '!' -e /etc/systemd/system/dex.service ']'
6274 DEBUG ++ realpath /etc/systemd/system/dex.service
6277 DEBUG + src_path=/etc/systemd/system/dex.service
6278 DEBUG + [[ -z '' ]]
6278 DEBUG + dest_path=etc/systemd/system/dex.service
6279 DEBUG + [[ -e etc/systemd/system/dex.service ]]
6279 DEBUG + local rel_dir=/apps/dex/backup
6280 DEBUG + rel_dir=/apps/dex/backup/
6280 DEBUG + dest_path=/apps/dex/backup/etc/systemd/system/dex.service
6281 DEBUG + dest_path=apps/dex/backup/etc/systemd/system/dex.service
6281 DEBUG ++ sed --regexp-extended 's/"/\"\"/g'
6282 DEBUG ++ echo /etc/systemd/system/dex.service
6286 DEBUG + local src=/etc/systemd/system/dex.service
6288 DEBUG ++ echo apps/dex/backup/etc/systemd/system/dex.service
6289 DEBUG ++ sed --regexp-extended 's/"/\"\"/g'
6294 DEBUG + local dest=apps/dex/backup/etc/systemd/system/dex.service
6295 DEBUG + echo '"/etc/systemd/system/dex.service","apps/dex/backup/etc/system                                                d/system/dex.service"'
6295 DEBUG ++ dirname /home/yunohost.backup/tmp/dex-pre-upgrade1/apps/dex/backup                                                /etc/systemd/system/dex.service
6298 DEBUG + mkdir --parents /home/yunohost.backup/tmp/dex-pre-upgrade1/apps/dex                                                /backup/etc/systemd/system
6301 DEBUG + ynh_print_info '--message=Backup script completed for dex. (YunoHos                                                t will then actually copy those files to the archive).'
6301 DEBUG + local legacy_args=m
6302 DEBUG + args_array=(['m']='message=')
6303 DEBUG + local -A args_array
6303 DEBUG + local message
6304 DEBUG + ynh_handle_getopts_args '--message=Backup script completed for dex.                                                 (YunoHost will then actually copy those files to the archive).'
6304 DEBUG + set +o xtrace
6325 DEBUG + echo 'Backup script completed for dex. (YunoHost will then actually                                                 copy those files to the archive).'
6326 INFO Backup script completed for dex. (YunoHost will then actually copy tho                                                se files to the archive).
6327 DEBUG + ynh_exit_properly
6327 DEBUG + local exit_code=0
6327 DEBUG + [[ backup =~ ^install$|^upgrade$|^restore$ ]]
6327 DEBUG + '[' 0 -eq 0 ']'
6328 DEBUG + exit 0
7331 DEBUG Backup permission for dex
7460 INFO Creating a backup archive from the collected files…
7463 INFO The archive will contain about 37.2MB of data.
7464 DEBUG Creating the backup TAR archive…
8186 DEBUG TAR backup archive created
8187 SUCCESS Backup created: dex-pre-upgrade1
8197 DEBUG To view the log of the operation 'Create a backup archive', use the c                                                ommand 'yunohost log show 20240514-084710-backup_create'
8240 SUCCESS Backup deleted: dex-pre-upgrade2
8241 DEBUG Checking that required services are up and running...
10683 INFO Provisioning sources...
10684 DEBUG Prefetching asset main: https://github.com/dexidp/dex/archive/refs/t                                                ags/v2.39.1.tar.gz ...
11541 INFO Updating system_user...
11704 INFO Updating install_dir...
11716 WARNING Moving /opt/yunohost/dex to /var/www/dex... (this may take a while                                                )
11745 INFO Provisioning permissions...
11996 DEBUG Nothing to update in LDAP
12096 DEBUG Permission 'dex.main' updated
12097 DEBUG To view the log of the operation 'Update accesses for permission 'de                                                x'', use the command 'yunohost log show 20240514-084719-user_permission_update-d                                                ex'
12322 DEBUG Nothing to update in LDAP
12323 DEBUG Permission 'dex.main' updated
12429 DEBUG To view the log of the operation 'Update URL related to permission '                                                dex'', use the command 'yunohost log show 20240514-084719-permission_url-dex'
12566 DEBUG The permission database has been resynchronized
12800 DEBUG SSOwat configuration regenerated
12821 INFO Provisioning ports...
12871 DEBUG Executing command '['sh', '-c', '/bin/bash -x "./upgrade"  7>&1']'
12886 DEBUG + source _common.sh
12887 DEBUG ++ GO_VERSION=1.22.2
12888 DEBUG + source ynh_install_go
12888 DEBUG ++ goenv_install_dir=/opt/goenv
12888 DEBUG ++ go_version_path=/opt/goenv/versions
12889 DEBUG ++ export GOENV_ROOT=/opt/goenv
12889 DEBUG ++ GOENV_ROOT=/opt/goenv
12889 DEBUG + source /usr/share/yunohost/helpers
12891 DEBUG +++ set +o
12892 DEBUG +++ grep xtrace
12897 DEBUG ++ readonly 'XTRACE_ENABLE=set -o xtrace'
12897 DEBUG ++ XTRACE_ENABLE='set -o xtrace'
12898 DEBUG ++ set +x
12948 DEBUG + ynh_script_progression '--message=Stopping a systemd service...' -                                                -weight=1
12949 DEBUG + set +o xtrace
13046 DEBUG + set +o xtrace
13085 DEBUG + echo '! Helper used in legacy mode !'
13086 DEBUG + set +x
13087 INFO [+...................] > Stopping a systemd service...
13088 DEBUG + echo '[+...................] > Stopping a systemd service...'
13090 DEBUG + set -o xtrace
13091 DEBUG + ynh_systemd_action --service_name=dex --action=stop --log_path=/va                                                r/log/dex/dex.log
13091 DEBUG + local legacy_args=nalpte
13092 DEBUG + args_array=(['n']='service_name=' ['a']='action=' ['l']='line_matc                                                h=' ['p']='log_path=' ['t']='timeout=' ['e']='length=')
13094 DEBUG + local -A args_array
13095 DEBUG + local service_name
13096 DEBUG + local action
13097 DEBUG + local line_match
13097 DEBUG + local length
13098 DEBUG + local log_path
13099 DEBUG + local timeout
13100 DEBUG + ynh_handle_getopts_args --service_name=dex --action=stop --log_pat                                                h=/var/log/dex/dex.log
13101 DEBUG + set +o xtrace
13307 DEBUG + service_name=dex
13307 DEBUG + action=stop
13308 DEBUG + line_match=
13308 DEBUG + length=20
13308 DEBUG + log_path=/var/log/dex/dex.log
13309 DEBUG + timeout=300
13309 DEBUG + '[' stop == stop ']'
13310 DEBUG + systemctl is-active --quiet dex
13320 DEBUG + [[ -n '' ]]
13321 DEBUG + '[' stop == reload ']'
13323 DEBUG ++ cut -d+ -f1
13325 DEBUG ++ date --utc --rfc-3339=seconds
13330 DEBUG + local 'time_start=2024-05-14 08:47:20 UTC'
13331 DEBUG + systemctl stop dex
13369 DEBUG + [[ -n '' ]]
13369 DEBUG + ynh_script_progression '--message=Upgrading source files...' --wei                                                ght=1
13370 DEBUG + set +o xtrace
13489 DEBUG + set +o xtrace
13507 DEBUG + echo '! Helper used in legacy mode !'
13508 DEBUG + set +x
13513 DEBUG + echo '[#++.................] > Upgrading source files...'
13514 INFO [#++.................] > Upgrading source files...
13515 DEBUG + set -o xtrace
13515 DEBUG + ynh_setup_source --dest_dir=/var/www/dex --full_replace=1 --keep=c                                                onfig.yaml
13515 DEBUG + local legacy_args=dsk
13516 DEBUG + args_array=(['d']='dest_dir=' ['s']='source_id=' ['k']='keep=' ['r                                                ']='full_replace=')
13517 DEBUG + local -A args_array
13517 DEBUG + local dest_dir
13517 DEBUG + local source_id
13518 DEBUG + local keep
13518 DEBUG + local full_replace
13518 DEBUG + ynh_handle_getopts_args --dest_dir=/var/www/dex --full_replace=1 -                                                -keep=config.yaml
13518 DEBUG + set +o xtrace
13667 DEBUG + keep=config.yaml
13668 DEBUG + full_replace=1
13669 DEBUG + test -e /var/cache/yunohost/app_tmp_work_dirs/app_ruc35fo5/manifes                                                t.toml
13670 DEBUG + jq -e .resources.sources
13671 DEBUG + cat /var/cache/yunohost/app_tmp_work_dirs/app_ruc35fo5/manifest.to                                                ml
13675 DEBUG + toml_to_json
13676 DEBUG + python3 -c 'import toml, json, sys; print(json.dumps(toml.load(sys                                                .stdin)))'
13811 DEBUG + source_id=main
13813 DEBUG ++ cat /var/cache/yunohost/app_tmp_work_dirs/app_ruc35fo5/manifest.t                                                oml
13813 DEBUG ++ jq '.resources.sources["main"]'
13817 DEBUG ++ toml_to_json
13819 DEBUG ++ python3 -c 'import toml, json, sys; print(json.dumps(toml.load(sy                                                s.stdin)))'
13946 DEBUG + local 'sources_json={
13947 DEBUG   "url": "https://github.com/dexidp/dex/archive/refs/tags/v2.39.1.ta                                                r.gz",
13947 DEBUG   "sha256": "3a485e9562d35fc23c0b66fb3d3e46c5766780b0f620de643ca8494                                                ed368bab0",
13948 DEBUG   "autoupdate": {
13948 DEBUG     "strategy": "latest_github_tag"
13948 DEBUG   }
13949 DEBUG }'
13949 DEBUG + jq -re .url
14061 DEBUG https://github.com/dexidp/dex/archive/refs/tags/v2.39.1.tar.gz
14062 DEBUG + local arch_prefix=
14064 DEBUG ++ jq -r .url
14065 DEBUG ++ sed 's/^null$//'
14177 DEBUG + local src_url=https://github.com/dexidp/dex/archive/refs/tags/v2.3                                                9.1.tar.gz
14179 DEBUG ++ jq -r .sha256
14180 DEBUG ++ sed 's/^null$//'
14300 DEBUG + local src_sum=3a485e9562d35fc23c0b66fb3d3e46c5766780b0f620de643ca8                                                494ed368bab0
14301 DEBUG + local src_sumprg=sha256sum
14302 DEBUG ++ sed 's/^null$//'
14303 DEBUG ++ jq -r .format
14404 DEBUG + local src_format=
14405 DEBUG ++ jq -r .in_subdir
14406 DEBUG ++ sed 's/^null$//'
14514 DEBUG + local src_in_subdir=
14517 DEBUG ++ jq -r .extract
14518 DEBUG ++ sed 's/^null$//'
14618 DEBUG + local src_extract=
14620 DEBUG ++ jq -r .platform
14620 DEBUG ++ sed 's/^null$//'
14718 DEBUG + local src_platform=
14720 DEBUG ++ jq -r .rename
14720 DEBUG ++ sed 's/^null$//'
14805 DEBUG + local src_rename=
14805 DEBUG + [[ -n https://github.com/dexidp/dex/archive/refs/tags/v2.39.1.tar.                                                gz ]]
14806 DEBUG + [[ -n 3a485e9562d35fc23c0b66fb3d3e46c5766780b0f620de643ca8494ed368                                                bab0 ]]
14807 DEBUG + [[ -z '' ]]
14807 DEBUG + [[ https://github.com/dexidp/dex/archive/refs/tags/v2.39.1.tar.gz                                                 =~ ^.*\.zip$ ]]
14808 DEBUG + [[ https://github.com/dexidp/dex/archive/refs/tags/v2.39.1.tar.gz                                                 =~ ^.*/zipball/.*$ ]]
14808 DEBUG + [[ https://github.com/dexidp/dex/archive/refs/tags/v2.39.1.tar.gz                                                 =~ ^.*\.tar\.gz$ ]]
14809 DEBUG + src_format=tar.gz
14809 DEBUG + src_sumprg=sha256sum
14809 DEBUG + src_in_subdir=true
14810 DEBUG + src_format=tar.gz
14811 DEBUG ++ tr '[:upper:]' '[:lower:]'
14811 DEBUG ++ echo tar.gz
14812 DEBUG + src_format=tar.gz
14812 DEBUG + src_extract=true
14813 DEBUG + [[ true != \t\r\u\e ]]
14813 DEBUG + local local_src=/opt/yunohost-apps-src/dex/main
14814 DEBUG ++ dirname /var/cache/yunohost/download/dex/main
14817 DEBUG + mkdir -p /var/cache/yunohost/download/dex
14822 DEBUG + src_filename=/var/cache/yunohost/download/dex/main
14823 DEBUG + '[' tar.gz = docker ']'
14824 DEBUG + test -e /opt/yunohost-apps-src/dex/main
14824 DEBUG + '[' -n https://github.com/dexidp/dex/archive/refs/tags/v2.39.1.tar                                                .gz ']'
14825 DEBUG + '[' -e /var/cache/yunohost/download/dex/main ']'
14825 DEBUG + sha256sum --check --status
14828 DEBUG + echo '3a485e9562d35fc23c0b66fb3d3e46c5766780b0f620de643ca8494ed368                                                bab0 /var/cache/yunohost/download/dex/main'
14847 DEBUG + '[' '!' -e /var/cache/yunohost/download/dex/main ']'
14848 DEBUG + echo '3a485e9562d35fc23c0b66fb3d3e46c5766780b0f620de643ca8494ed368                                                bab0 /var/cache/yunohost/download/dex/main'
14850 DEBUG + sha256sum --check --status
14872 DEBUG + rm -rf /var/cache/yunohost/files_to_keep_during_setup_source/
14876 DEBUG + '[' -n config.yaml ']'
14876 DEBUG + '[' -e /var/www/dex ']'
14877 DEBUG + local keep_dir=/var/cache/yunohost/files_to_keep_during_setup_sour                                                ce/dex
14877 DEBUG + mkdir -p /var/cache/yunohost/files_to_keep_during_setup_source/dex
14880 DEBUG + local stuff_to_keep
14881 DEBUG + for stuff_to_keep in $keep
14882 DEBUG + '[' -e /var/www/dex/config.yaml ']'
14883 DEBUG ++ dirname /var/cache/yunohost/files_to_keep_during_setup_source/dex                                                /config.yaml
14886 DEBUG + mkdir --parents /var/cache/yunohost/files_to_keep_during_setup_sou                                                rce/dex
14890 DEBUG + cp --archive /var/www/dex/config.yaml /var/cache/yunohost/files_to                                                _keep_during_setup_source/dex/config.yaml
14895 DEBUG + '[' 1 -eq 1 ']'
14895 DEBUG + ynh_secure_remove --file=/var/www/dex
14896 DEBUG + local legacy_args=f
14897 DEBUG + args_array=(['f']='file=')
14897 DEBUG + local -A args_array
14898 DEBUG + local file
14898 DEBUG + ynh_handle_getopts_args --file=/var/www/dex
14899 DEBUG + set +o xtrace
14919 DEBUG + set +o xtrace
14988 DEBUG + mkdir --parents /var/www/dex
14992 DEBUG + '[' -n /var/www/dex ']'
14992 DEBUG + '[' /var/www/dex == /var/www/dex ']'
14993 DEBUG + _ynh_apply_default_permissions /var/www/dex
14993 DEBUG + local target=/var/www/dex
14995 DEBUG ++ ynh_read_manifest --manifest_key=requirements.yunohost
14995 DEBUG ++ tr -d '<>= '
14995 DEBUG ++ local legacy_args=mk
14996 DEBUG ++ args_array=(['m']='manifest=' ['k']='manifest_key=')
14997 DEBUG ++ local -A args_array
14997 DEBUG ++ local manifest
14997 DEBUG ++ local manifest_key
14998 DEBUG ++ ynh_handle_getopts_args --manifest_key=requirements.yunohost
14998 DEBUG ++ set +o xtrace
15034 DEBUG ++ '[' '!' -e '' ']'
15035 DEBUG ++ '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_ruc35fo5/manifes                                                t.json ']'
15035 DEBUG ++ '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_ruc35fo5/manifes                                                t.toml ']'
15036 DEBUG ++ manifest=/var/cache/yunohost/app_tmp_work_dirs/app_ruc35fo5/manif                                                est.toml
15036 DEBUG ++ grep -q '\.json$'
15037 DEBUG ++ echo /var/cache/yunohost/app_tmp_work_dirs/app_ruc35fo5/manifest.                                                toml
15041 DEBUG ++ cat /var/cache/yunohost/app_tmp_work_dirs/app_ruc35fo5/manifest.t                                                oml
15042 DEBUG ++ jq .requirements.yunohost --raw-output
15043 DEBUG ++ python3 -c 'import json, toml, sys; print(json.dumps(toml.load(sy                                                s.stdin)))'
15183 DEBUG + local ynh_requirement=null
15184 DEBUG + dpkg --compare-versions 2.0 ge 2
15188 DEBUG + chmod o-rwx /var/www/dex
15191 DEBUG + chmod g-w /var/www/dex
15193 DEBUG + chown -R root:root /var/www/dex
15207 DEBUG + ynh_system_user_exists dex
15207 DEBUG + local legacy_args=u
15208 DEBUG + args_array=(['u']='username=')
15208 DEBUG + local -A args_array
15209 DEBUG + local username
15209 DEBUG + ynh_handle_getopts_args dex
15212 DEBUG + set +o xtrace
15219 DEBUG + echo '! Helper used in legacy mode !'
15220 DEBUG + set +x
15222 DEBUG + getent passwd dex
15227 DEBUG + chown dex:dex /var/www/dex
15237 DEBUG + echo /var/www/dex
15238 DEBUG + grep -q '^/etc/cron\|/etc/php\|/etc/nginx/conf.d\|/etc/fail2ban\|/                                                etc/systemd/system'
15241 DEBUG + '[' -n '' ']'
15241 DEBUG + [[ true == \f\a\l\s\e ]]
15241 DEBUG + [[ tar.gz == \d\o\c\k\e\r ]]
15241 DEBUG + [[ tar.gz == \z\i\p ]]
15241 DEBUG + local strip=
15242 DEBUG + '[' true '!=' false ']'
15242 DEBUG + '[' true == true ']'
15242 DEBUG + local sub_dirs=1
15242 DEBUG + strip='--strip-components 1'
15242 DEBUG + [[ tar.gz =~ ^tar.gz|tar.bz2|tar.xz$ ]]
15242 DEBUG + tar --extract --file=/var/cache/yunohost/download/dex/main --direc                                                tory=/var/www/dex --strip-components 1
15327 DEBUG + ynh_secure_remove --file=/var/cache/yunohost/download/dex/main
15327 DEBUG + local legacy_args=f
15328 DEBUG + args_array=(['f']='file=')
15328 DEBUG + local -A args_array
15328 DEBUG + local file
15328 DEBUG + ynh_handle_getopts_args --file=/var/cache/yunohost/download/dex/ma                                                in
15329 DEBUG + set +o xtrace
15349 DEBUG + set +o xtrace
15372 DEBUG + '[' -d /var/cache/yunohost/app_tmp_work_dirs/app_ruc35fo5/sources/                                                patches/ ']'
15373 DEBUG + test -e /var/cache/yunohost/app_tmp_work_dirs/app_ruc35fo5/sources                                                /extra_files/main
15373 DEBUG + '[' -n config.yaml ']'
15374 DEBUG + local keep_dir=/var/cache/yunohost/files_to_keep_during_setup_sour                                                ce/dex
15374 DEBUG + local stuff_to_keep
15374 DEBUG + for stuff_to_keep in $keep
15374 DEBUG + '[' -e /var/cache/yunohost/files_to_keep_during_setup_source/dex/c                                                onfig.yaml ']'
15375 DEBUG ++ dirname /var/www/dex/config.yaml
15375 DEBUG + mkdir --parents /var/www/dex
15377 DEBUG + cp --archive --no-target-directory /var/cache/yunohost/files_to_ke                                                ep_during_setup_source/dex/config.yaml /var/www/dex/config.yaml
15380 DEBUG + rm -rf /var/cache/yunohost/files_to_keep_during_setup_source/
15383 DEBUG + chmod -R o-rwx /var/www/dex
15393 DEBUG + chown -R dex:www-data /var/www/dex
15410 DEBUG + ynh_script_progression '--message=Building the sources (it will ta                                                ke some time)...' --weight=6
15410 DEBUG + set +o xtrace
15506 DEBUG + set +o xtrace
15526 DEBUG + echo '! Helper used in legacy mode !'
15527 DEBUG + set +x
15530 DEBUG + echo '[###++++++++++.......] > Building the sources (it will take                                                 some time)...'
15532 INFO [###++++++++++.......] > Building the sources (it will take some time                                                )...
15533 DEBUG + set -o xtrace
15534 DEBUG + ynh_exec_warn_less ynh_install_go --go_version=1.22.2
15535 DEBUG + [[ 2 -eq 1 ]]
15535 DEBUG + ynh_install_go --go_version=1.22.2
15536 DEBUG + local legacy_args=v
15537 DEBUG + args_array=(['v']='go_version=')
15538 DEBUG + local -A args_array
15539 DEBUG + local go_version
15540 DEBUG + ynh_handle_getopts_args --go_version=1.22.2
15540 DEBUG + set +o xtrace
15556 DEBUG + local CLEAR_PATH=/opt/goenv/bin:/usr/local/sbin:/usr/local/bin:/us                                                r/sbin:/usr/bin:/sbin:/bin
15558 DEBUG ++ echo /opt/goenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr                                                /bin:/sbin:/bin
15559 DEBUG ++ sed s@/usr/local/bin:@@
15565 DEBUG + PATH=/opt/goenv/bin:/usr/local/sbin:/usr/sbin:/usr/bin:/sbin:/bin
15566 DEBUG + test -x /usr/bin/go
15568 DEBUG ++ head -1
15569 DEBUG ++ command -v goenv /opt/goenv/bin/goenv
15571 DEBUG + goenv=/opt/goenv/bin/goenv
15572 DEBUG + '[' -n /opt/goenv/bin/goenv ']'
15572 DEBUG + ynh_print_info '--message=goenv already seems installed in `/opt/g                                                oenv/bin/goenv'\''.'
15572 DEBUG + local legacy_args=m
15573 DEBUG + args_array=(['m']='message=')
15573 DEBUG + local -A args_array
15573 DEBUG + local message
15573 DEBUG + ynh_handle_getopts_args '--message=goenv already seems installed i                                                n `/opt/goenv/bin/goenv'\''.'
15574 DEBUG + set +o xtrace
15596 DEBUG + echo 'goenv already seems installed in `/opt/goenv/bin/goenv'\''.'
15597 DEBUG + pushd /opt/goenv
15597 DEBUG /opt/goenv /var/cache/yunohost/app_tmp_work_dirs/app_ruc35fo5/script                                                s
15598 INFO goenv already seems installed in `/opt/goenv/bin/goenv'.
15599 DEBUG + grep https://github.com/syndbg/goenv.git
15600 DEBUG + git remote -v
15609 DEBUG origin      https://github.com/syndbg/goenv.git (fetch)
15609 DEBUG origin      https://github.com/syndbg/goenv.git (push)
15610 DEBUG + echo 'Trying to update with git...'
15610 DEBUG Trying to update with git...
15611 DEBUG + git pull -q --tags origin master
16198 DEBUG + cd ..
16198 DEBUG + ynh_go_try_bash_extension
16199 DEBUG + '[' -x src/configure ']'
16199 DEBUG + popd
16199 DEBUG /var/cache/yunohost/app_tmp_work_dirs/app_ruc35fo5/scripts
16199 DEBUG ++ head -1
16200 DEBUG ++ command -v /opt/goenv/plugins/xxenv-latest/bin/goenv-latest goenv                                                -latest
16201 DEBUG + goenv_latest=/opt/goenv/plugins/xxenv-latest/bin/goenv-latest
16202 DEBUG + '[' -n /opt/goenv/plugins/xxenv-latest/bin/goenv-latest ']'
16202 DEBUG + ynh_print_info '--message=`goenv latest'\'' command already availa                                                ble in `/opt/goenv/plugins/xxenv-latest/bin/goenv-latest'\''.'
16203 DEBUG + local legacy_args=m
16203 DEBUG + args_array=(['m']='message=')
16203 DEBUG + local -A args_array
16204 DEBUG + local message
16204 DEBUG + ynh_handle_getopts_args '--message=`goenv latest'\'' command alrea                                                dy available in `/opt/goenv/plugins/xxenv-latest/bin/goenv-latest'\''.'
16204 DEBUG + set +o xtrace
16219 DEBUG + echo '`goenv latest'\'' command already available in `/opt/goenv/p                                                lugins/xxenv-latest/bin/goenv-latest'\''.'
16220 DEBUG + pushd /opt/goenv/plugins/xxenv-latest
16220 INFO `goenv latest' command already available in `/opt/goenv/plugins/xxenv                                                -latest/bin/goenv-latest'.
16220 DEBUG /opt/goenv/plugins/xxenv-latest /var/cache/yunohost/app_tmp_work_dir                                                s/app_ruc35fo5/scripts
16220 DEBUG + grep https://github.com/momo-lab/xxenv-latest.git
16221 DEBUG + git remote -v
16224 DEBUG origin      https://github.com/momo-lab/xxenv-latest.git (fetch)
16224 DEBUG origin      https://github.com/momo-lab/xxenv-latest.git (push)
16225 DEBUG + ynh_print_info '--message=Trying to update xxenv-latest with git..                                                .'
16225 DEBUG + local legacy_args=m
16225 DEBUG + args_array=(['m']='message=')
16225 DEBUG + local -A args_array
16226 DEBUG + local message
16226 DEBUG + ynh_handle_getopts_args '--message=Trying to update xxenv-latest w                                                ith git...'
16226 DEBUG + set +o xtrace
16243 DEBUG + echo 'Trying to update xxenv-latest with git...'
16244 DEBUG + git pull -q origin master
16244 INFO Trying to update xxenv-latest with git...
16737 DEBUG + popd
16737 DEBUG /var/cache/yunohost/app_tmp_work_dirs/app_ruc35fo5/scripts
16738 DEBUG + mkdir -p /opt/goenv/cache
16741 DEBUG + mkdir -p /opt/goenv/shims
16745 DEBUG + PATH=/opt/goenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/                                                bin:/sbin:/bin
16746 DEBUG + test -x /usr/bin/go_goenv
16747 DEBUG ++ goenv latest --print 1.22.2
17752 DEBUG + local final_go_version=1.22.2
17752 DEBUG + ynh_print_info '--message=Installation of Go-1.22.2'
17753 DEBUG + local legacy_args=m
17753 DEBUG + args_array=(['m']='message=')
17753 DEBUG + local -A args_array
17754 DEBUG + local message
17754 DEBUG + ynh_handle_getopts_args '--message=Installation of Go-1.22.2'
17755 DEBUG + set +o xtrace
17770 DEBUG + echo 'Installation of Go-1.22.2'
17771 INFO Installation of Go-1.22.2
17771 DEBUG + goenv install --skip-existing 1.22.2
17906 DEBUG Downloading go1.22.2.linux-amd64.tar.gz...
17907 DEBUG -> go1.22.2.linux-amd64.tar.gz
18447 DEBUG #=#=#                                                                                                               ######################################################################### 100.0%                                                curl: (22) The requested URL returned error: 404
18447 DEBUG
18453 DEBUG error: failed to download Go Linux 64bit 1.22.2.tar.gz
18453 DEBUG
18534 DEBUG BUILD FAILED (Debian 11 using go-build 2.1.15)
18535 DEBUG
18537 DEBUG Results logged to /tmp/go-build.20240514084725.37391.log
18538 DEBUG
18538 DEBUG Last 10 log lines:
18539 DEBUG /tmp/go-build.20240514084725.37391 /var/cache/yunohost/app_tmp_work_                                                dirs/app_ruc35fo5/scripts
18541 DEBUG + ynh_exit_properly
18542 DEBUG + local exit_code=1
18542 DEBUG + [[ upgrade =~ ^install$|^upgrade$|^restore$ ]]
18542 DEBUG + rm -rf /var/cache/yunohost/download/
18544 DEBUG + '[' 1 -eq 0 ']'
18544 DEBUG + trap '' EXIT
18544 DEBUG + set +o errexit
18544 DEBUG + set +o nounset
18544 DEBUG + sleep 0.5
19046 DEBUG + type -t ynh_clean_setup
19046 DEBUG + exit 1
20050 ERROR Could not upgrade dex: An error occurred inside the app upgrade scri                                                pt
20051 INFO The operation 'Upgrade the 'dex' app' could not be completed. Please                                                 share the full log of this operation using the command 'yunohost log share 20240                                                514-084717-app_upgrade-dex' to get help
20087 WARNING Here's an extract of the logs before the crash. It might help debu                                                gging the error:
20087 INFO DEBUG - + test -x /usr/bin/go_goenv
20088 INFO DEBUG - ++ goenv latest --print 1.22.2
20088 INFO DEBUG - + local final_go_version=1.22.2
20088 INFO DEBUG - + ynh_print_info '--message=Installation of Go-1.22.2'
20088 INFO INFO - Installation of Go-1.22.2
20089 INFO DEBUG - + goenv install --skip-existing 1.22.2
20089 INFO DEBUG - Downloading go1.22.2.linux-amd64.tar.gz...
20089 INFO DEBUG - -> go1.22.2.linux-amd64.tar.gz
20089 INFO DEBUG - #=#=#
20089 INFO (22) The requested URL returned error: 404
20090 INFO DEBUG -
20090 INFO DEBUG - error: failed to download Go Linux 64bit 1.22.2.tar.gz
20090 INFO DEBUG -
20090 INFO DEBUG - BUILD FAILED (Debian 11 using go-build 2.1.15)
20090 INFO DEBUG -
20090 INFO DEBUG - Results logged to /tmp/go-build.20240514084725.37391.log
20091 INFO DEBUG -
20091 INFO DEBUG - Last 10 log lines:
20091 INFO DEBUG - /tmp/go-build.20240514084725.37391 /var/cache/yunohost/app_tm                                                p_work_dirs/app_ruc35fo5/scripts
20091 INFO DEBUG - + ynh_exit_properly
20091 WARNING Upgrade failed ... attempting to restore the safety backup (Yunoho                                                st first need to remove the app for this) ...
20113 INFO Removing dex…
20260 DEBUG Executing command '['sh', '-c', '/bin/bash -x "./remove"  7>&1']'
20276 DEBUG + source _common.sh
20278 DEBUG ++ GO_VERSION=1.22.2
20278 DEBUG + source /usr/share/yunohost/helpers
20280 DEBUG +++ set +o
20281 DEBUG +++ grep xtrace
20284 DEBUG ++ readonly 'XTRACE_ENABLE=set -o xtrace'
20285 DEBUG ++ XTRACE_ENABLE='set -o xtrace'
20285 DEBUG ++ set +x
20349 DEBUG + ynh_script_progression '--message=Removing system configurations r                                                elated to dex...' --weight=1
20350 DEBUG + set +o xtrace
20496 DEBUG + set +o xtrace
20561 DEBUG + echo '! Helper used in legacy mode !'
20562 DEBUG + set +x
20566 DEBUG + echo '[++++++++++..........] > Removing system configurations rela                                                ted to dex...'
20567 DEBUG + set -o xtrace
20568 DEBUG + ynh_exec_warn_less yunohost service status dex
20570 DEBUG + [[ 4 -eq 1 ]]
20571 DEBUG + yunohost service status dex
20572 INFO [++++++++++..........] > Removing system configurations related to de                                                x...
21498 DEBUG + yunohost service remove dex
22116 DEBUG Service 'dex' removed
22170 DEBUG + ynh_remove_systemd_config
22171 DEBUG + local legacy_args=s
22171 DEBUG + args_array=(['s']='service=')
22172 DEBUG + local -A args_array
22172 DEBUG + local service
22172 DEBUG + ynh_handle_getopts_args
22172 DEBUG + set +o xtrace
22173 DEBUG + local service=dex
22173 DEBUG + local finalsystemdconf=/etc/systemd/system/dex.service
22173 DEBUG + '[' -e /etc/systemd/system/dex.service ']'
22173 DEBUG + ynh_systemd_action --service_name=dex --action=stop
22174 DEBUG + local legacy_args=nalpte
22174 DEBUG + args_array=(['n']='service_name=' ['a']='action=' ['l']='line_matc                                                h=' ['p']='log_path=' ['t']='timeout=' ['e']='length=')
22174 DEBUG + local -A args_array
22175 DEBUG + local service_name
22175 DEBUG + local action
22175 DEBUG + local line_match
22175 DEBUG + local length
22176 DEBUG + local log_path
22176 DEBUG + local timeout
22176 DEBUG + ynh_handle_getopts_args --service_name=dex --action=stop
22176 DEBUG + set +o xtrace
22388 DEBUG + service_name=dex
22389 DEBUG + action=stop
22389 DEBUG + line_match=
22389 DEBUG + length=20
22389 DEBUG + log_path=/var/log/dex/dex.log
22390 DEBUG + timeout=300
22390 DEBUG + '[' stop == stop ']'
22390 DEBUG + systemctl is-active --quiet dex
22400 DEBUG + return 0
22401 DEBUG + systemctl disable dex --quiet
22919 DEBUG + ynh_secure_remove --file=/etc/systemd/system/dex.service
22919 DEBUG + local legacy_args=f
22920 DEBUG + args_array=(['f']='file=')
22920 DEBUG + local -A args_array
22921 DEBUG + local file
22921 DEBUG + ynh_handle_getopts_args --file=/etc/systemd/system/dex.service
22922 DEBUG + set +o xtrace
22941 DEBUG + set +o xtrace
22969 DEBUG + systemctl daemon-reload
23468 DEBUG + ynh_remove_logrotate
23469 DEBUG + '[' -e /etc/logrotate.d/dex ']'
23469 DEBUG + rm /etc/logrotate.d/dex
23470 DEBUG + ynh_remove_nginx_config
23471 DEBUG + ynh_secure_remove --file=/etc/nginx/conf.d/fr.docs.app.ioi.online.                                                d/dex.conf
23471 DEBUG + local legacy_args=f
23472 DEBUG + args_array=(['f']='file=')
23472 DEBUG + local -A args_array
23473 DEBUG + local file
23473 DEBUG + ynh_handle_getopts_args --file=/etc/nginx/conf.d/fr.docs.app.ioi.o                                                nline.d/dex.conf
23473 DEBUG + set +o xtrace
23489 DEBUG + set +o xtrace
23508 DEBUG + ynh_systemd_action --service_name=nginx --action=reload
23508 DEBUG + local legacy_args=nalpte
23508 DEBUG + args_array=(['n']='service_name=' ['a']='action=' ['l']='line_matc                                                h=' ['p']='log_path=' ['t']='timeout=' ['e']='length=')
23509 DEBUG + local -A args_array
23509 DEBUG + local service_name
23509 DEBUG + local action
23509 DEBUG + local line_match
23509 DEBUG + local length
23509 DEBUG + local log_path
23510 DEBUG + local timeout
23510 DEBUG + ynh_handle_getopts_args --service_name=nginx --action=reload
23510 DEBUG + set +o xtrace
23674 DEBUG + service_name=nginx
23675 DEBUG + action=reload
23675 DEBUG + line_match=
23675 DEBUG + length=20
23675 DEBUG + log_path=/var/log/nginx/nginx.log
23675 DEBUG + timeout=300
23676 DEBUG + '[' reload == stop ']'
23676 DEBUG + [[ -n '' ]]
23676 DEBUG + '[' reload == reload ']'
23676 DEBUG + action=reload-or-restart
23677 DEBUG ++ date --utc --rfc-3339=seconds
23678 DEBUG ++ cut -d+ -f1
23682 DEBUG + local 'time_start=2024-05-14 08:47:31 UTC'
23682 DEBUG + systemctl reload-or-restart nginx
23941 DEBUG + [[ -n '' ]]
23943 DEBUG + ynh_secure_remove --file=/var/log/dex
23943 DEBUG + local legacy_args=f
23944 DEBUG + args_array=(['f']='file=')
23944 DEBUG + local -A args_array
23944 DEBUG + local file
23945 DEBUG + ynh_handle_getopts_args --file=/var/log/dex
23945 DEBUG + set +o xtrace
23977 DEBUG + set +o xtrace
24002 DEBUG + ynh_script_progression '--message=Removal of dex completed' --last
24003 DEBUG + set +o xtrace
24113 DEBUG + set +o xtrace
24134 DEBUG + echo '! Helper used in legacy mode !'
24135 DEBUG + set +x
24138 DEBUG + echo '[####################] > Removal of dex completed'
24139 INFO [####################] > Removal of dex completed
24139 DEBUG + set -o xtrace
25146 INFO Deprovisioning ports...
25163 INFO Deprovisioning permissions...
25340 DEBUG Permission 'dex.main' deleted
25342 DEBUG To view the log of the operation 'Delete permission 'dex'', use the                                                 command 'yunohost log show 20240514-084732-permission_delete-dex'
25495 DEBUG The permission database has been resynchronized
25694 DEBUG SSOwat configuration regenerated
25713 INFO Deprovisioning install_dir...
25749 INFO Deprovisioning system_user...
26012 INFO Deprovisioning sources...
26045 SUCCESS dex uninstalled
26095 DEBUG The permission database has been resynchronized
26250 DEBUG SSOwat configuration regenerated
26266 DEBUG Checking that required services are up and running...
28246 DEBUG To view the log of the operation 'Remove the 'dex' app', use the com                                                mand 'yunohost log show 20240514-084727-app_remove-dex'
28267 WARNING YunoHost is already installed
28267 INFO Preparing archive for restoration…
28268 DEBUG Extracting needed files from the archive…
28862 DEBUG restoring from backup 'dex-pre-upgrade1' created on 2024-05-14 08:47                                                :10
28883 INFO Restoring dex…
29306 DEBUG Permission 'dex.main' updated
29401 DEBUG To view the log of the operation 'Update URL related to permission '                                                dex'', use the command 'yunohost log show 20240514-084736-permission_url-dex'
29628 DEBUG Permission 'dex.main' created
29629 DEBUG To view the log of the operation 'Create permission 'dex'', use the                                                 command 'yunohost log show 20240514-084736-permission_create-dex'
29760 DEBUG The permission database has been resynchronized
29940 DEBUG SSOwat configuration regenerated
29961 DEBUG Loading migration 0025_global_settings_to_configpanel…
29965 DEBUG Loading migration 0021_migrate_to_bullseye…
29967 DEBUG Loading migration 0022_php73_to_php74_pools…
29968 DEBUG Loading migration 0024_rebuild_python_venv…
29968 DEBUG Loading migration 0023_postgresql_11_to_13…
29969 DEBUG Loading migration 0026_new_admins_group…
30023 DEBUG Restoring the app 'dex'…
30044 DEBUG Executing command '['sh', '-c', '/bin/bash -x "/var/cache/yunohost/a                                                pp_tmp_work_dirs/app_sgnhbnbu/restore"  7>&1']'
30054 DEBUG + source ../settings/scripts/_common.sh
30055 DEBUG ++ GO_VERSION=1.19
30055 DEBUG + source /usr/share/yunohost/helpers
30060 DEBUG +++ set +o
30062 DEBUG +++ grep xtrace
30065 DEBUG ++ readonly 'XTRACE_ENABLE=set -o xtrace'
30066 DEBUG ++ XTRACE_ENABLE='set -o xtrace'
30066 DEBUG ++ set +x
30133 DEBUG + ynh_abort_if_errors
30133 DEBUG + set -o errexit
30134 DEBUG + set -o nounset
30134 DEBUG + trap ynh_exit_properly EXIT
30134 DEBUG + ynh_script_progression '--message=Loading installation settings...                                                ' --weight=1
30134 DEBUG + set +o xtrace
30242 DEBUG + set +o xtrace
30289 DEBUG + echo '! Helper used in legacy mode !'
30290 DEBUG + set +x
30293 DEBUG + echo '[+...................] > Loading installation settings...'
30293 DEBUG + set -o xtrace
30294 DEBUG + app=dex
30294 INFO [+...................] > Loading installation settings...
30295 DEBUG ++ ynh_app_setting_get --app=dex --key=domain
30296 DEBUG ++ local _globalapp=dex
30296 DEBUG ++ local legacy_args=ak
30297 DEBUG ++ args_array=(['a']='app=' ['k']='key=')
30297 DEBUG ++ local -A args_array
30298 DEBUG ++ local app
30298 DEBUG ++ local key
30298 DEBUG ++ ynh_handle_getopts_args --app=dex --key=domain
30299 DEBUG ++ set +o xtrace
30369 DEBUG ++ app=dex
30370 DEBUG ++ [[ domain =~ (unprotected|protected|skipped)_ ]]
30370 DEBUG ++ ynh_app_setting get dex domain
30371 DEBUG ++ set +o xtrace
30514 DEBUG + domain=fr.docs.app.ioi.online
30515 DEBUG ++ ynh_app_setting_get --app=dex --key=path
30517 DEBUG ++ local _globalapp=dex
30517 DEBUG ++ local legacy_args=ak
30518 DEBUG ++ args_array=(['a']='app=' ['k']='key=')
30519 DEBUG ++ local -A args_array
30519 DEBUG ++ local app
30520 DEBUG ++ local key
30520 DEBUG ++ ynh_handle_getopts_args --app=dex --key=path
30521 DEBUG ++ set +o xtrace
30593 DEBUG ++ app=dex
30593 DEBUG ++ [[ path =~ (unprotected|protected|skipped)_ ]]
30593 DEBUG ++ ynh_app_setting get dex path
30594 DEBUG ++ set +o xtrace
30719 DEBUG + path_url=/
30719 DEBUG ++ ynh_app_setting_get --app=dex --key=final_path
30720 DEBUG ++ local _globalapp=dex
30721 DEBUG ++ local legacy_args=ak
30721 DEBUG ++ args_array=(['a']='app=' ['k']='key=')
30721 DEBUG ++ local -A args_array
30722 DEBUG ++ local app
30722 DEBUG ++ local key
30723 DEBUG ++ ynh_handle_getopts_args --app=dex --key=final_path
30723 DEBUG ++ set +o xtrace
30779 DEBUG ++ app=dex
30780 DEBUG ++ [[ final_path =~ (unprotected|protected|skipped)_ ]]
30780 DEBUG ++ ynh_app_setting get dex final_path
30781 DEBUG ++ set +o xtrace
30882 DEBUG + final_path=/opt/yunohost/dex
30883 DEBUG ++ ynh_app_setting_get --app=dex --key=port
30884 DEBUG ++ local _globalapp=dex
30885 DEBUG ++ local legacy_args=ak
30886 DEBUG ++ args_array=(['a']='app=' ['k']='key=')
30887 DEBUG ++ local -A args_array
30888 DEBUG ++ local app
30889 DEBUG ++ local key
30890 DEBUG ++ ynh_handle_getopts_args --app=dex --key=port
30891 DEBUG ++ set +o xtrace
30946 DEBUG ++ app=dex
30947 DEBUG ++ [[ port =~ (unprotected|protected|skipped)_ ]]
30949 DEBUG ++ ynh_app_setting get dex port
30955 DEBUG ++ set +o xtrace
31054 DEBUG + port=5556
31054 DEBUG ++ ynh_app_setting_get --app=dex --key=oidc_name
31055 DEBUG ++ local _globalapp=dex
31055 DEBUG ++ local legacy_args=ak
31056 DEBUG ++ args_array=(['a']='app=' ['k']='key=')
31056 DEBUG ++ local -A args_array
31057 DEBUG ++ local app
31057 DEBUG ++ local key
31057 DEBUG ++ ynh_handle_getopts_args --app=dex --key=oidc_name
31057 DEBUG ++ set +o xtrace
31106 DEBUG ++ app=dex
31106 DEBUG ++ [[ oidc_name =~ (unprotected|protected|skipped)_ ]]
31106 DEBUG ++ ynh_app_setting get dex oidc_name
31107 DEBUG ++ set +o xtrace
31173 DEBUG + oidc_name=Outline
31173 DEBUG ++ ynh_app_setting_get --app=dex --key=oidc_secret
31174 DEBUG ++ local _globalapp=dex
31175 DEBUG ++ local legacy_args=ak
31175 DEBUG ++ args_array=(['a']='app=' ['k']='key=')
31176 DEBUG ++ local -A args_array
31176 DEBUG ++ local app
31177 DEBUG ++ local key
31177 DEBUG ++ ynh_handle_getopts_args --app=dex --key=oidc_secret
31177 DEBUG ++ set +o xtrace
31232 DEBUG ++ app=dex
31232 DEBUG ++ [[ oidc_secret =~ (unprotected|protected|skipped)_ ]]
31232 DEBUG ++ ynh_app_setting get dex oidc_secret
31233 DEBUG ++ set +o xtrace
31316 DEBUG + oidc_secret=E7CFD381F0F3358E8E73A051934CC120B06C3D1C06489108CB87D3                                                A266CFE15E
31317 DEBUG ++ ynh_app_setting_get --app=dex --key=oidc_callback
31317 DEBUG ++ local _globalapp=dex
31317 DEBUG ++ local legacy_args=ak
31318 DEBUG ++ args_array=(['a']='app=' ['k']='key=')
31318 DEBUG ++ local -A args_array
31319 DEBUG ++ local app
31320 DEBUG ++ local key
31320 DEBUG ++ ynh_handle_getopts_args --app=dex --key=oidc_callback
31321 DEBUG ++ set +o xtrace
31381 DEBUG ++ app=dex
31382 DEBUG ++ [[ oidc_callback =~ (unprotected|protected|skipped)_ ]]
31382 DEBUG ++ ynh_app_setting get dex oidc_callback
31383 DEBUG ++ set +o xtrace
31498 DEBUG + oidc_callback=fr.docs.ioi.online/auth/oidc.callback
31499 DEBUG + ynh_script_progression '--message=Validating restoration parameter                                                s...' --weight=1
31499 DEBUG + set +o xtrace
31611 DEBUG + set +o xtrace
31631 DEBUG + echo '! Helper used in legacy mode !'
31631 DEBUG + set +x
31634 DEBUG + echo '[#++.................] > Validating restoration parameters..                                                .'
31634 DEBUG + set -o xtrace
31634 DEBUG + test '!' -d /opt/yunohost/dex
31635 DEBUG + ynh_script_progression '--message=Restoring the NGINX web server c                                                onfiguration...' --weight=1
31635 DEBUG + set +o xtrace
31635 INFO [#++.................] > Validating restoration parameters...
31747 DEBUG + set +o xtrace
31771 DEBUG + echo '! Helper used in legacy mode !'
31771 DEBUG + set +x
31773 DEBUG + echo '[###++...............] > Restoring the NGINX web server conf                                                iguration...'
31773 DEBUG + set -o xtrace
31773 DEBUG + ynh_restore_file --origin_path=/etc/nginx/conf.d/fr.docs.app.ioi.o                                                nline.d/dex.conf
31774 DEBUG + local legacy_args=odm
31774 DEBUG + args_array=(['o']='origin_path=' ['d']='dest_path=' ['m']='not_man                                                datory')
31774 DEBUG + local -A args_array
31775 DEBUG + local origin_path
31775 DEBUG + local dest_path
31775 DEBUG + local not_mandatory
31775 DEBUG + ynh_handle_getopts_args --origin_path=/etc/nginx/conf.d/fr.docs.ap                                                p.ioi.online.d/dex.conf
31775 DEBUG + set +o xtrace
31776 INFO [###++...............] > Restoring the NGINX web server configuration                                                ...
31836 DEBUG + origin_path=/etc/nginx/conf.d/fr.docs.app.ioi.online.d/dex.conf
31836 DEBUG + dest_path=/etc/nginx/conf.d/fr.docs.app.ioi.online.d/dex.conf
31837 DEBUG + not_mandatory=0
31837 DEBUG + local archive_path=/home/yunohost.backup/tmp/dex-pre-upgrade1/apps                                                /dex/backup/etc/nginx/conf.d/fr.docs.app.ioi.online.d/dex.conf
31838 DEBUG + '[' '!' -d /home/yunohost.backup/tmp/dex-pre-upgrade1/apps/dex/bac                                                kup/etc/nginx/conf.d/fr.docs.app.ioi.online.d/dex.conf ']'
31838 DEBUG + '[' '!' -f /home/yunohost.backup/tmp/dex-pre-upgrade1/apps/dex/bac                                                kup/etc/nginx/conf.d/fr.docs.app.ioi.online.d/dex.conf ']'
31839 DEBUG + [[ -e /etc/nginx/conf.d/fr.docs.app.ioi.online.d/dex.conf ]]
31839 DEBUG ++ dirname /etc/nginx/conf.d/fr.docs.app.ioi.online.d/dex.conf
31840 DEBUG + mkdir --parents /etc/nginx/conf.d/fr.docs.app.ioi.online.d
31843 DEBUG + mountpoint --quiet /home/yunohost.backup/tmp/dex-pre-upgrade1
31846 DEBUG + mv /home/yunohost.backup/tmp/dex-pre-upgrade1/apps/dex/backup/etc/                                                nginx/conf.d/fr.docs.app.ioi.online.d/dex.conf /etc/nginx/conf.d/fr.docs.app.ioi                                                .online.d/dex.conf
31850 DEBUG + [[ /etc/nginx/conf.d/fr.docs.app.ioi.online.d/dex.conf == \/\e\t\c                                                \/\n\g\i\n\x\/\c\o\n\f\.\d\/* ]]
31850 DEBUG + grep 'php7.3.*sock' /etc/nginx/conf.d/fr.docs.app.ioi.online.d/dex                                                .conf
31853 DEBUG + ynh_script_progression '--message=Recreating the dedicated system                                                 user...' --weight=1
31853 DEBUG + set +o xtrace
31962 DEBUG + set +o xtrace
31977 DEBUG + echo '! Helper used in legacy mode !'
31978 DEBUG + set +x
31983 DEBUG + echo '[#####++.............] > Recreating the dedicated system use                                                r...'
31983 DEBUG + set -o xtrace
31984 DEBUG + ynh_system_user_create --username=dex --home_dir=/opt/yunohost/dex
31984 DEBUG + local legacy_args=uhs
31984 DEBUG + args_array=(['u']='username=' ['h']='home_dir=' ['s']='use_shell'                                                 ['g']='groups=')
31985 DEBUG + local -A args_array
31985 DEBUG + local username
31985 DEBUG + local home_dir
31985 DEBUG + local use_shell
31986 DEBUG + local groups
31986 DEBUG + ynh_handle_getopts_args --username=dex --home_dir=/opt/yunohost/de                                                x
31986 DEBUG + set +o xtrace
31986 INFO [#####++.............] > Recreating the dedicated system user...
32106 DEBUG + use_shell=0
32106 DEBUG + home_dir=/opt/yunohost/dex
32107 DEBUG + groups=
32107 DEBUG + ynh_system_user_exists dex
32107 DEBUG + local legacy_args=u
32107 DEBUG + args_array=(['u']='username=')
32108 DEBUG + local -A args_array
32108 DEBUG + local username
32108 DEBUG + ynh_handle_getopts_args dex
32109 DEBUG + set +o xtrace
32119 DEBUG + echo '! Helper used in legacy mode !'
32120 DEBUG + set +x
32122 DEBUG + getent passwd dex
32130 DEBUG + '[' -n /opt/yunohost/dex ']'
32130 DEBUG + local 'user_home_dir=--home-dir /opt/yunohost/dex'
32131 DEBUG + '[' 0 -eq 1 ']'
32131 DEBUG + local 'shell=--shell /usr/sbin/nologin'
32131 DEBUG + useradd --home-dir /opt/yunohost/dex --system --user-group dex --s                                                hell /usr/sbin/nologin
32209 DEBUG + local group
32210 DEBUG + ynh_script_progression '--message=Restoring the app main directory                                                ...' --weight=1
32211 DEBUG + set +o xtrace
32315 DEBUG + set +o xtrace
32334 DEBUG + echo '! Helper used in legacy mode !'
32335 DEBUG + set +x
32338 DEBUG + echo '[#######++...........] > Restoring the app main directory...                                                '
32338 INFO [#######++...........] > Restoring the app main directory...
32339 DEBUG + set -o xtrace
32339 DEBUG + ynh_restore_file --origin_path=/opt/yunohost/dex
32340 DEBUG + local legacy_args=odm
32340 DEBUG + args_array=(['o']='origin_path=' ['d']='dest_path=' ['m']='not_man                                                datory')
32341 DEBUG + local -A args_array
32341 DEBUG + local origin_path
32341 DEBUG + local dest_path
32342 DEBUG + local not_mandatory
32342 DEBUG + ynh_handle_getopts_args --origin_path=/opt/yunohost/dex
32342 DEBUG + set +o xtrace
32391 DEBUG + origin_path=/opt/yunohost/dex
32392 DEBUG + dest_path=/opt/yunohost/dex
32392 DEBUG + not_mandatory=0
32393 DEBUG + local archive_path=/home/yunohost.backup/tmp/dex-pre-upgrade1/apps                                                /dex/backup/opt/yunohost/dex
32393 DEBUG + '[' '!' -d /home/yunohost.backup/tmp/dex-pre-upgrade1/apps/dex/bac                                                kup/opt/yunohost/dex ']'
32393 DEBUG + [[ -e /opt/yunohost/dex ]]
32394 DEBUG ++ dirname /opt/yunohost/dex
32396 DEBUG + mkdir --parents /opt/yunohost
32399 DEBUG + mountpoint --quiet /home/yunohost.backup/tmp/dex-pre-upgrade1
32404 DEBUG + mv /home/yunohost.backup/tmp/dex-pre-upgrade1/apps/dex/backup/opt/                                                yunohost/dex /opt/yunohost/dex
32408 DEBUG + [[ /opt/yunohost/dex == \/\e\t\c\/\n\g\i\n\x\/\c\o\n\f\.\d\/* ]]
32409 DEBUG + chmod 750 /opt/yunohost/dex
32412 DEBUG + chmod -R o-rwx /opt/yunohost/dex
32427 DEBUG + chown -R dex:www-data /opt/yunohost/dex
32438 DEBUG + ynh_script_progression '--message=Restoring the systemd configurat                                                ion...' --weight=1
32438 DEBUG + set +o xtrace
32546 DEBUG + set +o xtrace
32576 DEBUG + echo '! Helper used in legacy mode !'
32576 DEBUG + set +x
32579 DEBUG + echo '[#########+..........] > Restoring the systemd configuration                                                ...'
32579 INFO [#########+..........] > Restoring the systemd configuration...
32580 DEBUG + set -o xtrace
32580 DEBUG + ynh_restore_file --origin_path=/etc/systemd/system/dex.service
32580 DEBUG + local legacy_args=odm
32581 DEBUG + args_array=(['o']='origin_path=' ['d']='dest_path=' ['m']='not_man                                                datory')
32581 DEBUG + local -A args_array
32581 DEBUG + local origin_path
32581 DEBUG + local dest_path
32582 DEBUG + local not_mandatory
32582 DEBUG + ynh_handle_getopts_args --origin_path=/etc/systemd/system/dex.serv                                                ice
32582 DEBUG + set +o xtrace
32642 DEBUG + origin_path=/etc/systemd/system/dex.service
32643 DEBUG + dest_path=/etc/systemd/system/dex.service
32643 DEBUG + not_mandatory=0
32643 DEBUG + local archive_path=/home/yunohost.backup/tmp/dex-pre-upgrade1/apps                                                /dex/backup/etc/systemd/system/dex.service
32643 DEBUG + '[' '!' -d /home/yunohost.backup/tmp/dex-pre-upgrade1/apps/dex/bac                                                kup/etc/systemd/system/dex.service ']'
32644 DEBUG + '[' '!' -f /home/yunohost.backup/tmp/dex-pre-upgrade1/apps/dex/bac                                                kup/etc/systemd/system/dex.service ']'
32645 DEBUG + [[ -e /etc/systemd/system/dex.service ]]
32645 DEBUG ++ dirname /etc/systemd/system/dex.service
32647 DEBUG + mkdir --parents /etc/systemd/system
32651 DEBUG + mountpoint --quiet /home/yunohost.backup/tmp/dex-pre-upgrade1
32654 DEBUG + mv /home/yunohost.backup/tmp/dex-pre-upgrade1/apps/dex/backup/etc/                                                systemd/system/dex.service /etc/systemd/system/dex.service
32658 DEBUG + [[ /etc/systemd/system/dex.service == \/\e\t\c\/\n\g\i\n\x\/\c\o\n                                                \f\.\d\/* ]]
32659 DEBUG + systemctl enable dex.service --quiet
33079 DEBUG + ynh_script_progression '--message=Restoring the logrotate configur                                                ation...' --weight=1
33080 DEBUG + set +o xtrace
33165 DEBUG + set +o xtrace
33179 DEBUG + echo '! Helper used in legacy mode !'
33179 DEBUG + set +x
33180 DEBUG + echo '[##########++........] > Restoring the logrotate configurati                                                on...'
33180 DEBUG + set -o xtrace
33181 INFO [##########++........] > Restoring the logrotate configuration...
33181 DEBUG + mkdir -p /var/log/dex
33184 DEBUG + chown -R dex:root /var/log/dex
33189 DEBUG + ynh_restore_file --origin_path=/etc/logrotate.d/dex
33190 DEBUG + local legacy_args=odm
33190 DEBUG + args_array=(['o']='origin_path=' ['d']='dest_path=' ['m']='not_man                                                datory')
33191 DEBUG + local -A args_array
33191 DEBUG + local origin_path
33191 DEBUG + local dest_path
33192 DEBUG + local not_mandatory
33192 DEBUG + ynh_handle_getopts_args --origin_path=/etc/logrotate.d/dex
33192 DEBUG + set +o xtrace
33242 DEBUG + origin_path=/etc/logrotate.d/dex
33242 DEBUG + dest_path=/etc/logrotate.d/dex
33242 DEBUG + not_mandatory=0
33243 DEBUG + local archive_path=/home/yunohost.backup/tmp/dex-pre-upgrade1/apps                                                /dex/backup/etc/logrotate.d/dex
33243 DEBUG + '[' '!' -d /home/yunohost.backup/tmp/dex-pre-upgrade1/apps/dex/bac                                                kup/etc/logrotate.d/dex ']'
33243 DEBUG + '[' '!' -f /home/yunohost.backup/tmp/dex-pre-upgrade1/apps/dex/bac                                                kup/etc/logrotate.d/dex ']'
33243 DEBUG + [[ -e /etc/logrotate.d/dex ]]
33244 DEBUG ++ dirname /etc/logrotate.d/dex
33246 DEBUG + mkdir --parents /etc/logrotate.d
33249 DEBUG + mountpoint --quiet /home/yunohost.backup/tmp/dex-pre-upgrade1
33254 DEBUG + mv /home/yunohost.backup/tmp/dex-pre-upgrade1/apps/dex/backup/etc/                                                logrotate.d/dex /etc/logrotate.d/dex
33258 DEBUG + [[ /etc/logrotate.d/dex == \/\e\t\c\/\n\g\i\n\x\/\c\o\n\f\.\d\/* ]                                                ]
33258 DEBUG + ynh_script_progression '--message=Integrating service in YunoHost.                                                ..' --weight=1
33258 DEBUG + set +o xtrace
33383 DEBUG + set +o xtrace
33406 DEBUG + echo '! Helper used in legacy mode !'
33406 DEBUG + set +x
33409 DEBUG + echo '[############++......] > Integrating service in YunoHost...'
33410 DEBUG + set -o xtrace
33410 DEBUG + yunohost service add dex '--description=OpenID Connect Provider' -                                                -log=/var/log/dex/dex.log
33411 INFO [############++......] > Integrating service in YunoHost...
34064 DEBUG The service 'dex' was added
34141 DEBUG + ynh_script_progression '--message=Starting a systemd service...' -                                                -weight=1
34142 DEBUG + set +o xtrace
34289 DEBUG + set +o xtrace
34314 DEBUG + echo '! Helper used in legacy mode !'
34314 DEBUG + set +x
34320 INFO [##############++....] > Starting a systemd service...
34320 DEBUG + echo '[##############++....] > Starting a systemd service...'
34321 DEBUG + set -o xtrace
34321 DEBUG + ynh_systemd_action --service_name=dex --action=start --log_path=/v                                                ar/log/dex/dex.log
34321 DEBUG + local legacy_args=nalpte
34321 DEBUG + args_array=(['n']='service_name=' ['a']='action=' ['l']='line_matc                                                h=' ['p']='log_path=' ['t']='timeout=' ['e']='length=')
34321 DEBUG + local -A args_array
34322 DEBUG + local service_name
34322 DEBUG + local action
34322 DEBUG + local line_match
34322 DEBUG + local length
34323 DEBUG + local log_path
34323 DEBUG + local timeout
34323 DEBUG + ynh_handle_getopts_args --service_name=dex --action=start --log_pa                                                th=/var/log/dex/dex.log
34323 DEBUG + set +o xtrace
34622 DEBUG + service_name=dex
34623 DEBUG + action=start
34623 DEBUG + line_match=
34623 DEBUG + length=20
34624 DEBUG + log_path=/var/log/dex/dex.log
34624 DEBUG + timeout=300
34624 DEBUG + '[' start == stop ']'
34624 DEBUG + [[ -n '' ]]
34624 DEBUG + '[' start == reload ']'
34628 DEBUG ++ cut -d+ -f1
34632 DEBUG ++ date --utc --rfc-3339=seconds
34636 DEBUG + local 'time_start=2024-05-14 08:47:41 UTC'
34637 DEBUG + systemctl start dex
34665 DEBUG + [[ -n '' ]]
34666 DEBUG + ynh_script_progression '--message=Reloading NGINX web server...' -                                                -weight=1
34666 DEBUG + set +o xtrace
34938 DEBUG + set +o xtrace
34967 DEBUG + echo '! Helper used in legacy mode !'
34967 DEBUG + set +x
34973 INFO [################++..] > Reloading NGINX web server...
34973 DEBUG + echo '[################++..] > Reloading NGINX web server...'
34973 DEBUG + set -o xtrace
34974 DEBUG + ynh_systemd_action --service_name=nginx --action=reload
34974 DEBUG + local legacy_args=nalpte
34974 DEBUG + args_array=(['n']='service_name=' ['a']='action=' ['l']='line_matc                                                h=' ['p']='log_path=' ['t']='timeout=' ['e']='length=')
34974 DEBUG + local -A args_array
34975 DEBUG + local service_name
34975 DEBUG + local action
34975 DEBUG + local line_match
34975 DEBUG + local length
34976 DEBUG + local log_path
34976 DEBUG + local timeout
34976 DEBUG + ynh_handle_getopts_args --service_name=nginx --action=reload
34976 DEBUG + set +o xtrace
35188 DEBUG + service_name=nginx
35189 DEBUG + action=reload
35189 DEBUG + line_match=
35189 DEBUG + length=20
35190 DEBUG + log_path=/var/log/nginx/nginx.log
35190 DEBUG + timeout=300
35190 DEBUG + '[' reload == stop ']'
35190 DEBUG + [[ -n '' ]]
35190 DEBUG + '[' reload == reload ']'
35191 DEBUG + action=reload-or-restart
35193 DEBUG ++ cut -d+ -f1
35196 DEBUG ++ date --utc --rfc-3339=seconds
35201 DEBUG + local 'time_start=2024-05-14 08:47:42 UTC'
35201 DEBUG + systemctl reload-or-restart nginx
35428 DEBUG + [[ -n '' ]]
35429 DEBUG + ynh_script_progression '--message=Restoration completed for dex' -                                                -last
35429 DEBUG + set +o xtrace
35605 DEBUG + set +o xtrace
35698 DEBUG + echo '! Helper used in legacy mode !'
35698 DEBUG + set +x
35701 DEBUG + echo '[####################] > Restoration completed for dex'
35702 DEBUG + set -o xtrace
35702 DEBUG + ynh_exit_properly
35702 DEBUG + local exit_code=0
35703 DEBUG + [[ restore =~ ^install$|^upgrade$|^restore$ ]]
35703 DEBUG + rm -rf /var/cache/yunohost/download/
35703 INFO [####################] > Restoration completed for dex
35706 DEBUG + '[' 0 -eq 0 ']'
35707 DEBUG + exit 0
36712 DEBUG To view the log of the operation 'Restore 'dex' from a backup archiv                                                e', use the command 'yunohost log show 20240514-084736-backup_restore_app-dex'
36789 DEBUG The permission database has been resynchronized
36890 DEBUG SSOwat configuration regenerated
36902 SUCCESS Restoration completed
36902 DEBUG Checking that required services are up and running...
38600 DEBUG action [35496.1] executed in 38.176s
38600 DEBUG lock has been released
38601 ERROR The operation 'Upgrade the 'dex' app' could not be completed. 

Just to be sure of not missing anything, I paste the whole operation here instead of using the share, including the restoration etc…

Anyway, as long as the outdated Dex does not cause an issue for Outline, it is not a critical issue in my opinion.

I have absolutely no clue about what’s happening.
It looks like a pure network error, with your server not able to download go package…
I can confirm that you won’t be blocked in your usage of Outline. I keep updating Dex for pure maintenance reasons but there are no additional features or whatsoever that you would be waiting for, and absolutely no reason why Outline would stop work with Dex since OIDC is a very stable and mature standard.

Ok, perfect.
I will try to fix this on my own by trying to download this file independtly and contacting the VPS provider if it is some kind of port issue.

Many thanks to you @Limezy and to all those who have helped with this issue.

1 Like