The assault of the Error 500's

If you are having a problem using Dragnet, post a message here.

Moderator: SourceGear

Locked
kbonnin
Posts: 30
Joined: Sat Jan 15, 2005 1:21 pm
Location: Portland, OR
Contact:

The assault of the Error 500's

Post by kbonnin » Mon Apr 18, 2005 8:56 pm

It seems that if I'm inactive in dragnet for more than about 10 minutes, I get the ever-popular:

Code: Select all

Error 500: The Server is unable to process your request, click the login button to go back to the login page
Why is this? Some sort of security timeout? I am a pretty heavy user of dragnet, and I have to sometimes do this 15-25 times a day.

mskrobul
Posts: 490
Joined: Wed Jan 14, 2004 10:22 am
Location: SourceGear
Contact:

Post by mskrobul » Tue Apr 19, 2005 7:59 am

What version of Dragnet are you using?

Does the error usually happen when you are performing a particular action on a particular page or does it occur on random pages? If it is random, it is *probably* caused by a timeout. What does the Dragnet log file say when this occurs (%windir%\temp\sgdragnet\dragnet.log)?

What are your session state and authentication mode timeout values set to in Dragnet's web.config file.? What is your connection timeout value set to in IIS?
Mary Jo Skrobul
SourceGear

kbonnin
Posts: 30
Joined: Sat Jan 15, 2005 1:21 pm
Location: Portland, OR
Contact:

Post by kbonnin » Wed Apr 20, 2005 10:49 am

We are on dragnet 1.0.2. The error can occur on any page after about 10-15 minutes of idle time. It never happens during any operation, just when I return to the page and try to do something such as add, query, or list open items.

My log file lists this:

Code: Select all

2005-04-18 12:05:56.578 Starting SourceGear Dragnet by SourceGear, LLC - Version 1.0.2.1197   Copyright © 2003-2005 SourceGear, LLC  All rights reserved.
2005-04-18 12:05:56.593 Configured Options: :    LogLevel - Quiet  LogReverseDNSLookup - True
2005-04-18 12:06:03.140 192.168.1.1 (192.168.1.1)- : Helpers::ListProjects Session Timed Out 
2005-04-18 12:06:03.187 192.168.1.1 (192.168.1.1)- : Helpers::ListMilestones Session Timed Out 
2005-04-18 12:06:08.515 192.168.1.1 (192.168.1.1)- : Server error 500 Object reference not set to an instance of an object. 
Over and over. From web.config:

Code: Select all

    <authentication mode="Forms"> 
        <forms name=".SGM_AUTH" 
            loginUrl="login.aspx" 
            protection="All" 
            timeout="120" 
            path="/" 
            slidingExpiration="true"/>
    </authentication>
These are the default values. The timeout is in minutes so 120 seems plenty. I'll change this value to 720 for the heck of it. The session timeout is already set to 720.

Our IIS connection timeout is the default of 1,800 seconds=30 minutes.

BTW, I just returned to a dragnet item I created about 10 minutes ago, clicked "My Open Items" and got the error again. So it's not these timeout values in this file!

mskrobul
Posts: 490
Joined: Wed Jan 14, 2004 10:22 am
Location: SourceGear
Contact:

Post by mskrobul » Wed Apr 20, 2005 11:38 am

It does look like the session is timing out for some reason.

What version of IIS are you using?

If you are using IIS 6.0, go to the App Pool that Dragnet is installed on and choose Properties-> Recycling and make sure everything on that tab is unchecked. Also, go to Properties-> Performance and make sure the "shutdown worker processes after being idle..." is unchecked.

For IIS 6.0 or IIS 5.0, go to the Dragnet virtual directory->Properties->Virtual Directory tab-> Configuration-> Options (or App Options in 5.0) and make sure that enable session state is checked. If the timeout value small, change it to something larger.
Mary Jo Skrobul
SourceGear

kbonnin
Posts: 30
Joined: Sat Jan 15, 2005 1:21 pm
Location: Portland, OR
Contact:

Post by kbonnin » Mon Apr 25, 2005 10:58 am

Hello, I have an update for you.

I'm running IIS 6.0. The setting that made the difference was changing connection pools "shutdown worker processes after being idle..." setting, unchecking it. Now I can stay in Dragnet all day long and not have to keep logging in.

Thanks for your help.

Ken

gmagana
Posts: 145
Joined: Wed Feb 18, 2004 10:51 am
Location: Santa Ana, CA, USA

Post by gmagana » Tue Sep 20, 2005 2:07 pm

Can anyone tell me how to access this setting? I am having the same problem and am getting tired of logging in continuously to Dragnet (Specially putting up the the annoying pause that tells me Dragnet is dealing with exceptions internally)... My session state timeout is set to 120 minutes, but I have to re-log in way more often than that. I have IIS 6.

UPDATE: I hate answering my own question, but it might help someone else searching through the forums. In the IIS 6 Admin: Application Pools -> Properties -> Performance -> Shutdown worker processes after being idle for (time in minutes)
gabriel magana-gonzalez

oronaj
Posts: 1
Joined: Tue Mar 14, 2006 12:47 pm

Still Getting Error 500

Post by oronaj » Tue Mar 14, 2006 12:50 pm

I just upgraded to 1.0.5 and continue to get the error 500 problem. I log in and click around on various links and will get a timeout and have to log back in. I'm not even idle at all and still get the timeout.

mskrobul
Posts: 490
Joined: Wed Jan 14, 2004 10:22 am
Location: SourceGear
Contact:

Post by mskrobul » Tue Mar 14, 2006 3:24 pm

Do you get the errors only on specific pages?

Are there any errors logged to the Dragnet log file (%windir%\temp\sgdragnet\dragnet.log on the Dragnet server machine)?

Do you have any milestones that are inactive with a status of completed? If so, please see the following thread:

http://support.sourcegear.com/viewtopic.php?t=4431
Mary Jo Skrobul
SourceGear

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Post by lbauer » Tue Mar 14, 2006 3:26 pm

Is Dragnet on a Windows 2003 Server? Depending on the configuration, II6, will recycle the worker process after a certain period of time, rather than after a period of inactivity.

Check this setting in IIS 6:
Application Pools -> Properties -> Performance -> Shutdown worker processes after being idle for (time in minutes)
What is the time set?
Linda Bauer
SourceGear
Technical Support Manager

Ocean10000
Posts: 33
Joined: Wed Dec 14, 2005 4:25 pm
Contact:

Server error 500 Object reference not set to an instance of

Post by Ocean10000 » Fri Mar 24, 2006 10:55 am

I have just setup a few new projects in Dragnet to start tracking task/bug reports in. But when I click on the summary page example "Dragnet/summaries.aspx?pid=104" I get the [Error 500: The Server is unable to process your request, click the login button to go back to the login page] this happens repeatedly even though I am logged in. The Projects are brand new with no items in them currently. I am in the process of putting some work items in there. What can I do to solve this problem or at least help debug the issue so I can continue working.


2006-03-24 08:38:03.061 XXXXXXXX-GX620 (XX.XX.XX.XXX)-obrady : Server error 500 Object reference not set to an instance of an object.
2006-03-24 08:38:11.295 XXXXXXXX-GX620 (XX.XX.XX.XXX)-obrady : Server error 500 Object reference not set to an instance of an object.
2006-03-24 08:38:45.514 XXXXXXXX-GX620 (XX.XX.XX.XXX)-obrady : Server error 500 Object reference not set to an instance of an object.
2006-03-24 08:38:51.670 XXXXXXXX-GX620 (XX.XX.XX.XXX)-obrady : Server error 500 Object reference not set to an instance of an object.
2006-03-24 08:38:56.858 XXXXXXXX-GX620 (XX.XX.XX.XXX)-obrady : Server error 500 Object reference not set to an instance of an object.
2006-03-24 08:39:50.264 XXXXXXXX-GX620 (XX.XX.XX.XXX)-obrady : Server error 500 Object reference not set to an instance of an object.

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Post by lbauer » Fri Mar 24, 2006 11:57 am

This could be a timeout. Did you review the suggestions posted by other users this thread?

Specifically this one:

What version of IIS are you using?

If you are using IIS 6.0, go to the App Pool that Dragnet is installed on and choose Properties-> Recycling and make sure everything on that tab is unchecked. Also, go to Properties-> Performance and make sure the "shutdown worker processes after being idle..." is unchecked.

For IIS 6.0 or IIS 5.0, go to the Dragnet virtual directory->Properties->Virtual Directory tab-> Configuration-> Options (or App Options in 5.0) and make sure that enable session state is checked. If the timeout value small, change it to something larger.
Linda Bauer
SourceGear
Technical Support Manager

Ocean10000
Posts: 33
Joined: Wed Dec 14, 2005 4:25 pm
Contact:

Post subject: Server error 500 Object reference not set to a

Post by Ocean10000 » Fri Mar 24, 2006 12:52 pm

I currently have [Recyle worker Process(in Minutes) set to 1740] which I do not think is a bad idea. So it recycles after 29 Hours. But just for testing I am going to uncheck that & applied it. The other items you pointed to were already unchecked by me earlier. I am still seeing the same results, so I do not think it is a recycling of the process that is causing the issue.

mskrobul
Posts: 490
Joined: Wed Jan 14, 2004 10:22 am
Location: SourceGear
Contact:

Post by mskrobul » Fri Mar 24, 2006 3:31 pm

What version of Dragnet are you using?

Does this happen for all projects or just the new ones you added (or is this a new installation)? If it doesn't happen for all projects, is there anything different about the ones you added?

Have you changed any of the default database values (on the database options page)?

Do you have any inactive milestones? If so, do a query for items in the inactive milestones with a status of completed. If any results are returned, change the status of those items from completed to something else (other than completed or open).

If that doesn't work, you may need to email us a backup of your dragnet database so we can debug it here. You can email me directly using the email button at the bottom of the message.
Mary Jo Skrobul
SourceGear

Ocean10000
Posts: 33
Joined: Wed Dec 14, 2005 4:25 pm
Contact:

Post by Ocean10000 » Fri Mar 24, 2006 4:34 pm

From the About Page.
SourceGear Dragnet
Version 1.0.5.1245

Yes this is a new install as of this Last Monday. I am currently Demoing it to see if it will fill the needs for the company I currently work for.

The steps I take to repeat this error for my install are the following.
1. I log into [http://srv03/Dragnet/login.aspx]
2. on [http://srv03/Dragnet/default.aspx] I select one Project [Client Website]
3. on [http://srv03/Dragnet/summaries.aspx?pid ... t-a-glance] I
select the DropdownList to change projects. Which causes a postback
4. Dreaded 500 Error happens. This Happens no mater from which project I am starting from.

I have no Milestones set or any categories, since I was in the process of demoing it to see if it will do what I need for this company. I have tried this from Firefox 1.5 and IE 6.0 SP2 with the same results.

I did pay for a version for my personal needs, at home which is not related to this.

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Post by lbauer » Mon Mar 27, 2006 4:07 pm

Ocean1000 contacted us via email and we were able to resolve the problem.
Linda Bauer
SourceGear
Technical Support Manager

Locked