News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Package Manager Error

Started by drgnfireinferno, June 26, 2007, 04:52:18 PM

Previous topic - Next topic

drgnfireinferno

SMF Version: SMF 1.1.2
I am trying to upgrade to version 1.1.3 via the Package Manager but I keep getting this error:
QuoteAn Error Has Occurred!
You cannot download or install new packages because the Packages directory or one of the files in it are not writable!

I recently just moved my forum to a new server and had the same problem with other areas but was able to fix them by changing the directory settings for those areas. However I can't find anyway to do that with the packages. Any help would be appreciated.

"How to beat yourself up, and make it look like a sporting accident too."

exrace

#1
Here is what worked for me.

Under the /packages dir create two dirs:
/tmp and /temp
Depending on your permissions this might all you need to do.

Otherwise you need to adjust permissions on a few files.
I use winSCP to adjust permissions but FTP will work too.

If you open the package on your local machine you can look at what files the installer is trying to write to so extract the package.

Now look at these files one by one:
smf_1-0-10_to_1-0-11_patch.mod
smf_1-1-2_to_1-1-3_patch.mod

Search for this string and find each file it references:
<edit file>

Now edit the permissions for each file to 777...this will allow the updates to work.
When done with update reset the permissions back to the old values.

Good luck.

drgnfireinferno

I added those directories with full permissions and everything is working again. Thanks for your help.

"How to beat yourself up, and make it look like a sporting accident too."

exrace

Great.
Did the package setup remove the dirs after it was done?

babjusi

To prevent the Package manager from removing the temp folder, install this mod

http://custom.simplemachines.org/mods/index.php?mod=724

Javaman56

okay! I must be dumb but for some reason I cannot open or find the Package directory
Keepin' on for Christ,
David
www.roughhewnministries.com
www.roughhewnministries.com/forum/index.php

babjusi

Quote from: Rough-Hewn on June 28, 2007, 08:51:33 PM
okay! I must be dumb but for some reason I cannot open or find the Package directory

where did you look for it? You will find it in the same place where you have uploaded the smf files.

Javaman56

yep looked there opened folder 'packages' and then i went blank :P and can't remember where to change permissions to 777
Keepin' on for Christ,
David
www.roughhewnministries.com
www.roughhewnministries.com/forum/index.php

babjusi

Don''t open it. Just simply hover over the folder and click with the right mouse button and choose properties, and there add the corresponding chmod numbers, 777. Hope this helps

Javaman56

nope - it didn't work. right clicked and just got 3 tabs 'general - sharing - customize'
Keepin' on for Christ,
David
www.roughhewnministries.com
www.roughhewnministries.com/forum/index.php

babjusi

Quote from: Rough-Hewn on June 28, 2007, 09:16:30 PM
nope - it didn't work. right clicked and just got 3 tabs 'general - sharing - customize'

What ftp client do you use?
You can try this as well: Admin Panel-Package-Options-Cleanup Permissions

Javaman56

Okay, I went to - Admin Panel-Package-Options-Cleanup Permissions, and tried to change permissions but it wouldn't change. I made sure of my ftp and username also.

OOps- just saw when I tried to right click again that my ftp server does not support changing file permissions
Keepin' on for Christ,
David
www.roughhewnministries.com
www.roughhewnministries.com/forum/index.php

Mastiff

I'm having this same problem - the upgrade seemed to work, but everything still says 1.1.2.  I'm unable to try the install again because it gives the permission error in the first post of this thread.  Everything in my packages directory is 666 or 777.

I tried adding the tmp and temp directories with 777 permission, but no change.  I'm not sure I followed the rest of the suggestions in the posts above (I'm only using package manager, I have no local files).

Any other ideas?
"If you're an ugly chick, you're basically the same as a dude... I mean, you're gonna have to work."

babjusi

Your package directory should be chmoded to 777 not to 666

Mastiff

Quote from: babjusi on July 01, 2007, 11:10:15 AM
Your package directory should be chmoded to 777 not to 666

It is.  The tar.gz files are being problematic.  I can't seem to change them from 755 right now.  Does it matter?

I did have a mistake with the temp directory - I had it in the wrong place.  With temp and tmp in the packages directory, the upgrade ran again, but everything still says 1.1.2.  It seemed to run perfectly, "test successful" for everything, etc.  Just doesn't seem to be doing anything.
"If you're an ugly chick, you're basically the same as a dude... I mean, you're gonna have to work."

exrace

Sounds like the file containing the version didn't get updated.
You can manually edit it.

<edit file>
$boarddir/index.php
</edit file>

<search for>
* Software Version:           SMF 1.1.2                                           *
</search for>

<replace>
* Software Version:           SMF 1.1.3                                           *
</replace>

<search for>
$forum_version = 'SMF 1.1.2';
</search for>

<replace>
$forum_version = 'SMF 1.1.3';
</replace>

Mastiff

Would that be my problem even if the detailed listing of file version shows none being upgraded?
"If you're an ugly chick, you're basically the same as a dude... I mean, you're gonna have to work."

exrace

Most likely the files needing updates are not r/w.


Sarge

Did you follow this post?
http://www.simplemachines.org/community/index.php?topic=179175.msg1140285#msg1140285

These files need to be writable (777 should do the job) for the update to work:

index.php (in the base directory of your forum)
Sources/Display.php
Sources/LogInOut.php
Sources/ManageNews.php
Sources/PersonalMessage.php
Sources/Post.php
Sources/Profile.php
Sources/QueryString.php
Sources/Subs-Auth.php
Sources/Subs-Package.php
Sources/Subs.php
Themes/default/xml_topic.js

    Please do not PM me with support requests unless I invite you to.

http://www.zeriyt.com/   ~   http://www.galeriashqiptare.net/


Quote
<H> I had zero posts when I started posting

Mastiff

Quote from: Sarge on July 28, 2007, 05:35:10 AM
Did you follow this post?
http://www.simplemachines.org/community/index.php?topic=179175.msg1140285#msg1140285

These files need to be writable (777 should do the job) for the update to work:

index.php (in the base directory of your forum)
Sources/Display.php
Sources/LogInOut.php
Sources/ManageNews.php
Sources/PersonalMessage.php
Sources/Post.php
Sources/Profile.php
Sources/QueryString.php
Sources/Subs-Auth.php
Sources/Subs-Package.php
Sources/Subs.php
Themes/default/xml_topic.js


It would be great if the package manager would identify permission problems before continuing.  I did have some permission problems, some of which I couldn't fix myself because they were written by an SMF script instead of me.  Once index is updated though, it doesn't look like the update script can be run again, so any residual problems have to be fixed manually.

It been a while since I thought about this.  My index.template.php under current templates is version 1.0.   Not sure if this matter.
"If you're an ugly chick, you're basically the same as a dude... I mean, you're gonna have to work."

Advertisement: