News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Having problems with the package manager?

Started by [Unknown], February 20, 2005, 12:32:26 AM

Previous topic - Next topic

DarkCloud14

#500
Uhm I have a serious problem with package manager on a server of another user. He tried to install my mod.
I've logged in via ftp and checked what happens. If I click on apply mod and the package manager does test
everything, it looks like everything works fine. It creates a temp directory with the correct permissions and successfully extract all files and directories in it.

After the test is done it deletes the temp directory again is that OK??
Cause if I now click on the install button it doesn't install the mod correct.
I checked if package manager creates the temp directory again and it does but seriously
it doesn't extract the directorys anymore just the files in root of the zip/tar.gz file...

Somebody knows whats wrong??

IchBin™

More than likely a server issue, not allowing the folder to be created. I'm not sure about the types of permissions on these things. May be something you want to talk to the host about.
IchBin™        TinyPortal

DarkCloud14

Yeah thought so first as I saw the error in error log but I've monitored the package managers temp folder
and as I said for the test it extracts everything but then it deletes it again. Is this deleting of temp folder
after the test normal??

I've also created the temp folder manually and it got deleted too after the test.

johnwalkdaily

Whenever I upload a mod with SMF, it changes the owner to "15", instead of my user name on my Linux-based ISP. Is this an SMF deal, apache, or what? What can I do about it? I do not have chown privileges.

Thanks,
John

asymmetric

#504
Quote from: Orange789 on March 08, 2007, 04:58:06 AM
Since 1.1.2 I cannot "download" packeages with the package manager, I always get the "This package is not comaptible woth your version or is corrupt" message, but if I download them from the mod site then use the upload facility, they work fine ?

Any thoughts ?

I am having the same problem, on a fresh install of SMF 1.1.2, on my own (not shared etc) server.  PHP is not running in safe_mode, and allow_url_fopen is on in php.ini.

I have narrowed the problem down to this simple fact, and would appreciate any ideas on a fix..

When trying to fetch the package to verify it, the code in Sources/Subs-Package.php, function "fetch_web_data", issues a hand-crafted HTTP GET of the specified file..

It ONLY works if the server returns a 200.

Well, ALL the download links point to "http://mods.simplemachines.org/...." and they all respond with a 301 - Permanently Moved and redirect (works in a normal browser) "http://custom.simplemachines.org/..."

Of course, that causes the function to simply return false right there, and that's all she wrote.  Installation fails because this hand-crafted HTTP GET function does not understand how to deal with HTTP redirects.

Somebody at SMF decided to do this, renaming 'mods' to 'custom', not knowing they were going to break every install of SMF, which they did, because of this lunatic method of getting files to "get around" allow_url_fopen();

No, not crazy, and it's not any of "our" fault....

Unknown.. Paging unknown.. ;)

I will try to come up with a patch myself since this is really crippling getting this fresh install going with the packages I want..

