It's like a bunch of arguments are passed, but it's all missing values like --username=someuser
Looking at the code, $user is supposed to be --username=someuser OR empty ... but then it's used with --username $user, so the actual call ends up being either --username (no value) or --username --username=someuser (duplicate --username)
so the issue is present in the CI but somehow that works x_x
(ping @yalh76 in case you have some better idea of what's going on ...)
PR Status
[ ] Code finished and ready to be reviewed/tested
[ ] The fix/enhancement were manually tested (if applicable)
Automatic tests
Automatic tests can be triggered on https://ci-apps-dev.yunohost.org/after creating the PR, by commenting "!testme", "!gogogadgetoci" or "By the power of systemd, I invoke The Great App CI to test this Pull Request!". (N.B. : for this to work you need to be a member of the Yunohost-Apps organization)
Problem
I don't know how the mongodb helpers are supposed to work but the current script is pretty funky ...
Some user complained that rocket chat fails to install with the following logs:
Notice the N-1 line:
It's like a bunch of arguments are passed, but it's all missing values like
--username=someuser
Looking at the code,
$user
is supposed to be--username=someuser
OR empty ... but then it's used with--username $user
, so the actual call ends up being either--username
(no value) or--username --username=someuser
(duplicate --username)Solution
Rewrite the
mongosh
call. This should be backported to https://github.com/YunoHost-Apps/Experimental_helpers/blob/master/ynh_mongo_db/ynh_mongo_db__2But what's really puzzling is that the app does seem to work on the CI ... the complete log shows:
so the issue is present in the CI but somehow that works x_x
(ping @yalh76 in case you have some better idea of what's going on ...)
PR Status
Automatic tests
Automatic tests can be triggered on https://ci-apps-dev.yunohost.org/ after creating the PR, by commenting "!testme", "!gogogadgetoci" or "By the power of systemd, I invoke The Great App CI to test this Pull Request!". (N.B. : for this to work you need to be a member of the Yunohost-Apps organization)