HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Upgrade Error

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#70313 (In Topic #14883)
Avatar

Fan in action

Upgrade from 7.0.1 to 7.1 Beta 1

Running a local install on Windows 7 x64 and I managed to install 7.0.1 with no problems, but when attempting to upgrade to 7.1 beta 1, the system 'bails out'

PHP WARNING [2] unlink(C:\vhosts\Test/imports/mods/galleries.tar) [http://www.php.net/manual/en/function.unlink.php]: Permission denied in C:\vhosts\Test\sources\global.php(249) : eval()'d code on line 330 (version: 7.0.1, PHP version: 5.3.1, URL: /upgrader.php?type=_file_upgrade)

Stack trace…

File -> 'C:\vhosts\Test\sources\global.php(249) : eval()\'d code'
Line -> 640
Function -> 'die_html_trace'
Args -> array ( 0 => 'PHP WARNING [2] unlink(C:\vhosts\Test/imports/mods/galleries.tar) [<a href=\'http://www.php.net/manual/en/function.unlink.php\'>function.unlink.php</a>]: Permission denied in C:\vhosts\Test\sources\global.php(249) : eval()\'d code on line 330 (version: 7.0.1, PHP version: 5.3.1, URL: /upgrader.php?type=_file_upgrade)', )

File -> 'C:\vhosts\Test\sources\global.php(249) : eval()\'d code'
Line -> 936
Function -> '_fatal_exit'
Args -> array ( 0 => 'PHP WARNING [2] unlink(C:\vhosts\Test/imports/mods/galleries.tar) [<a href=\'http://www.php.net/manual/en/function.unlink.php\'>function.unlink.php</a>]: Permission denied in C:\vhosts\Test\sources\global.php(249) : eval()\'d code on line 330', )

File -> 'C:\vhosts\Test\sources\global.php(249) : eval()\'d code'
Line -> 209
Function -> 'fatal_exit'
Args -> array ( 0 => 'PHP WARNING [2] unlink(C:\vhosts\Test/imports/mods/galleries.tar) [<a href=\'http://www.php.net/manual/en/function.unlink.php\'>function.unlink.php</a>]: Permission denied in C:\vhosts\Test\sources\global.php(249) : eval()\'d code on line 330', )

File -> 'C:\vhosts\Test\sources\global.php(249) : eval()\'d code'
Line -> 810
Function -> '_ocportal_error_handler'
Args -> array ( 0 => 'warning', 1 => 2, 2 => 'unlink(C:\vhosts\Test/imports/mods/galleries.tar) [<a href=\'http://www.php.net/manual/en/function.unlink.php\'>function.unlink.php</a>]: Permission denied', 3 => 'C:\vhosts\Test\sources\global.php(249) : eval()\'d code', 4 => 330, )

Function -> 'ocportal_error_handler'
Args -> array

File -> 'C:\vhosts\Test\sources\global.php(249) : eval()\'d code'
Line -> 330
Function -> 'unlink'
Args -> array ( 0 => 'C:\vhosts\Test/imports/mods/galleries.tar', )

File -> 'C:\vhosts\Test\upgrader.php'
Line -> 52
Function -> 'upgrade_script'
Args -> array ( )

Integrity check

If you think this problem could be due to corruption caused by a failed upgrade (e.g. time-out during extraction), check the following integrity check…

These files are outdated (you can find the correct versions in the manual installer ZIP for the version you're running; ignore any files that you have knowingly replaced as official bug fixes):

  • ocp_sitemap.xml

Back to the top
 
Posted
Rating:
#70325
Avatar

Something has messed up your file permissons. The server created that file, but something has changed to stop it writing to it again.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#70329
Avatar

Fan in action

I'm installing 7.01 using install.php and data.ocp which are in the root of the website.

I've then put the upgrade .tar in the root and referenced that to carry out the upgrade.

I'll try in a new 'clean' vhost and report back as my 'Test' domain does get trashed regularly.

(Quite strange to get a file permission error in Windows)
Back to the top
 
Posted
Rating:
#70342
Avatar

Fan in action

Absolutely clean install and even ensured that Everyone had Full Control on the directory before starting. 7.0.1 installs cleanly, but the upgrade fails.

PHP WARNING [2] unlink(C:\vhosts\ocp/imports/mods/chat.tar) [http://www.php.net/manual/en/function.unlink.php]: Permission denied in C:\vhosts\ocp\sources\global.php(249) : eval()'d code on line 330 (version: 7.0.1, PHP version: 5.3.1, URL: /upgrader.php?type=_file_upgrade)

Stack trace…

File -> 'C:\vhosts\ocp\sources\global.php(249) : eval()\'d code'
Line -> 640
Function -> 'die_html_trace'
Args -> array ( 0 => 'PHP WARNING [2] unlink(C:\vhosts\ocp/imports/mods/chat.tar) [<a href=\'http://www.php.net/manual/en/function.unlink.php\'>function.unlink.php</a>]: Permission denied in C:\vhosts\ocp\sources\global.php(249) : eval()\'d code on line 330 (version: 7.0.1, PHP version: 5.3.1, URL: /upgrader.php?type=_file_upgrade)', )

File -> 'C:\vhosts\ocp\sources\global.php(249) : eval()\'d code'
Line -> 936
Function -> '_fatal_exit'
Args -> array ( 0 => 'PHP WARNING [2] unlink(C:\vhosts\ocp/imports/mods/chat.tar) [<a href=\'http://www.php.net/manual/en/function.unlink.php\'>function.unlink.php</a>]: Permission denied in C:\vhosts\ocp\sources\global.php(249) : eval()\'d code on line 330', )

File -> 'C:\vhosts\ocp\sources\global.php(249) : eval()\'d code'
Line -> 209
Function -> 'fatal_exit'
Args -> array ( 0 => 'PHP WARNING [2] unlink(C:\vhosts\ocp/imports/mods/chat.tar) [<a href=\'http://www.php.net/manual/en/function.unlink.php\'>function.unlink.php</a>]: Permission denied in C:\vhosts\ocp\sources\global.php(249) : eval()\'d code on line 330', )

File -> 'C:\vhosts\ocp\sources\global.php(249) : eval()\'d code'
Line -> 810
Function -> '_ocportal_error_handler'
Args -> array ( 0 => 'warning', 1 => 2, 2 => 'unlink(C:\vhosts\ocp/imports/mods/chat.tar) [<a href=\'http://www.php.net/manual/en/function.unlink.php\'>function.unlink.php</a>]: Permission denied', 3 => 'C:\vhosts\ocp\sources\global.php(249) : eval()\'d code', 4 => 330, )

Function -> 'ocportal_error_handler'
Args -> array

File -> 'C:\vhosts\ocp\sources\global.php(249) : eval()\'d code'
Line -> 330
Function -> 'unlink'
Args -> array ( 0 => 'C:\vhosts\ocp/imports/mods/chat.tar', )

File -> 'C:\vhosts\ocp\upgrader.php'
Line -> 52
Function -> 'upgrade_script'
Args -> array ( )

Integrity check

If you think this problem could be due to corruption caused by a failed upgrade (e.g. time-out during extraction), check the following integrity check…

These files are outdated (you can find the correct versions in the manual installer ZIP for the version you're running; ignore any files that you have knowingly replaced as official bug fixes):

  • ocp_sitemap.xml
Back to the top
 
Posted
Rating:
#70343
Avatar

Fan in action

Just a quick update :

I'm going to just try an install of the Beta, so I went to clear out the vhost dirwectory, but have encountered a file lock on data\fonts\Vera.ttf



Back to the top
 
Posted
Rating:
#70344
Avatar

Fan in action

Full Install of 7.1 beta went okay, but a 3rd attempt at an upgrade with minimal intervention also failed.
Back to the top
 
Posted
Rating:
#72723
Avatar

Fan in training

I have the same upgrade error:
PHP WARNING [2] unlink(C:\vhosts\ocp/imports/mods/chat.tar) [ http://www.php.net/manual/en/function.unlink.php]: Permission denied in C:\vhosts\ocp\sources\global.php(249) : eval()'d code on line 330 (version: 7.0.1, PHP version: 5.3.1, URL: /upgrader.php?type=_file_upgrade)

I am using Windows Server 2008 and have a test Windows 2003 Server that displays the same error when trying to upgrade.

Is this and issue with Windows? Everything is set to write on both servers. I had to make a manual install because the Microsoft Installer failed. I just did a copy and paste of the 7.1.1-3 upgrade and it worked.

I do fear that once I am operational and have to do a major upgrade that my site will crash and burn. It also appears that Windows has some corrupt files from the manual install. I can't edit some of the pages. The pages lose all of the code and I have to restore from a backup.
Back to the top
 
Posted
Rating:
#72724
Avatar

I this your server, or hosting you pay for?

It certainly doesn't sound like an ocPortal problem, as on Windows PHP can't set permissions, so unless somehow the file is locked and that is reported as 'permission denied', all I can think is something outside the scope of ocPortal broke the permissions.

If I was a server admin I'd try resetting IIS, just in case something is holding the file open.

If you don't care about ever reinstalling that addon(s), you can delete the tar file(s).

I do fear that once I am operational and have to do a major upgrade that my site will crash and burn. It also appears that Windows has some corrupt files from the manual install. I can't edit some of the pages. The pages lose all of the code and I have to restore from a backup.

If you think this is a bug please file a specific report.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#72729
Avatar

Fan in training

One server is virtual and I control it, the second server is at my home for testing. Before running the manual install I set the permissions on all the folders and files listed in one of the guides. I did find a file or two that needed permissions so I added ot to the list, unistalled OCP and reinstalled. So, far so good. It is the upgrade that fails and certain pages that cannot be upgraded.

I do not belive it is bug issue. I do however wonder why the Microsoft installer doesn't work (but then it is Microsoft) or what may have caused the break in permissions.

The copying and pasting of the unzipped upgrade files works fine so I must be able to write to the correct locations in bothe servers.
Back to the top
 
Posted
Rating:
#72730
Avatar

Okay, I'm not sure I can help much, but I can at least explain why the upgrader touches the TAR files. ocPortal originally installs with all bundled addons installed, then setup wizard or addon manager can remove them, which archives them into tar files. The upgrader upgrades installed files, but also upgrades those tar files so they stay up-to-date. So the tar files are created inside ocPortal (setup wizard or addon manager) and the upgrader is maintaining them. If the upgrader cannot find the tar of an uninstalled addon it will just completely skip over files from that particular addon.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#72731
Avatar

Fan in training

Actually that does help. Windows may do something to the archived TAR file so it can't be read or written. I will look in to that on my test server.

There has to be something I am overlooking. I have installed some really bloated CMS and forum software before that was easier to upgrade. OCP is pretty streamlined so whatever is causing the error might just be basic.

If anyone else has Windows server install experience please contact me. Thanks.
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: