You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Updater (5.0.12 -> 5.0.13) fails with "unable to fetch package" ("extraction error" in log) #5795
Trying to use the Updater to update from 5.0.12 to 5.0.13, I expect it to run through successfully
Actual behaviour
The updater fails with "Unable to fetch package".
Steps to reproduce
Go to "Admin" page; the Updater section will show "ownCloud 5.0.13 is available ..."
Click on the "Update Center" link
Go to the "Update" tab
Update fails with "unable to fetch package"
Server configuration
Operating system: Ubuntu 12.04.3 LTS
Web server: Apache 2.4.6-3
Database: mysql Ver 14.14 Distrib 5.5.34,
PHP version: 5.5.4-1
ownCloud version: 5.0.12
Client configuration
Browser: Firefox 25.0
Operating system: Windows 8.1 / Ubuntu 13.10
Logs
Web server error log
Nothing related
ownCloud log (data/owncloud.log)
Error updater /tmp/b71915fa52a77a0e359366325e6d4046.tar.bz2 extraction error 2013-11-09T20:38:26+00:00
Error updater Retrieving http://download.owncloud.org/community/ ... 13.tar.bz2 2013-11-09T20:38:26+00:00
Warning PHP file_exists() expects parameter 1 to be a valid path, string given at /home/bfroehler/htdocs/owncloud/3rdparty/Archive/Tar.php#1615 2013-11-09T20:38:26+00:00
Browser log
Have not collected such, don't think they could be relevant
Further information
open_basedir is not set
php / www-data has permissions on both /tmp and the target folder for the extraction (I put a temporary log output in there to find out the extract location)
I'm not sure at which step exactly the extraction fails, but it seems unlikely to be a permission issue. Maybe the bz2 module somehow could be corrupt? Any idea how I could check that?
Do I understand you correctly that the php extractor got a problem with the current owncloud .tar.bz2 files?
Meaning there's nothing to be done about it, the Updater just won't work?
Edit: Thanks for the really quick answer, by the way :)
I wonder if this is the right place to ask - I have the same problem on my owncloud installation - and I don't know how to move on from here? How can I upgrade if this keeps happening?
Do I have to do a manual upgrade?
Thanks
Okay, unfortunately I don't know much about tar flags or how the updater works.
So without any knowledge I try to ask: What about the idea of @MrMrsK to rebuild the package (with a correct typeflag or none)? Any possibility to solve the problem in with this idea? :-)
@VicDeo Nope, I have not. I only have the zip extension. But if you demand the bz2 I recommend to check whether this extension is enabled during installation.
@VicDeo I looked up phpinfo and it actually says, that b2 is enable: Version 1.0.6, 6-Sept-2010. In Ubuntu it comes with php5-cgi package, which I've installed.
Thank you so much! It worked out in the end. Could have guessed the url was cached...
Can't believe that I missed all the awesome new things for such a long time! :D
For others with problems: After removing line 47 in updater.php, I additionally had to apply the fix given here owncloud-archive/apps#1563 to complete the upgrade successfully.
@VicDeo My personal guess is that the cache-problem is related to a wrong server-time (not my fault - shared hosting ;-)) or something that causes the cache not to be cleared, because the current time is before the stored time. Because after the successful upgrade I had to remove the line a second time to not always get the wrong notice that I should upgrade to 6.0.1 (from 6.0.1) ... Maybe this error can be caught somehow?
Yes, it was the same issue. I didn't want to wait and just temporarily removed the line from updater.php, after refreshing the page the message disappeared. Maybe it varies from server to server how many minutes this bug affects you (because for me the upgrade-url wasn't refreshed for weeks before I forced it to).
Activity
VicDeo commentedon Nov 10, 2013
I fetched the package and tried the following snippet on it
It says 'Extraction failed' so it's rather OC_Archive issue.
Most likely it is related to the digital signature or #5621
(Just a guess)
RandolfCarter commentedon Nov 10, 2013
Do I understand you correctly that the php extractor got a problem with the current owncloud .tar.bz2 files?
Meaning there's nothing to be done about it, the Updater just won't work?
Edit: Thanks for the really quick answer, by the way :)
VicDeo commentedon Nov 23, 2013
@RandolfCarter according to its description Archive_Tar doesn't support extended tar typeflags, namely
http://www.gnu.org/software/tar/manual/html_node/Standard.html
The only solution I see is to rebuild 5.0.13 tar.bz2 package
VicDeo commentedon Nov 23, 2013
Archive_Tar expects '5' or '2' (directory or file) as a typeflag https://github.com/owncloud/3rdparty/blob/master/Archive/Tar.php#L1664 and treats anything else as a file.
Extraction error is caused by the entry with typeflag 'x'
VicDeo commentedon Nov 23, 2013
Related to #5732
flow7 commentedon Nov 27, 2013
I wonder if this is the right place to ask - I have the same problem on my owncloud installation - and I don't know how to move on from here? How can I upgrade if this keeps happening?
Do I have to do a manual upgrade?
Thanks
VicDeo commentedon Nov 27, 2013
@karlitschek what do you think?
te-online commentedon Nov 29, 2013
Any progress on that? Would be nice ;-)
Schwobaland commentedon Dec 2, 2013
Something new here? It's very time-consuming to update without shell-access...
Thanks!
karlitschek commentedon Dec 2, 2013
That's really strange. Works just fine for me here.
te-online commentedon Dec 2, 2013
I also get an error in log
Could this be related to the broken updater? I had to remove some lines to make the updater work again after 5.0.11 update. #4857
VicDeo commentedon Dec 2, 2013
@te-online As it is said above:
#5795 (comment)
This package can not be untared with 3rdparty library used in oC, namely Archive_Tar PEAR class.
The steps to reproduce are listed above already:
#5795 (comment)
All one needs is to download the package, put it to any location and paste the code snippet inside any OC template.
It would fail on extraction.
VicDeo commentedon Dec 2, 2013
it's enough to trace the code to confirm this just as I did.
In the middle of extraction Archive_Tar returns false here https://github.com/owncloud/3rdparty/blob/master/Archive/Tar.php#L1664 due to extended typeflag it isn't aware of
te-online commentedon Dec 2, 2013
Okay, unfortunately I don't know much about tar flags or how the updater works.
So without any knowledge I try to ask: What about the idea of @MrMrsK to rebuild the package (with a correct typeflag or none)? Any possibility to solve the problem in with this idea? :-)
28 remaining items
Jas2Ma commentedon Jan 9, 2014
I'm also affected by this bug.
I recommend to use zip archivs for the updater, because it is checked whether it works or not by owncloud during installation prozess.
bantu commentedon Jan 9, 2014
owncloud-6.0.0a.tar.bz2 (48257271 bytes)
owncloud-6.0.0a.zip (58901140 bytes)
Not sure whether it is safe to assume that the ZipArchive extension is there.
VicDeo commentedon Jan 10, 2014
@karlitschek Updater uses the URL from the feed and generic OC_Archive class so no changes are needed.
karlitschek commentedon Jan 10, 2014
Very cool. I just changed the filename to .zip in the updater feed. Can someone check if it works now?
Jas2Ma commentedon Jan 10, 2014
Jep. Update from 6.0 to 6.0a did it's job. Thanks a lot!
VicDeo commentedon Jan 10, 2014
@Jas2Ma just for the record: do you have
bz2PHP extension enabled?Jas2Ma commentedon Jan 10, 2014
@VicDeo Nope, I have not. I only have the zip extension. But if you demand the bz2 I recommend to check whether this extension is enabled during installation.
Jas2Ma commentedon Jan 10, 2014
@VicDeo I looked up phpinfo and it actually says, that b2 is enable: Version 1.0.6, 6-Sept-2010. In Ubuntu it comes with php5-cgi package, which I've installed.
te-online commentedon Jan 24, 2014
What do I have to do to update the feed? My ownCloud still tries to download and extract http://download.owncloud.org/community/owncloud-6.0.0a.tar.bz2 and fails.
VicDeo commentedon Jan 24, 2014
@te-online strange. You can try to remove this line to disable feed caching
https://github.com/owncloud/core/blob/stable6/lib/private/updater.php#L47
te-online commentedon Jan 24, 2014
Thank you so much! It worked out in the end. Could have guessed the url was cached...
Can't believe that I missed all the awesome new things for such a long time! :D
For others with problems: After removing line 47 in updater.php, I additionally had to apply the fix given here owncloud-archive/apps#1563 to complete the upgrade successfully.
@VicDeo My personal guess is that the cache-problem is related to a wrong server-time (not my fault - shared hosting ;-)) or something that causes the cache not to be cleared, because the current time is before the stored time. Because after the successful upgrade I had to remove the line a second time to not always get the wrong notice that I should upgrade to 6.0.1 (from 6.0.1) ... Maybe this error can be caught somehow?
VicDeo commentedon Jan 24, 2014
@te-online it might be a bug since it was reported here #6928
I guess after the upgrade cached feed is not invalidated so the message is displayed for 30 minutes or so.
te-online commentedon Jan 24, 2014
Yes, it was the same issue. I didn't want to wait and just temporarily removed the line from updater.php, after refreshing the page the message disappeared. Maybe it varies from server to server how many minutes this bug affects you (because for me the upgrade-url wasn't refreshed for weeks before I forced it to).