No Code Attached Yet J3 Issue bug
avatar TerraD
TerraD
18 Aug 2021

Steps to reproduce the issue

I updated today from 3.9.28 to 3.10.0 After I started the upgrade process I got the message
ERROR: Could not open archive part file /www/MyDomain.ch/MyDomain.ch/tmp//Joomla_3.10.0-Stable-Update_Package.zip for reading. Check that the file exists, is readable by the web server and is not in a directory made out of reach by chroot, open_basedir restrictions or any other restriction put in place by your host.

Solution

I quickly found the solution to this problem by google:

  1. Login to Joomla Back office of the website;
  2. Go to System > Global Configuration > Server tab;
  3. Insert the (correct) absolute path for Temp directory of a website to Path to Temp Folder field, in my case: /MyDomain.ch/tmp instead of /www/MyDomain.ch/MyDomain.ch/tmp/

Expected result

Update from 3.9.28 to 3.10

Actual result

Update aborted with above error message

System information (as much as possible)

n.a.

Additional comments

I surely never changed that value for a long time - while doing regular updates... So I just wonder: how was I able to run all the upgrades in the past????

avatar TerraD TerraD - open - 18 Aug 2021
avatar TerraD TerraD - change - 18 Aug 2021
Labels Removed: ?
avatar joomla-cms-bot joomla-cms-bot - change - 18 Aug 2021
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 18 Aug 2021
avatar TerraD TerraD - change - 18 Aug 2021
Title
ERROR: Could not open archive part file ...
Update to 3.10.0 -- ERROR: Could not open archive part file ...
avatar TerraD TerraD - edited - 18 Aug 2021
avatar zero-24
zero-24 - comment - 18 Aug 2021

I think its also interesting to see the version 3.7.4 in the error message /www/MyDomain.ch/MyDomain.ch/tmp//Joomla_3.7.4-Stable-Update_Package.zip

Would it be possible that you can send me a full backup of the 3,9,28 site to tobias.zulauf@community.joomla.org so this can be debugged?

avatar RickR2H
RickR2H - comment - 18 Aug 2021

@zero-24 I've had the same issue. In my case the cache was enabled and set to Progressive cache in the configuration. After disabling and cleaning the cache, the update worked...


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/35215.

avatar zero-24
zero-24 - comment - 18 Aug 2021

@zero-24 I've had the same issue. In my case the cache was enabled and set to Progressive cache in the configuration. After disabling and cleaning the cache, the update worked...

hmm would be interesting to know what caching settings @TerraD has then but trying to debug the issue on a backup would help to understand why it fails cause caching should not break the upgrade.

avatar TerraD
TerraD - comment - 18 Aug 2021

The version was a wrong scopy/paste action from the solution I found with Google:
/www/MyDomain.ch/MyDomain.ch/tmp//Joomla_3.7.4-Stable-Update_Package.zip should correctly be
/www/MyDomain.ch/MyDomain.ch/tmp//Joomla_3.10.0-Stable-Update_Package.zip. I will try to correct that yet in my first post.

avatar TerraD TerraD - change - 18 Aug 2021
The description was changed
avatar TerraD TerraD - edited - 18 Aug 2021
avatar TerraD
TerraD - comment - 18 Aug 2021

The cache was disabled.

2021-08-18_17-17-39-254

avatar RickR2H
RickR2H - comment - 18 Aug 2021

Mmm then is must be something else I did. Just to be complete:

Ass far as I recall: After the error I disabled the cache, cleaned all the Joomla cache and browser cache. Then I and went to the Joomla update component and clicked "Check for updates" Then I was able to update.

Hope this helps...

avatar zero-24
zero-24 - comment - 18 Aug 2021

Ok thanks thats why I asked for a backup so i can try to reproduce and debug the issue

avatar RickR2H
RickR2H - comment - 18 Aug 2021

@zero-24 Check ?

avatar RickR2H
RickR2H - comment - 18 Aug 2021

@zero-24 Managed to find a backup and could reproduce the error locally whis this backup. Hope this helps. Send via WeTransfer.

avatar zero-24
zero-24 - comment - 18 Aug 2021

Thanks will take a look into that.

avatar zero-24
zero-24 - comment - 19 Aug 2021

Hmm on the backup I have got I could not reproduce the issue that was reported. @TerraD can you provide a backup too?

avatar TerraD
TerraD - comment - 19 Aug 2021

Hmm on the backup I have got I could not reproduce the issue that was reported. @TerraD can you provide a backup too?

Will do

avatar TerraD
TerraD - comment - 19 Aug 2021

I don't know ho to send PN on GitHub. So I sent an email with a
TresorIt-link to Tobias's published Email. Hope that arrives.

--

avatar zero-24
zero-24 - comment - 19 Aug 2021

Yes thanks it reached me will take a closer look into it this afternoon. There is no PN feature in GitHub ;)

avatar zero-24
zero-24 - comment - 20 Aug 2021

Hmm I have just installed the site and upgraded it successfully without any issues to Joomla 3.10 while the correct folder was set for my local system by that kickstarter script so it was correct at the time.

When you set the path can you check whether there are any issues reported on System -> System Information -> Permissions?

Thanks

avatar TerraD
TerraD - comment - 21 Aug 2021

.. When you set the path...

I'm not sure if I should try to change my Temp Path again for your latest question. In my case, before the update to 3.10.0 there was a wrong path in the 'Path to Temp Folder' /www/dog-cart-thurgau.ch/dog-cart-thurgau.ch/tmp/ (so double error: domain name double and '/' at the end). I corrected this and then the upgarade to 3.10.0 was successful!

In the attached screenshot you see my current permissions. The Log folder seems interesting: it has the same structure as the Temp Folder had before and it is marked as 'Writeable'!

2021-08-21_12-48-39-657

For a test I changed now 'Path to Temp Folder' to /dog-cart-thurgau.ch/tmp/ and the permissions page will still say it is writeable - however last week I was not able to update with that path: '/dog-cart-thurgau.ch/tmp//Joomla_3.10.0-Stable-Update_Package.zip' was marked as error. So I changed it for my update to /dog-cart-thurgau.ch/tmp

May I suggest, that it would be good programming practice to allow the user to enter paths with and without the trailing slash! Due to bad experiences I make all my programs fault-tolerant regarding this issue... (30 years ago you could deduce from MS documentation that the trailing slash is part of the path. But recent MS routines do not indicate that there is still such a rule...)

avatar zero-24
zero-24 - comment - 21 Aug 2021

May I suggest, that it would be good programming practice to allow the user to enter paths with and without the trailing slash! Due to bad experiences I make all my programs fault-tolerant regarding this issue...

Good idea can you send a PR to take care of this similiar to your programs, so we dont have to reinvent the weel?

avatar zero-24
zero-24 - comment - 21 Aug 2021

We might can also extend the validation or filter rule to make sure its set correctly.

avatar TerraD
TerraD - comment - 21 Aug 2021

?PR

avatar zero-24
zero-24 - comment - 21 Aug 2021

?PR

Pull request on GitHub ;-)

avatar TerraD
TerraD - comment - 22 Aug 2021

Tnx, will send PR

avatar TerraD
TerraD - comment - 22 Aug 2021

Do I need to send a second PR regarding the non-existent Log folder that is considered to be writeable?

avatar zero-24
zero-24 - comment - 22 Aug 2021

You can when you have code to handel it correctly.

avatar TerraD
TerraD - comment - 22 Aug 2021

Oh, PR requires a solution... Supposed it to be kind of feature request. I don't have code in PHP for this.

And I have neither for the Slash problem! I have a simple rule: Whenever I handle path-strings I assume them to be with a Slash; but I'll always handle the situation when the user does not supply one!

avatar Hackwar Hackwar - change - 22 Feb 2023
Labels Added: bug
avatar Hackwar Hackwar - labeled - 22 Feb 2023
avatar Quy Quy - change - 22 Feb 2023
Labels Added: J3 Issue
avatar Quy Quy - labeled - 22 Feb 2023
avatar brianteeman brianteeman - close - 1 Sep 2023
avatar brianteeman
brianteeman - comment - 1 Sep 2023

As Joomla 3 is now end of life and no longer supported I am closing this

avatar brianteeman brianteeman - change - 1 Sep 2023
Status New Closed
Closed_Date 0000-00-00 00:00:00 2023-09-01 15:53:39
Closed_By brianteeman

Add a Comment

Login with GitHub to post a comment