Previous Thread
Next Thread
Print Thread
Hop To
#256042 11/06/2014 3:33 AM
Joined: Jun 2006
Posts: 693
Addict
Addict
Joined: Jun 2006
Posts: 693
I have an odd problem which I'm guessing might be related to file permissions.

I own multiple UBB licenses. I recently had to move all my websites over to a brand new hosting facility with Windows Server 2012. I have two virtual servers. One server is working perfectly fine. UBB on there runs quick and easy.

The main BellaOnline forum is on a separate server here -

http://forums.bellaonline.com/

I have the MySQL slow query log turns on and nothing meaningful is showing up. But when I try to post it goes for the full 2 minutes I allow it and then times out. It can't be MySQL because it would show up in the slow query log. I have to guess it's file permissions. And indeed when I run the permission checker I get a variety of errors. But I checked and IUSR does have the rights it needs.

Is it not IUSR? That's what the documentation seems to say?

Lisa


Lisa Shea, owner, BellaOnline.com
BellaOnline Website
BellaOnline Forums - UBB since Apr 2002 - 58,000 members / 850,000 posts
Joined: Jun 2006
Posts: 693
Addict
Addict
Joined: Jun 2006
Posts: 693
Hmmm actually I did the permission check on the other server and it's showing failures in the same places. Could it be the permission check routine doesn't handle Windows Server 2012 well? Is it looking for a different username or something?


Lisa Shea, owner, BellaOnline.com
BellaOnline Website
BellaOnline Forums - UBB since Apr 2002 - 58,000 members / 850,000 posts
Joined: Jun 2006
Posts: 693
Addict
Addict
Joined: Jun 2006
Posts: 693
The failure is on this line -

function ubb_error_handler( $code, $error, $file, $line, $context = array() ) {

but I don't think that's actually the error of course.

The systems are writing the session files. But they aren't making any changes to the RSS files - I imagine that's where the error is.


Lisa Shea, owner, BellaOnline.com
BellaOnline Website
BellaOnline Forums - UBB since Apr 2002 - 58,000 members / 850,000 posts
Joined: Jun 2006
Posts: 693
Addict
Addict
Joined: Jun 2006
Posts: 693
While we're at it, everything in templates/compile is dated from 2012. And there are over 12,000 files in there. Could that be right? Or is that another permissions issue?

Last edited by BellaOnline; 11/06/2014 5:41 AM.

Lisa Shea, owner, BellaOnline.com
BellaOnline Website
BellaOnline Forums - UBB since Apr 2002 - 58,000 members / 850,000 posts
Joined: Jun 2006
Posts: 693
Addict
Addict
Joined: Jun 2006
Posts: 693
Just to expand, after two minutes I get this:

PHP Fatal error: Maximum execution time of 120 seconds exceeded in C:\aWeb\bellaforums\libs\ubbthreads.inc.php on line 888

but there's nothing showing up in my UBB error log nor in a PHP error log. Which seems odd to me. And there's no entry in the MySQL slow query log for this. Other things do occasionally write to the slow query log so it's working.

The post does get made. The sidebar does get updated. But the RSS feed doesn't get updated. I'm trying to figure out how to step through the code to figure out where it's jamming. It's been a long while since I've had to be in the internals of the code like this.


Lisa Shea, owner, BellaOnline.com
BellaOnline Website
BellaOnline Forums - UBB since Apr 2002 - 58,000 members / 850,000 posts
Joined: Jun 2006
Posts: 693
Addict
Addict
Joined: Jun 2006
Posts: 693
ARRRRRRRRGGGGGGGGGHHHHHHHHHHHHH

The SMTP entry had somehow gotten set to max connections of zero. And for some reason that SMTP service being unavailable caused the forums to continually hang!!

That code needs to be fixed smile.


Lisa Shea, owner, BellaOnline.com
BellaOnline Website
BellaOnline Forums - UBB since Apr 2002 - 58,000 members / 850,000 posts
Joined: Jun 2006
Posts: 693
Addict
Addict
Joined: Jun 2006
Posts: 693
Note that while my forums are running again, I still need to know what to correctly set the file permissions to so my admin area shows everything is correct. Is it the IUSR account or something else?

I'm on Windows Server 2012.


Lisa Shea, owner, BellaOnline.com
BellaOnline Website
BellaOnline Forums - UBB since Apr 2002 - 58,000 members / 850,000 posts
Joined: Dec 2003
Posts: 6,560
Likes: 78
Joined: Dec 2003
Posts: 6,560
Likes: 78
I wish we had another active user like you that uses a Windows server.
I went to Linux years ago. So I am no help.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Jun 2006
Posts: 693
Addict
Addict
Joined: Jun 2006
Posts: 693
I suppose if I go digging through the code on that test page it might tell me what it's using to test. Maybe it's coded with an old ISUR_XXXXXX format instead of the new IUSR format.

Lisa


Lisa Shea, owner, BellaOnline.com
BellaOnline Website
BellaOnline Forums - UBB since Apr 2002 - 58,000 members / 850,000 posts
Joined: Dec 2003
Posts: 6,560
Likes: 78
Joined: Dec 2003
Posts: 6,560
Likes: 78
I got my message today that you migrated to a new server.
Still Windows?


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Jun 2006
Posts: 693
Addict
Addict
Joined: Jun 2006
Posts: 693
Yes, this is now Windows 2012.


Lisa Shea, owner, BellaOnline.com
BellaOnline Website
BellaOnline Forums - UBB since Apr 2002 - 58,000 members / 850,000 posts
Joined: Jun 2006
Posts: 693
Addict
Addict
Joined: Jun 2006
Posts: 693
An update - the username used in Windows Server 2012 is "IUSR". So I'm just going line by line in the permissions check PHP and making sure each directory mentioned has permissions for ISUR as listed in the PHP. It'd be nice if this was documented a bit better - instead of just saying OK or FAIL that it listed the permissions looked for.


Lisa Shea, owner, BellaOnline.com
BellaOnline Website
BellaOnline Forums - UBB since Apr 2002 - 58,000 members / 850,000 posts
Joined: Jun 2006
Posts: 16,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
Well, I think the check is just if the webserver responds it should be able to read/write to the appropriate directory.


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
spam issues
by ECNet - 03/19/2024 11:45 PM
Looking for a forum
by azr - 03/15/2024 11:26 PM
Editing Links in Post
by Outdoorking - 03/15/2024 9:31 AM
Question on barkrowler and the like
by Mors - 02/29/2024 6:51 PM
Member Permissions Help
by domspeak - 02/27/2024 6:31 PM
Who's Online Now
1 members (Havenofsobriety), 458 guests, and 91 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)