Skip to content
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

How to manage ownCloud apps programaticaly - discussion #17823

Closed
pierreozoux opened this issue Jul 22, 2015 · 13 comments
Closed

How to manage ownCloud apps programaticaly - discussion #17823

pierreozoux opened this issue Jul 22, 2015 · 13 comments

Comments

@pierreozoux
Copy link
Contributor

What is the best way to maintain apps? Because I manage dozens of owncloud instance as an IndieHosters and this is a pain.

When I do upgrades, it deactivates apps from the users. Then they reactivate them, but they are broken, I need to find the latest version.

This is not scalable :/

Why isn't there any package management? Why not using composer? Do you have an idea to solve this issue? Actually, yesterday, speaking with a friend we though about git. Is master always 'bug free' not like a development branch I mean. Or maybe I can/should use the tags.

I'm just curious how to deal with that, if you have hints, I'd be glad!

Thanks!

@DeepDiver1975
Copy link
Member

master is the development branch - released versions are available in stable branches like stable8 or stable8.1

@pierreozoux
Copy link
Contributor Author

@DeepDiver1975 thanks for the quick reply, I guess this is the same for apps like contacts.

So maybe the best option is to rely on git + tags. but it needs my manual intervention to say ok, this tag works with this oC version.

@oparoz
Copy link
Contributor

oparoz commented Jul 22, 2015

master is the development branch - released versions are available in stable branches like stable8 or stable8.1

That's only true for core apps. The repository of each app should be checked.

@pierreozoux - Why should you update apps for your users? They are available in the app store now and admins can upgrade whenever they want. The latest version compatible with their ownCloud version will be pulled and installed.

@pierreozoux
Copy link
Contributor Author

@oparoz compare, in term of UX, between ownCloud and Google.

On google:

  • If I want to use calendar, it is working. Do I need to update? What is an update?

On ownCloud:

  • I want calendar
  • hum, there is no calendar
  • ah, I have to activate it, good, it is now done!
  • ah? my nice hoster updated oC to the latest version (I don't understand why, but well...)
    • oh wtf? My calendar is now deactivated??
    • can I reactivate it? He is telling me to check the version number?? I'm lost?

Sorry for the dummy presentation, I'm sure you are already aware of that.
In the FLOSS community, if we want to compete with google, we have to at least offer a similar user experience. And people will choose us, not just because we are FLOSS, but because, that we offer key advantage that proprietary software in the cloud can't offer (privacy, integration between owncloud and wordpress for instance...).

I'm not saying oC is bad. Like framasoft is saying, "the road is long but the way is free :)". I'm just trying to understand how I can make the life as easy as possible for my users.

As an IndieHoster, the best would be:

  • ask occ: 'can I upgrade?' - occ will check every apps if it exists the compatible version with the core upgrade intended version
    • if no - ok, I'm fine, I keep that version of oC
    • if yes, I upgrade core, and after occ will download every new app version, compatible with the current core version, and of course re-enable them

I'm sure this is also your goal :)

In the mean time, if there is a nice way to deal with that, I'd be glad to know it :)

@oparoz: you are telling me that on the web ui, admins can upgrade their apps to the latest version? I tried to find it on the manual, I found nothing. I tried to look on the web ui, I found nothing. Maybe it will appear when a new version will be available? If you tell so, I trust you, and then in this case, I'll let users upgrade to the latest version (waiting occ be able to so by itself :)).

@oparoz
Copy link
Contributor

oparoz commented Jul 23, 2015

I have the same problem. All apps are disabled and nothing will work until all apps are re-enabled, so it takes extra time to get everything back to normal. The way I see it, you either offer ownCloud fully managed, have full control over the upgrade process and don't leave your users stranded with disabled apps or you let users update at their own pace and let them manually re-install dozens of apps.
Things are improving though. I didn't look for the exact issues, but I think the updater now pauses after the update has completed, to give you a chance to take a good look at what has been done.

If you've read http://morrisjobke.de/2015/07/23/Verbose-ownCloud-upgrade/ then you know that we can already upgrade ownCloud itself via the command line, so maybe you could create an issue asking specifically for

  • occ apps:upgradeready
  • occ apps:upgrade

cc @MorrisJobke

And about your 2nd point, yes, you can currently go to the apps section of your ownCloud and upgrade apps. One will only be shown if it's compatible with your version of ownCloud.
Regarding simply re-enabling apps, I would pick the apps from the various categories instead of using the ones in the "not enabled" category as you may have some older version in there.

@PVince81
Copy link
Contributor

@Gomez did you also have similar trouble ?

@cdamken
Copy link
Contributor

cdamken commented Sep 4, 2015

occ apps:upgradeready
occ apps:upgrade

I like this ;)

@RobinMcCorkell
Copy link
Member

See ./occ upgrade --no-app-disable (#16473)

@oparoz
Copy link
Contributor

oparoz commented Sep 4, 2015

Brilliant :)

@Gomez
Copy link
Member

Gomez commented Nov 5, 2015

I depend on git + tags for core and all apps (if necessary i use bugfix commits).
To get rid of the 3rdparty app disable i implemented ./occ upgrade --no-app-disable. Works perfect since than :)

@pierreozoux
Copy link
Contributor Author

Ok, thanks for all your input!

I still get apps disabled (last update was calendar and contact), I found this way:
libresh/compose-owncloud#3

I'll test further and let you know :)

@PVince81
Copy link
Contributor

PVince81 commented Mar 4, 2016

In the future, please discuss on the mailing list or forums http://owncloud.org/support

I'm closing this because this is neither a bug report not enhancement request.

There is already a ticket about apps getting disabled on updates: #18312

@PVince81 PVince81 closed this as completed Mar 4, 2016
@lock
Copy link

lock bot commented Aug 5, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

7 participants