(edit: They return a 301, not a 302, but same thing.  It's not a 200 or 201 which are the only HTTP responses this function knows how to deal with.  It dies on anything else.)

phatchopolis

Okay I just installed freshly in the last couple days. I add a Package using the upload feature. Go through the installation with no errors and it shows it being installed and seemingly makes the modifications. I noted files added that should have been and alterations to the database tables. But there's no changes to the forum. Any ideas?

dheeraj

hey Problem Solved...this was the server problem...Recently i change my server
and the Package Manager works fine....
and my old server remains the same..

phatchopolis

My problem has to do with the Fantastico installation apparently. Was doing a test board to check mods before installing to a main site. So I installed using Fantastico so it'd be quicker. That's the one that would add the mods but nothing took effect. So I deleted that database and installation and manually installed again. With the manual installation everything is currently working as it should with the Package Manager.

gheli

hey where to put this file han please reply  

青山 素子

gheli, you need to be more descriptive of your problem before anyone can help. Also, please start a topic with your problem. This one is long enough as it is.
Motoko-chan
Director, Simple Machines

Note: Unless otherwise stated, my posts are not representative of any official position or opinion of Simple Machines.


gheli

yah i have problem that when i want apply mod i just  click [apply]
it get me to
Some of the files the package manager needs to modify are not writable. This needs to be changed by logging into FTP and using it to chmod or create the files and folders. Your FTP information may be temporarily cached for proper operation of the package manager.

and when i fill the form with all information about my ftp and click proceed it will returns the same no changes and nothing installed
i have smf 1.1.2 plz help me

Oldiesmann

Are the files actually getting chmodded? You may have to do it by hand if the built-in FTP feature doesn't work.
Michael Eshom
Christian Metal Fans

gheli

#512
yah I HAVE CHMODED ALL THE FILES BUT STILL IT GAVE NO RESULT  PLZ HELP 
and today when i try to instal rating mod it give erorr
Fatal error: require() [function.require]: Failed opening required '/www/5gbfree.com/g/h/e/gheli/htdocs/lala/Packages/temp/./RatingsPdb.php' (include_path='.:/usr/share/php') in /www/5gbfree.com/g/h/e/gheli/htdocs/lala/Sources/Packages.php on line 552


and also it said:
 Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.

plz help

coldthunder

Well i have had the dreaded cant install any packages syndrome for one week now, like others it comes up with ftp access information, when i type the right info in (and i know its right as i can access the site with other ftp clients) and i know the path is correct (im running ver 1.1.2) so i finally came to the conclusion it has to be something with my host not allowing smf to change the permission required to install the packages. I finally had a friend of mine install smf on his hosting service called Siteground (i used ipower) and for him it worked fine and he can isntall packages all day withough it even asking for the ftp information so i definately know now it is a hosting issue and them not giving the correct rights. I have contacted them but they seem to have no clue what i am talking about, so im moving over to the other hosting company as it works there :-)

Elegant John

Quote from: Minion on March 03, 2005, 01:14:51 PM
\
Anyways if anyone else has an idea i am open to it.

Thanks for you help.

Try http://www.kazix.com   Use Retromex.com as your referrer. Godaddy is excellent in some things, they suck in others such as webhosting. I use them to buy my domains, have tried their hosting packages and was not impressed.  

zuu

2: file_put_contents() [<a href='function.file-put-contents'>function.file-put-contents</a>]: SAFE MODE Restriction in effect. The script whose uid is 3982 is not allowed to access /www/5gbfree.com/i/n/f/infdrm/htdocs/smf/Packages/temp owned by uid 2001
File: /www/5gbfree.com/i/n/f/infdrm/htdocs/smf/Sources/Subs-Package.php
Line: 455

Fiery

#516
Quote from: zuu on April 12, 2007, 01:30:55 AM
2: file_put_contents() [<a href='function.file-put-contents'>function.file-put-contents</a>]: SAFE MODE Restriction in effect. The script whose uid is 3982 is not allowed to access /www/5gbfree.com/i/n/f/infdrm/htdocs/smf/Packages/temp owned by uid 2001
File: /www/5gbfree.com/i/n/f/infdrm/htdocs/smf/Sources/Subs-Package.php
Line: 455


See if your host will turn off Safe Mode, also take a look at ELDACAR'S METHOD TO GETTING AROUND THE SAFE MODE PROBLEM.  Also, for more info on Safe Mode check out http://us2.php.net/features.safe-mode

zuu

550 Could not change perms on temp: Operation not permitted : /smf/Packages/777 temp

Fiery

Quote from: zuu on April 12, 2007, 01:37:03 AM
550 Could not change perms on temp: Operation not permitted : /smf/Packages/777 temp

The best option is to contact your host and see if they can turn off safe mode... explain the situation to them.

metallica48423

or at the very least, they should enable phpsuexec for you.. so that your apache processes run as your user
Justin O'Leary
Ex-Project Manager
Ex-Lead Support Specialist

QuoteMicrosoft wants us to "Imagine life without walls"...
I say, "If there are no walls, who needs Windows?"


Useful Links:
Online Manual!
How to Help us Help you
Search
Settings Repair Tool

Advertisement: