Advertisement:
NameCheap

Author Topic: Having problems with the package manager?  (Read 541685 times)

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
Having problems with the package manager?
« on: February 20, 2005, 12:32:26 AM »
Some people have run into problems using the package manager.  These are caused either by safe mode issues, or wrong paths.

If you're trying to use the package manager in safe mode, you may experience problems.  This is caused by ownership issues.  Previously, our recommendation has been to ask your host to enable PHP suExec, which solves those issues.

Recently, we came upon another solution which may resolve the need for PHP suExec in safe mode environments.  While this is still something your host should/could do for you, it is also something you can do without their involvement in many cases.

PLEASE NOTE: This solution may or may not work for everyone.  We would like feedback on whether or not it works for you.

The tool attached does two things: first, it changes the permissions (if possible) on the files in your SMF installation to combat safe mode, and second it tells you what path it used, which is what you should use in the package manager as well.  Please use this tool if you are having problems installing mods, and copy down the path it gives you.  The next major release of SMF should solve these problems.

The trick this file uses is that setting your permissions a certain way will make it so that files created by PHP, for example in "attachments", are still owned by *you*, not PHP.  This is, in many cases, better anyway, because you don't want files owned by someone else in your stuff!

-[Unknown]
« Last Edit: April 23, 2006, 02:29:31 PM by huwnet »

Offline Oldiesmann

  • Lead Developer
  • SMF Super Hero
  • *
  • Posts: 24,018
  • Gender: Male
  • Ask me about the function DB :)
    • oldiesmann on Facebook
    • Oldiesmann on GitHub
    • http://www.linkedin.com/in/michaeleshom on LinkedIn
    • @oldiesmann on Twitter
    • Archie Comics Fan Forum
Re: Having problems with the package manager?
« Reply #1 on: February 22, 2005, 11:37:02 AM »
Tried the tool on a friend's board...

I still get this when trying to use the package manager:

Quote
2: opendir(): SAFE MODE Restriction in effect. The script whose uid is 832 is not allowed to access /.../var/www/html/forums/Packages/temp owned by uid 48
File: /.../var/www/html/forums/Sources/Subs-Package.php
Line: 895

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
Re: Having problems with the package manager?
« Reply #2 on: February 22, 2005, 03:16:50 PM »
Try deleting the temp directory and trying again... or... hmm, I'll make a change to the attachment, one moment..

-[Unknown]

Offline Oldiesmann

  • Lead Developer
  • SMF Super Hero
  • *
  • Posts: 24,018
  • Gender: Male
  • Ask me about the function DB :)
    • oldiesmann on Facebook
    • Oldiesmann on GitHub
    • http://www.linkedin.com/in/michaeleshom on LinkedIn
    • @oldiesmann on Twitter
    • Archie Comics Fan Forum
Re: Having problems with the package manager?
« Reply #3 on: February 22, 2005, 03:37:39 PM »
Ok.

* Oldiesmann waits

Offline Owdy

  • SMF Fossil
  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,545
  • Gender: Male
  • W00t!
    • janoloferiksson on LinkedIn
    • @@jaoler on Twitter
Re: Having problems with the package manager?
« Reply #4 on: February 22, 2005, 03:38:52 PM »
: fopen(): SAFE MODE Restriction in effect. The script whose uid is 2542 is not allowed to access /home/customers/kulma/public_html/keskustelu/Packages/temp owned by uid 502
Tiedosto: /home/customers/kulma/public_html/keskustelu/Sources/Subs-Package.php
Rivi: 1454
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

Offline Oldiesmann

  • Lead Developer
  • SMF Super Hero
  • *
  • Posts: 24,018
  • Gender: Male
  • Ask me about the function DB :)
    • oldiesmann on Facebook
    • Oldiesmann on GitHub
    • http://www.linkedin.com/in/michaeleshom on LinkedIn
    • @oldiesmann on Twitter
    • Archie Comics Fan Forum
Re: Having problems with the package manager?
« Reply #5 on: February 22, 2005, 03:57:44 PM »
Still not working for me either... I already upgraded that board to 1.0.2 earlier, but found another mod that might be nice to have, and uploaded that via the package manager, and even attempted to install it before running the fix_ownership file...

Offline ayanna

  • Newbie
  • *
  • Posts: 1
  • Gender: Female
Re: Having problems with the package manager?
« Reply #6 on: March 02, 2005, 12:29:36 PM »
Ummm...I know, I'm an über-newbie (and a girl at that! but hey, at least I'm not blonde on top of it all!)...but...how do you use the 'tool'?
If I click on it...it just opens it in my browser.
If I try to right-click & save target as...it saves it as a txt file

I really like SMF but...how the heck can I install any of the mods if the package manager won't let me?

Yes, I get the same SafeMode error messages everyone else seems to be getting...and if the 'fix ownership' thingy (that's a very technical term, ya know!) will work, I'd really like to use it!

Suggestions? Assistance? Cure-alls?

I'm truly desperate...as there are several mods I'd like to install (integrated chat, arcade, shoutbox, etc)...if it makes a difference I'm using SMF 1.0.2

Offline Trekkie101

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 8,154
  • Gender: Male
  • Ad Astra!
    • https://www.facebook.com/DLRPRoundup on Facebook
    • @dlrproundup on Twitter
    • DLRP Roundup
Re: Having problems with the package manager?
« Reply #7 on: March 02, 2005, 12:32:34 PM »
Open FTP, and upload it to your forums directory and then type in the address in your browser straight to the script and then it will ask you things to fill in.

Offline Minion

  • Semi-Newbie
  • *
  • Posts: 37
  • Gender: Male
  • Screen Paper Skin
    • Some of my photos
Re: Having problems with the package manager?
« Reply #8 on: March 03, 2005, 10:58:48 AM »
Hey Unknown,

Just installed a new board on a godaddy.com server.
Everything went fine except now when i try installing mods I get through the package manager I get this error:

Code: [Select]
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, support@supportwebsite.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

When I check my SMF log I see this

Code: [Select]
2: opendir(/home/content/m/i/n/minion/html/board/Packages/temp/Themes/default): failed to open dir: Too many open files
File: /home/content/m/i/n/minion/html/board/Sources/Subs-Package.php
Line: 895

Any idea what is wrong?  Thanks in advance.

Offline Trekkie101

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 8,154
  • Gender: Male
  • Ad Astra!
    • https://www.facebook.com/DLRPRoundup on Facebook
    • @dlrproundup on Twitter
    • DLRP Roundup
Re: Having problems with the package manager?
« Reply #9 on: March 03, 2005, 11:28:51 AM »
Looks like too many files arent allowed on your host, they should close once used. Maybe a big loop is calling something or maybe it doesnt want more than say 1/2/3/4/5 files open at once.

Offline Minion

  • Semi-Newbie
  • *
  • Posts: 37
  • Gender: Male
  • Screen Paper Skin
    • Some of my photos
Re: Having problems with the package manager?
« Reply #10 on: March 03, 2005, 01:14:51 PM »
I checked with them, they said there were no restrictions on thier end.
They said it may be ftp logins.  I am allowed 3.  But I don't see how that could be it.

Anyways if anyone else has an idea i am open to it.

Thanks for you help.

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
Re: Having problems with the package manager?
« Reply #11 on: March 09, 2005, 04:35:31 AM »
That's a filesystem error.  There's a hard limit on concurrently open files in the system configuration.  This means they've overloaded the server.

-[Unknown]

Offline countess_d

  • Newbie
  • *
  • Posts: 6
Re: Having problems with the package manager?
« Reply #12 on: March 11, 2005, 01:55:08 PM »
Ah, this is driving me insane... I upgraded to 1.0.2 recently. Today, to be more precise, and found this little issue with the Package Manager. Well, I downloaded the fix, uploaded it to my forum, went to it, filled everything (and I'm 100% sure I had all the data right); yet it keeps doing... nothing! :'(

I get an error message using the fix_ownership.php:

Quote
An error occured while trying to connect. The error was:

And that's it! It's a blank error... it doesn't tell me what the error was, it just... doesn't... work. :-X
Help?

I can live without it for now, I mean, it's not urgent or anything, but I'd really like for it to work.
Thank you!

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
Re: Having problems with the package manager?
« Reply #13 on: March 11, 2005, 04:06:18 PM »
Strange... no error at all?

Does it take a long time to load?  Are you using "localhost" for the ftp server (if not, please do try)?

No error could mean difficulties in connecting to the server at all, but that's still a problem as an error should be shown.

-[Unknown]

Offline countess_d

  • Newbie
  • *
  • Posts: 6
Re: Having problems with the package manager?
« Reply #14 on: March 11, 2005, 04:18:49 PM »
Nope, I'm afraid there's no error at all. Just blank right after that "Error" bit...  ::) and yes, I'm using "localhost" for the ftp server. It was the default, and it allways works for everything else, so I saw no need to change that.

I'm not so sure what you mean with difficulties connecting to the server, because well, I connected through an FTP program (obviously, else how would I have uploaded the fix...  :-[ ) and to the database aswell without issues ???

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
Re: Having problems with the package manager?
« Reply #15 on: March 13, 2005, 07:07:48 PM »
Interesting.  Are you sure you're using the right port and everything?

If it shows no error, it must be getting that back from the server or something... which doesn't make any sense.  Does it take a long time to show the error?

-[Unknown]

Offline countess_d

  • Newbie
  • *
  • Posts: 6
Re: Having problems with the package manager?
« Reply #16 on: March 13, 2005, 07:12:34 PM »
I'm quite sure I'm using the right port. I'm sure all of the info is correct. At least I've never had problems when using that same info before.

To answer your second question, no, it loads fairly quickly. Average for any other page.

Offline gizzleweb

  • Newbie
  • *
  • Posts: 5
Re: Having problems with the package manager?
« Reply #17 on: March 17, 2005, 02:54:04 PM »
 I started my board and tried to install the shop mod the easy way, now all i get is

nternal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@gizzlewebsolutions.info and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


Can someone tell me what the possible problems and solutions are? It appears that the files are uploading and such.

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
Re: Having problems with the package manager?
« Reply #18 on: March 19, 2005, 01:11:33 AM »
I'm quite sure I'm using the right port. I'm sure all of the info is correct. At least I've never had problems when using that same info before.

To answer your second question, no, it loads fairly quickly. Average for any other page.

Interesting.  That means it IS connecting, and it's getting through - but somehow it isn't getting any error message.

I've attached a debug version of said script.  It should tell you everything that's happening.  Please tell me what it outputs, at the top of the screen.

Gizzleweb, didn't you post that already?  A few times?  Did you ever try, as per my response to one of your spamilicious posts, chmodding files to 755?

-[Unknown]

Offline Dannii

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,211
  • Mind the volcano!
    • My homepage
Re: Having problems with the package manager?
« Reply #19 on: March 19, 2005, 01:25:57 AM »
This could fix my problems. Do we delete the file once we've run it? and do we just put it in the root forum directory? or in sources or something
"Never imagine yourself not to be otherwise than what it might appear to others that what you were or might have been was not otherwise than what you had been would have appeared to them to be otherwise."