New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update of Rock-on definitions fails when Rock-on in install_failed state #1259

Closed
peterdenhaan opened this Issue Apr 12, 2016 · 0 comments

Comments

Projects
None yet
1 participant
@peterdenhaan

peterdenhaan commented Apr 12, 2016

When a Rock-on installation has failed, the Update button on the UI (/home#rockons) fails with the following error message:
image
The error is correct: the rock-on's state is install_failed rather than available.

storageadmin=# select * from storageadmin_rockon order by id;
 id |        name         |                              description                               |   version    |     state      |        status         | link |                      website                      | https |                                           icon                                            | ui | volume_add_support |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              more_info
----+---------------------+------------------------------------------------------------------------+--------------+----------------+-----------------------+------+---------------------------------------------------+-------+-------------------------------------------------------------------------------------------+----+--------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  1 | BTSync              | BitTorrent Sync                                                        | 1.0          | install_failed | stopped               |      | https://www.getsync.com/                          | f     |                                                                                           | t  | t                  | <h4>Authentication</h4><p>Default username for your BTSync UI is<code>admin</code>and password is<code>password</code></p><h4>Storage</h4><p>You can also assign additional Shares for custom organization of your data.</p>
...

But obviously there is nothing that can be uninstalled because BTSync failed to install in the first place. I suspect the update code needs to check for state != "installed" rather than state == "available".

Manually updating the storageadmin_rockon record to available state allows the update to proceed successfully.

This may be linked with, but not (I think) identical to, #1124.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment