Saturday, July 29, 2023
apps@conference.yunohost.org
July
Mon Tue Wed Thu Fri Sat Sun
          1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
           

[00:20:45] <Tag> looks like you never create a system user here
[00:48:14] <Aleks (he/him/il/lui)> > https://paste.yunohost.org/raw/tesutemivo

that's uh ... not the full log of the install, just the log of the permission initialization :/
[00:49:05] <oufmilo[m]> Quel boulet 🤦‍♂️
[00:49:07] <Aleks (he/him/il/lui)> (and it's complaining that some other app is already installed on the URL)
[00:49:43] <oufmilo[m]> That’s for a migration
[00:55:12] <oufmilo[m]> I’ll try to post complete log tomorrow and show you the script migration (I’m taking exemple of garradin —> paheko)
[00:56:55] <oufmilo[m]> It’s time to go to bed 😴💤
[03:37:07] <Yunohost Git/Infra notifications> Job [#17187](https://ci-apps.yunohost.org/ci/job/17187) for element failed miserably :(
[06:59:03] <oufmilo[m]> > <@tag:lostpod.me> oups, mauvais quote, un message au dessus il y a le lien

https://paste.yunohost.org/gogomeciru.bash
[07:01:17] <oufmilo[m]> And the repo is here :
https://github.com/oufmilo/firefish_ynh/tree/calckey-migration
[07:04:45] <oufmilo[m]> https://paste.yunohost.org/ebojucoloy.js
[07:46:00] <orhtej2> > because I may be mistaken but by default `example_ynh` does not provision system user:
>
> ```toml
> [resources.system_user]
> # This will provision/deprovision a unix system user
> ```

https://github.com/oufmilo/firefish_ynh/blob/b33ed034b30916607e85656b7f2c94cdb8889bcc/manifest.toml#L47
[07:47:26] <orhtej2> Scratch that, this is enough to request user
[07:48:10] <orhtej2> @oufmilo you need to request system user here
[07:49:09] <oufmilo[m]> > https://paste.yunohost.org/ebojucoloy.js

that's not this error
[07:51:43] <orhtej2> > > https://paste.yunohost.org/ebojucoloy.js
>
> that's not this error

Yup, already realised my mistake, sorry
[07:53:35] <oufmilo[m]> > Yup, already realised my mistake, sorry

no poblem ^^ migration is very complicated
[09:37:01] <Yunohost Git/Infra notifications> Job [#17327](https://ci-apps.yunohost.org/ci/job/17327) for icecoder failed miserably :(
[11:30:14] <Tag> > > https://paste.yunohost.org/ebojucoloy.js
>
> that's not this error

Looks like it's running the database migration with the calckey user, most likely you need to regenerate app configuration (ynh_add_config) to update database credentials
[11:35:43] <oufmilo[m]> > <@tag:lostpod.me> Looks like it's running the database migration with the calckey user, most likely you need to regenerate app configuration (ynh_add_config) to update database credentials

Ok i should do it before the restore ?

Then restore the old one into the new one `ynh_psql_connect_as --user=$new_db_user --password=$db_pwd --database=$new_db_name < "$sql_dump"ˋ
[12:19:28] <Tag> I think you can do it here https://github.com/oufmilo/firefish_ynh/blob/calckey-migration/scripts/upgrade#L59
[12:22:30] <Tag> Oh, I meant database migration as in run `pnpm run migrate`, not the migration helper :x (https://github.com/oufmilo/firefish_ynh/blob/calckey-migration/scripts/upgrade#L115)
[12:27:38] <orhtej2> > update nobody's been waiting for: I was over eager trimming the dependencies but core functionality works (?) by replacing `mongosh` with `mongo`. I was able to install, service keeps dying with signal 4/ILL, no clue why or how but my server is potato-grade so it may be that

I see this got merged, will make sure rocket chat still works and port fix over to other repos
[12:39:07] <oufmilo[m]> > <@tag:lostpod.me> Oh, I meant database migration as in run `pnpm run migrate`, not the migration helper :x (https://github.com/oufmilo/firefish_ynh/blob/calckey-migration/scripts/upgrade#L115)

Before run migrate ?
[12:39:29] <oufmilo[m]> I don’t understand 😅
[13:00:30] <Yunohost Git/Infra notifications> App wekan goes down from level 8 to 6 in job [#17398](https://ci-apps.yunohost.org/ci/job/17398)
[13:00:45] <Tag> It should be run before the `pnpm run migrate` and after the `ynh_handle_app_migration` and I think the perfect place would be between the if/fi here : https://github.com/oufmilo/firefish_ynh/blob/calckey-migration/scripts/upgrade#L58-L60
[13:08:16] <oufmilo[m]> > <@tag:lostpod.me> It should be run before the `pnpm run migrate` and after the `ynh_handle_app_migration` and I think the perfect place would be between the if/fi here : https://github.com/oufmilo/firefish_ynh/blob/calckey-migration/scripts/upgrade#L58-L60

if [[ $migration_process -eq 1 ]]; then
install_dir=$(ynh_app_setting_get --app=$app --key=install_dir)
ynh_add_config --template="../conf/default.yml" --destination="$install_dir/.config/default.yml"
fi
[13:19:24] <oufmilo[m]> I’ll try this 🤞
[14:23:50] <Dante> -:
[15:03:56] <oufmilo[m]> > if [[ $migration_process -eq 1 ]]; then
> install_dir=$(ynh_app_setting_get --app=$app --key=install_dir)
> ynh_add_config --template="../conf/default.yml" --destination="$install_dir/.config/default.yml"
> fi

A problem solved and a new arrived

https://paste.yunohost.org/muyopeliri.js
[16:11:00] <Yunohost Git/Infra notifications> App calckey goes down from level 7 to 6 in job [#17426](https://ci-apps.yunohost.org/ci/job/17426)