YunoHost / issues

General issue tracker for the YunoHost project
72 stars 8 forks source link

Unable to install application from the web admin following a broken state (but works in cli) #435

Closed yunohost-bot closed 6 years ago

yunohost-bot commented 8 years ago
Original Redmine Issue: 435

Author Name: Bram


Hello,

I've just fixed a cube from somehow that had a broken state where opensondage_ynh failed to installed.

YunoHost was complaining that opensondage wasn't correctly installed, so I've removed /etc/yunhost/apps/opensondage.

Thanks to the previous work I was able to do other installation. In cli everything worked fine.

But, once I've tried to install another application (shellinabox) from the web insterface, I've got the error unable to download https://github.com/YunoHost-Apps/shellinabox_ynh/archive/7a3a13cda984173eaa873711a933a2c07f13fe3d.zip and here are the following logs from /var/log/yunohost/yunohost-api.log:

2016-06-22 21:29:05,154 INFO     moulinette.actionsmap process - processing action [5022.45]: yunohost.app.install
2016-06-22 21:29:05,177 INFO     yunohost.app _fetch_app_from_git - [5022.45] Téléchargement...
2016-06-22 21:29:05,249 ERROR    yunohost.app _fetch_app_from_git - [5022.45] unable to download https://github.com/YunoHost-Apps/shellinabox_ynh/archive/7a3a13cda984173eaa873711a933a2c07f13fe3d.zip
Traceback (most recent call last):
  File "/usr/lib/moulinette/yunohost/app.py", line 1300, in _fetch_app_from_git
    'wget', '-qO', app_tmp_archive, tarball_url])
  File "/usr/lib/python2.7/subprocess.py", line 540, in check_call
    raise CalledProcessError(retcode, cmd)
CalledProcessError: Command '['wget', '-qO', '/var/cache/yunohost/from_file/opensondage_ynh-0af12d46ca521ccd0e652901e1462578bc27f9b9/zerobin_ynh-6819a3e219ad3204b75551c3debda2390b483103/zerobin_ynh-6819a3e219ad3204b75551c3debda2390b483103.zip', 'https://github.com/YunoHost-Apps/shellinabox_ynh/archive/7a3a13cda984173eaa873711a933a2c07f13fe3d.zip']' returned non-zero exit status 1

As you can notice, the first parameter is very weird /var/cache/yunohost/from_file/opensondage_ynh-0af12d46ca521ccd0e652901e1462578bc27f9b9/zerobin_ynh-6819a3e219ad3204b75551c3debda2390b483103/zerobin_ynh-6819a3e219ad3204b75551c3debda2390b483103.zip and contains path to 2 previous installed application (opensondage_ynh and zerobin_ynh). I have no idea from where this is coming but it seems that it's from the webadmin.

yunohost-bot commented 8 years ago
Original Redmine Comment

Author: opi


Probably related to https://dev.yunohost.org/issues/340

yunohost-bot commented 8 years ago
Original Redmine Comment

Author: Bram


Looks very similar indeed.

yunohost-bot commented 8 years ago
Original Redmine Comment

Author: Bram


Attempt to fix this bug https://github.com/YunoHost/yunohost/pull/163

yunohost-bot commented 8 years ago
Properties Change

Author: Bram

yunohost-bot commented 8 years ago
Properties Change

Author: jerome

yunohost-bot commented 8 years ago
Original Redmine Comment

Author: Bram

Status Changed: Closed


Applied in changeset commit:yunohost|2e5b8fa3935a7e65ddeb92a10e5f4675d1d86402.

yunohost-bot commented 8 years ago
Original Redmine Comment

Author: Bram


Released