News:

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

Main Menu

"Packages directory or one of the files in it are not writable!"

Started by Pspuser007, October 05, 2008, 09:07:10 AM

Previous topic - Next topic

Pspuser007

Hello!

I have Smf 2 Beta 4!
I was trying to install a mod(the first of this forum) and got this error:"
Packages directory or one of the files in it are not writable! "
I went to File Permissions and saw this:
My home directory--> Not Writable   (chmod: 0750)
Sources       Not Writable   (chmod: 0755)

What can i do??


Thank you for your time!!

Satioz

Try creating a folder called 'temp' in your 'packages' directory and chmoding it to 0777 as well.

And try to chmoding the sources map to 0777

Pspuser007

Thank you for the reply!

I have created the folder but i don't know how to cmod the temp or the sources...
And i don't know what cmod is..


OK Buddy i did it!!
Thanks a lot!!!!:D:D:D

Pspuser007

Hello again guys...
I have a problem...I unistalling the mod i have installed and got this:"
You cannot download or install new packages because the Packages directory or one of the files in it are not writable!"

And then i went on to download and install another package and got this:"
Although the package was downloaded to the server it appears to be empty. Please check the Packages directory, and the "temp" sub-directory are both writable. If you continue to experience this problem you should try extracting the package on your PC and uploading the extracted files into a subdirectory in your Packages directory and try again. For example, if the package was called shout.tar.gz you should:
1) Download the package to your local PC and extract it into files.
2) Using an FTP client create a new directory in your "Packages" folder, in this example you may call it "shout".
3) Upload all the files from the extracted package to this directory.
4) Go back to the package manager browse page and the package will be automatically found by SMF. "

What can i do??
Is this a smf 2 beta 4 bug??
I want to use smf2 beta4 as public forum...

Rumbaar

Did you check to see if the 'temp' folder was still there and CHMOD correctly as directed?  Sometimes the folder is deleted, when it shouldn't be.
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

Pspuser007

Well the temp folder was being deleted by itself.
I cannot understand why this happened?

Rumbaar

I think it has to do with how a server is configured.  There is a mod relating to the 'temp' folder you might want to look into and see if that helps your issue.
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

rayosx

I have the same problem, I have the  SMF 2.0 rc1 and I never had the chance to install any mod through the administration panel,   I read that I need to have the Sources Directory  with 777 atribute , I did that and also the  Packages directory I put  777 attributes and I created a  temp directory with attributes 777 inside the packages.

what can I do ?  I still receive this error, as I wrote above, I have never installed through the administration panel or the packages installer through the forum (inside)  :(    Please help, am I doing something wrong in the  ftp configuration?


Although the package was downloaded to the server it appears to be empty. Please check the Packages directory, and the "temp" sub-directory are both writable. If you continue to experience this problem you should try extracting the package on your PC and uploading the extracted files into a subdirectory in your Packages directory and try again. For example, if the package was called shout.tar.gz you should:
1) Download the package to your local PC and extract it into files.
2) Using an FTP client create a new directory in your "Packages" folder, in this example you may call it "shout".
3) Upload all the files from the extracted package to this directory.
4) Go back to the package manager browse page and the package will be automatically found by SMF. "

Rumbaar

How did you install SMF 2.x?  Can you get your host to check and see if all the files in the SMF folder are actually owned by you at the server level.  Also to check the owner of the file that is uploaded and tried to be access by the package manager when it tries to install a mod.

Are you sure all your paths are correct, you haven't moved your forum at any chance?
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

rayosx

Very Deep Questions, since I am a stupid for this, but let me find these out and tell you.

rayosx

Rumbaar 
May I send you more information by private message? Please let me know, there is information that I would like that not all people look

Rumbaar

Nothing I've asked should have an answer that is sensitive, but sure.
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

rayosx

Rumbaar,
I am very sorry for delay, but I am sending right now the information private,

please advise

Thanks

Rumbaar

Okay there is quite a bit of info, I'll try to look at it over the weekend.
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

rayosx

Rumbaar 

Great, let me know if you need something else, but I believe that you have very solid info now, I will apprecaite on advance your advise.

thanks again !

vlindertje

When there is an answer for this problem. Can you write it here.
I hope it will helps me also :D

greyknight17

Pspuser007, is this issue resolved now? Did you try using this mod to see if it helps with the temp folder deletion issue?

mibthunderbird

I got same message:
this problem you should try extracting the package on your PC and uploading the extracted files into a subdirectory in your Packages directory and try again. For example, if the package was called shout.tar.gz you should:
1) Download the package to your local PC and extract it into files.
2) Using an FTP client create a new directory in your "Packages" folder, in this example you may call it "shout".
3) Upload all the files from the extracted package to this directory.
4) Go back to the package manager browse page and the package will be automatically found by SMF.

When I try to install the SMF 2.0 RC1-1.

temp folder is set to 777 in package directory.

Any solution for that?

H

mibthunderbird, do you still need help with this?

I assume you're trying to install the 2.0 RC1-1 security patch?
-H
Former Support Team Lead
                              I recommend:
Namecheap (domains)
Fastmail (e-mail)
Linode (VPS)
                             

au8ust

Got the same problem as mibthunderbird. I'm using SMF 2.0 RC1-1 and was trying to install Twitter Mod

The Packages and temp directory is set to 777 already.

Any idea?

Rumbaar

"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

au8ust

Thank you Rumbaar! It's fixed now. The issue is caused by wrong path due to and was fixed using the repair script.

cezars

Ok i still have that error but no fix i have done 755-777 on al dir temp,source,package and all files and i still get the error how do i fix that?? this sh is geting really f..


Edit the fix was simple make a din in package folder and set  777 mode to  temp directory

jluthman

Quote from: Satioz on October 05, 2008, 09:13:51 AM
Try creating a folder called 'temp' in your 'packages' directory and chmoding it to 0777 as well.

And try to chmoding the sources map to 0777

This fixed the problem for me.  Thank you for the suggestion!

I would advise a temp dir be made via installation or at the very least be more verbose about the error (state Packages/temp must exist and must be writable).


kkattfish

i had this issue today.  i did a complete backup prior to an upgrade i am planning tomorrow. 
after the backup i couldn't use my shoutbox and was getting the error posted here. 
turns out the backup put me over the size limit for my hosted package.  transferred the backup to my desktop, then deleted the backup from my host and i was able to create the temp folder inside of the pacakage directory and all is well. 

pmind

I'm actually having the problem. Sorry for not starting a new thread, but i thought that gathering all the information on the problem in the same thread would not be a bad idea.

1. I made sure my Packages folder was set to 777.
2. My temp folder is created and permissions set to 777.
3. I made sure all my paths were ok with repair_settings.php

When i try to upload any package, i get this error :

Package upload failed due to the following error:
"Although the package was downloaded to the server it appears to be empty. Please check the Packages directory, and the "temp" sub-directory are both writable. If you continue to experience this problem you should try extracting the package on your PC and uploading the extracted files into a subdirectory in your Packages directory and try again. For example, if the package was called shout.tar.gz you should:
1) Download the package to your local PC and extract it into files.
2) Using an FTP client create a new directory in your "Packages" folder, in this example you may call it "shout".
3) Upload all the files from the extracted package to this directory.
4) Go back to the package manager browse page and the package will be automatically found by SMF."


I would be thankful to anyone that helps me fix this annoying problem.


MrPhil

Do not start with 777 permissions. Start with 755, and only if SMF complains that it is unwritable, try 775. If still unwritable, use 777 as a last resort. Many systems ban access to 777 (and 666) as security hazards, because anyone can write to them.

MrMike

It would be a huge help if this error called out the name of the file or directory that isn't writable.

I've been chasing this error for a couple of days now with no luck. I have 3 servers, 2 update fine, the 3rd one can NEVER do it and this generic "something's wrong" message is of no real help.

FYI, yes, everything is chmod'd correctly, owner permissions are set correctly, etc etc etc etc etc.

But it won't *&#$%! work. So sick of this nonsense. :(

MrPhil

Since any file in the Packages directory was likely written already by SMF, most likely it's the Packages directory itself which isn't writable, and/or the temp directory that should be under it. Remember that 777 isn't necessarily writable, if you have security software blocking it.

Add: Always try 755 first, then 775, before going to 777. Some hosts with "unusual" setups may require other permissions, such as 705/707. The whole point is to find permissions which are writable by PHP, which may or may not be running as owner.

MrMike

Quote from: MrPhil on December 19, 2012, 01:06:01 PMSince any file in the Packages directory was likely written already by SMF, most likely it's the Packages directory itself which isn't writable, and/or the temp directory that should be under it.

The Packages directory (and everything in and under it) is fully writable, and has the correct owner and group. I may be wrong but I don't think there's any security software running that would interfere with this.

Sea Mac

Quote from: jluthman on January 29, 2011, 11:43:09 PM
Quote from: Satioz on October 05, 2008, 09:13:51 AM
Try creating a folder called 'temp' in your 'packages' directory and chmoding it to 0777 as well.

And try to chmoding the sources map to 0777

This fixed the problem for me.  Thank you for the suggestion!

I would advise a temp dir be made via installation or at the very least be more verbose about the error (state Packages/temp must exist and must be writable).
I created a folder called 'temp' in my 'packages' directory and set it to 755:
Fixed everything just FINE!!!

Thanks Guys and Gals!

Advertisement: