Repository navigation
Closed
Labels
Milestone
Description
Steps to reproduce
- login as admin
- go to Apps
- add documents or search lucene
Expected behaviour
app should be installed and enabled
Actual behaviour
under /apps/ is an empty folder with the appid created
Server configuration
Operating system: CentOS 7.1
Web server: Apache
Database: MariaDB
PHP version: 5.4.16
ownCloud version: 8.1.0
owncloud is installed from repository
Updated from an older ownCloud or fresh install: fresh install
List of activated apps:
[root@host]# sudo -u apache php /var/www/html/owncloud/occ app:list
Enabled:
- files: 1.1.9
- files_antivirus: 0.7.0.1
- files_locking:
- files_pdfviewer: 0.7
- files_sharing: 0.6.2
- files_texteditor: 0.4
- files_trashbin: 0.6.3
- files_versions: 1.0.6
- gallery: 0.6.0
- provisioning_api: 0.2
- templateeditor: 0.1
Disabled:
- activity
- calendar
- contacts
- encryption
- external
- files_external
- files_videoviewer
- firstrunwizard
- user_external
- user_ldap
- user_webdavauth
ownCloud log (data/owncloud.log)
{"reqId":"VcSJiPl3dtmj@2s@S5ha4wAAAAM","remoteAddr":"172.31.245.101","app":"core","message":"No update found at the ownCloud appstore for app 166055","level":1,"time":"2015-08-07T12:33:44+02:00","method":"GET","url":"\/index.php\/settings\/apps\/list?category=0&includeUpdateInfo=1"}
{"reqId":"VcSJiPl3dtmj@2s@S5ha4wAAAAM","remoteAddr":"172.31.245.101","app":"core","message":"No update found at the ownCloud appstore for app 166056","level":1,"time":"2015-08-07T12:33:45+02:00","method":"GET","url":"\/index.php\/settings\/apps\/list?category=0&includeUpdateInfo=1"}
{"reqId":"VcSJiPl3dtmj@2s@S5ha4wAAAAM","remoteAddr":"172.31.245.101","app":"core","message":"No update found at the ownCloud appstore for app 166049","level":1,"time":"2015-08-07T12:33:45+02:00","method":"GET","url":"\/index.php\/settings\/apps\/list?category=0&includeUpdateInfo=1"}
{"reqId":"VcSJiPl3dtmj@2s@S5ha4wAAAAM","remoteAddr":"172.31.245.101","app":"core","message":"No update found at the ownCloud appstore for app 166051","level":1,"time":"2015-08-07T12:33:45+02:00","method":"GET","url":"\/index.php\/settings\/apps\/list?category=0&includeUpdateInfo=1"}
Activity
DeepDiver1975 commentedon Aug 7, 2015
@michag86 there should be some more error messages
michag86 commentedon Aug 7, 2015
That is everything I can find. I purged the logfile before installing/enabling the app.
Loglevel is set to debug.
In apache error log are no errors generated.
Where is the downloaded archive saved before extraction?
michag86 commentedon Aug 7, 2015
After enabling the app it is not listed under enabled. But when I go to the productivity category I can see Documents as enabled. If I disable and reenable, this is logged:
I've noticed that the file is downloaded to the php tmp Folder:
They stay there only for a short moment.
michag86 commentedon Aug 7, 2015
https://github.com/owncloud/core/blob/v8.1.0/lib/private/installer.php#L109
Installer copys extractfolder/appid
In my case this is search_lucene and documents.
But the the archives from apps.owncloud.com contain folders like "search_lucene-8.1.0" and "documents-stable8.1"
DeepDiver1975 commentedon Aug 7, 2015
@VicDeo did you upload these apps recently? Looks like the zips have a wrong internal format.
General rule of thumb: test what you do! 👿
VicDeo commentedon Aug 7, 2015
@DeepDiver1975
A) it was not me but @karlitschek who published it.
B) Appstore doesn't allow to publish packages for different OC version but 1 package and everything else should be put as links. Currently we have a package for 8.0 and a link to stable8.1 branch.
VicDeo commentedon Aug 7, 2015
and I have no idea who and in which manner published search_lucene.
This comment was regarding documents app ^^
michag86 commentedon Aug 7, 2015
search_lucene for 8.1.0 is a github link too. Download for all other versions is a package.
In this way, the integrated "app store" is useless for applications with different version located on github.
DeepDiver1975 commentedon Aug 7, 2015
Sorry vicdeo for suspecting you.
Its not useless - one simply need to upload aproper ZIP to github releases.
karlitschek commentedon Aug 9, 2015
@DeepDiver1975 @VicDeo now I'm also confused. :-) Both apps.owncloud.com entries (documents and search_lucene) have entries for 8.1 that point to the proper github zip. Shouldn't this be correct?
What is missing? :-)
LukasReschke commentedon Aug 9, 2015
@karlitschek Packaged apps needs to contain a folder same as the app id. So for example "documents".
The one downloaded here from GitHub from branches is however "appid-branch". This makes the installation go wrong as the extraction fails. - We can't thus link to branches on GitHub.
9 remaining items
LukasReschke commentedon Aug 10, 2015
By the way, while it worked in mine and @PVince81's testing I'd appreciate if somebody else could confirm as well.
jancborchardt commentedon Aug 10, 2015
This is definitely a requirement we need to remove so people can more easily publish apps. You should be able to just link to the Github release. @karlitschek can you fix that in the appstore?
LukasReschke commentedon Aug 10, 2015
That's not something we can fix in the appstore. This is something that the core handles. The appstore just does content-delivery.
LukasReschke commentedon Aug 10, 2015
See also #18159 for some more help for devs.
michag86 commentedon Aug 10, 2015
What about changing the rule to:
Packaged apps needs to contain a folder starting with the app id
?
This will make it possible to use the github archives as they are.
This will return the first directory starting with the appid. It's also possible to check if there is only one directory that matches.
LukasReschke commentedon Aug 10, 2015
Sounds good. @michag86 mind opening a PR?
oparoz commentedon Aug 11, 2015
@LukasReschke - It won't work as translations need the folder to be named exactly like the appid (unless things have changed since 8.0)
michag86 commentedon Aug 12, 2015
This can be closed. documents app package is refreshed.
For search_lucene I've opened another issue:
owncloud-archive/search_lucene#99