Showing posts with label fail. Show all posts
Showing posts with label fail. Show all posts

Tuesday, March 20, 2012

Cannot open database requested in login fail for 'Computer\NetSDK'

Hello;
I tried almost everything I can, give permission to ASPNET to the folder
application, start and restart ASPNET, SQL$Server, checked my sqlstring
connections in the global.axp.vb and still cannot connect to the database.
I am using MSDE (Free engine from microsoft), Can someone please help me?
thank you.
JoeHi
Give Computer\NetSDK permission to login to SQL Server, Grant permissions in
the DB for tables and other objects in the DB.
Regards
--
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
IM: mike@.epprecht.net
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
"jaz2003" <jaz2003@.discussions.microsoft.com> wrote in message
news:98FC9CC8-DBB6-46F5-BAB4-BEA89D40600A@.microsoft.com...
> Hello;
> I tried almost everything I can, give permission to ASPNET to the folder
> application, start and restart ASPNET, SQL$Server, checked my sqlstring
> connections in the global.axp.vb and still cannot connect to the database.
> I am using MSDE (Free engine from microsoft), Can someone please help me?
> thank you.
> Joe

Cannot open database requested in login fail for 'Computer\NetSDK'

Hello;
I tried almost everything I can, give permission to ASPNET to the folder
application, start and restart ASPNET, SQL$Server, checked my sqlstring
connections in the global.axp.vb and still cannot connect to the database.
I am using MSDE (Free engine from microsoft), Can someone please help me?
thank you.
Joe
Hi
Give Computer\NetSDK permission to login to SQL Server, Grant permissions in
the DB for tables and other objects in the DB.
Regards
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
IM: mike@.epprecht.net
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
"jaz2003" <jaz2003@.discussions.microsoft.com> wrote in message
news:98FC9CC8-DBB6-46F5-BAB4-BEA89D40600A@.microsoft.com...
> Hello;
> I tried almost everything I can, give permission to ASPNET to the folder
> application, start and restart ASPNET, SQL$Server, checked my sqlstring
> connections in the global.axp.vb and still cannot connect to the database.
> I am using MSDE (Free engine from microsoft), Can someone please help me?
> thank you.
> Joe

Monday, March 19, 2012

Cannot open database "SharePointSharedServices" requested by the l

Environment: Windows Server 2003 SP1, SQL Server 2005 (no SP)
Up until a few days ago a Maintenance Plan and a dependent job have started
to fail with the following error.
[298] SQLServer Error: 18456, Login failed for user 'XXXXX\yyyyyyyy'.
[SQLSTATE 28000]
[298] SQLServer Error: 4060, Cannot open database "SharePointSharedServi
ces"
requested by the login. The login failed. [SQLSTATE 42000]
The Maintenance Plan backs up the user & system databases, and transaction
files.
The "SharePointSharedServices" database does not exist. Checked
sys.databases to verify.
Other Sharepoint databases exist on the server.
Bounced SQL Server Agent but get the same error.
The Login account is valid. Reset password on server but get the same error.
Modified the MP to backup the non-SharePoint databases but get the same erro
r.
Any suggestions?I would suggest dropping and recreating the maintenance plan.
"mg" wrote:

> Environment: Windows Server 2003 SP1, SQL Server 2005 (no SP)
> Up until a few days ago a Maintenance Plan and a dependent job have starte
d
> to fail with the following error.
> [298] SQLServer Error: 18456, Login failed for user 'XXXXX\yyyyyyyy'.
> [SQLSTATE 28000]
> [298] SQLServer Error: 4060, Cannot open database "SharePointSharedSer
vices"
> requested by the login. The login failed. [SQLSTATE 42000]
> The Maintenance Plan backs up the user & system databases, and transaction
> files.
> The "SharePointSharedServices" database does not exist. Checked
> sys.databases to verify.
> Other Sharepoint databases exist on the server.
> Bounced SQL Server Agent but get the same error.
> The Login account is valid. Reset password on server but get the same erro
r.
> Modified the MP to backup the non-SharePoint databases but get the same er
ror.
> Any suggestions?
>

Cannot open database "SharePointSharedServices" requested by the l

Environment: Windows Server 2003 SP1, SQL Server 2005 (no SP)
Up until a few days ago a Maintenance Plan and a dependent job have started
to fail with the following error.
[298] SQLServer Error: 18456, Login failed for user 'XXXXX\yyyyyyyy'.
[SQLSTATE 28000]
[298] SQLServer Error: 4060, Cannot open database "SharePointSharedServices"
requested by the login. The login failed. [SQLSTATE 42000]
The Maintenance Plan backs up the user & system databases, and transaction
files.
The "SharePointSharedServices" database does not exist. Checked
sys.databases to verify.
Other Sharepoint databases exist on the server.
Bounced SQL Server Agent but get the same error.
The Login account is valid. Reset password on server but get the same error.
Modified the MP to backup the non-SharePoint databases but get the same error.
Any suggestions?
I would suggest dropping and recreating the maintenance plan.
"mg" wrote:

> Environment: Windows Server 2003 SP1, SQL Server 2005 (no SP)
> Up until a few days ago a Maintenance Plan and a dependent job have started
> to fail with the following error.
> [298] SQLServer Error: 18456, Login failed for user 'XXXXX\yyyyyyyy'.
> [SQLSTATE 28000]
> [298] SQLServer Error: 4060, Cannot open database "SharePointSharedServices"
> requested by the login. The login failed. [SQLSTATE 42000]
> The Maintenance Plan backs up the user & system databases, and transaction
> files.
> The "SharePointSharedServices" database does not exist. Checked
> sys.databases to verify.
> Other Sharepoint databases exist on the server.
> Bounced SQL Server Agent but get the same error.
> The Login account is valid. Reset password on server but get the same error.
> Modified the MP to backup the non-SharePoint databases but get the same error.
> Any suggestions?
>

Cannot open database "SharePointSharedServices" requested by the l

Environment: Windows Server 2003 SP1, SQL Server 2005 (no SP)
Up until a few days ago a Maintenance Plan and a dependent job have started
to fail with the following error.
[298] SQLServer Error: 18456, Login failed for user 'XXXXX\yyyyyyyy'.
[SQLSTATE 28000]
[298] SQLServer Error: 4060, Cannot open database "SharePointSharedServices"
requested by the login. The login failed. [SQLSTATE 42000]
The Maintenance Plan backs up the user & system databases, and transaction
files.
The "SharePointSharedServices" database does not exist. Checked
sys.databases to verify.
Other Sharepoint databases exist on the server.
Bounced SQL Server Agent but get the same error.
The Login account is valid. Reset password on server but get the same error.
Modified the MP to backup the non-SharePoint databases but get the same error.
Any suggestions?I would suggest dropping and recreating the maintenance plan.
"mg" wrote:
> Environment: Windows Server 2003 SP1, SQL Server 2005 (no SP)
> Up until a few days ago a Maintenance Plan and a dependent job have started
> to fail with the following error.
> [298] SQLServer Error: 18456, Login failed for user 'XXXXX\yyyyyyyy'.
> [SQLSTATE 28000]
> [298] SQLServer Error: 4060, Cannot open database "SharePointSharedServices"
> requested by the login. The login failed. [SQLSTATE 42000]
> The Maintenance Plan backs up the user & system databases, and transaction
> files.
> The "SharePointSharedServices" database does not exist. Checked
> sys.databases to verify.
> Other Sharepoint databases exist on the server.
> Bounced SQL Server Agent but get the same error.
> The Login account is valid. Reset password on server but get the same error.
> Modified the MP to backup the non-SharePoint databases but get the same error.
> Any suggestions?
>

Sunday, February 19, 2012

Cannot insert duplicate key in object 'dbo.RunningJobs'

I'm using SSRS 2005 on a Server 2003 machine.

Some of my reports run fine but others take a long time to run and sometimes fail with an http error 503.

After a report errror happens I find entries in the event log that says: cannot open a connection to the report server

When I look at the log files for Reporting services I see an error caused by a primary key violation on the Running Jobs Table:

Violation of PRIMARY KEY constraint 'PK_RunningJobs'. Cannot insert duplicate key in object 'dbo.RunningJobs'

Does anyone know why do I get such errors?

Bellow is the error message in the logs:

w3wp!library!6!21/08/2006-09:30:22:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerDatabaseUnavailableException: The report server cannot open a connection to the report server database. A connection to the database is required for all requests and processing., ;
Info: Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerDatabaseUnavailableException: The report server cannot open a connection to the report server database. A connection to the database is required for all requests and processing. > System.Data.SqlClient.SqlException: Violation of PRIMARY KEY constraint 'PK_RunningJobs'. Cannot insert duplicate key in object 'dbo.RunningJobs'.
The statement has been terminated.
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at Microsoft.ReportingServices.Library.RunningJobsDb.AddRunningJobs(Hashtable runningJobs)

This error message is not really a critical one. For now as a workaround try to restart the SQL Server Reporting Services Web Service in IIS (e.g. by using iisreset).

When the RS Web service restarts and there is no immediate load on the service during the actual service startup, it will work just fine after the restart.

-- Robert

|||

The error is critical for my system because reports are crashing and running very slow.

Is this a known bug? Why would RServices generate primary key conflicts on its own tables? I don't have any subscriptions at all on the server. It just runs 2 or 3 on-demand reports. Anyone has had this problem before? It would be good to at least have a better solution than the workaround of restarting the service.

|||

Yes - I get this problem intermittently. It seems to happen when we are processing some of the large, resource intense reports (reports with 20+ subreports and complex SQL). This problem occurs in RS2005 - never experienced it in RS2003.

It does not cleanly correlate to subscriptions running either, as far as I can tell.

I have found no workaround and occasionally our reports do fail.

Any insight would be appreciated, please?

Matt

|||

There is a bug right now that produces PK violation error when your app pool is started under load. You can verify this by looking at the log file, and notice that there are multiples of the same entry. The work around is to not start under load. Notice sometimes IIS decides to recycle worker process, so you may get this error in the middle of your tests.

We are currently considering putting the fix in SP2. It is very likely to go through.

|||The problem I have is that I've got thousands of reports that hit our servers weekly and when this started occurring, I have to drop this server out of our externally load balanced cluster so that no clients can access it, then I have to recycle the app pool and then all of my customers reports fail that were in process. Then I put it back in the cluster so that it can be accessed again. Further, it doesn't fix the problem. Just today I did this procedure and it wenr right along dropping reports.

Is there a hotfix available for this outside of SP2? We've got some pretty serious impact with this bug.|||Is there any solution to this issue? We too are experiencing this. A hotfix?|||

Hi Mattyb83,

The issue regarding this:

Violation of PRIMARY KEY constraint 'PK_RunningJobs'. Cannot insert duplicate key in object 'dbo.RunningJobs'.

is fixed in SQL 2005 Reporting Services SP2.

Before SP2 was shipped the workaround used by many people was iisreset.

Mihaela

|||

Hi Mihaela,

I'm facing such issue as well on my SQL 2005 server. As you have mentioned, it is fixed in SQL 2005 SP2. Is it confirmed? I did browse through the fixes but did not find any fix related to this issue. Appreciate if you could help verify.

Thanks

Barry

Cannot insert duplicate key in object 'dbo.RunningJobs'

I'm using SSRS 2005 on a Server 2003 machine.

Some of my reports run fine but others take a long time to run and sometimes fail with an http error 503.

After a report errror happens I find entries in the event log that says: cannot open a connection to the report server

When I look at the log files for Reporting services I see an error caused by a primary key violation on the Running Jobs Table:

Violation of PRIMARY KEY constraint 'PK_RunningJobs'. Cannot insert duplicate key in object 'dbo.RunningJobs'

Does anyone know why do I get such errors?

Bellow is the error message in the logs:

w3wp!library!6!21/08/2006-09:30:22:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerDatabaseUnavailableException: The report server cannot open a connection to the report server database. A connection to the database is required for all requests and processing., ;
Info: Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerDatabaseUnavailableException: The report server cannot open a connection to the report server database. A connection to the database is required for all requests and processing. > System.Data.SqlClient.SqlException: Violation of PRIMARY KEY constraint 'PK_RunningJobs'. Cannot insert duplicate key in object 'dbo.RunningJobs'.
The statement has been terminated.
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at Microsoft.ReportingServices.Library.RunningJobsDb.AddRunningJobs(Hashtable runningJobs)

This error message is not really a critical one. For now as a workaround try to restart the SQL Server Reporting Services Web Service in IIS (e.g. by using iisreset).

When the RS Web service restarts and there is no immediate load on the service during the actual service startup, it will work just fine after the restart.

-- Robert

|||

The error is critical for my system because reports are crashing and running very slow.

Is this a known bug? Why would RServices generate primary key conflicts on its own tables? I don't have any subscriptions at all on the server. It just runs 2 or 3 on-demand reports. Anyone has had this problem before? It would be good to at least have a better solution than the workaround of restarting the service.

|||

Yes - I get this problem intermittently. It seems to happen when we are processing some of the large, resource intense reports (reports with 20+ subreports and complex SQL). This problem occurs in RS2005 - never experienced it in RS2003.

It does not cleanly correlate to subscriptions running either, as far as I can tell.

I have found no workaround and occasionally our reports do fail.

Any insight would be appreciated, please?

Matt

|||

There is a bug right now that produces PK violation error when your app pool is started under load. You can verify this by looking at the log file, and notice that there are multiples of the same entry. The work around is to not start under load. Notice sometimes IIS decides to recycle worker process, so you may get this error in the middle of your tests.

We are currently considering putting the fix in SP2. It is very likely to go through.

|||The problem I have is that I've got thousands of reports that hit our servers weekly and when this started occurring, I have to drop this server out of our externally load balanced cluster so that no clients can access it, then I have to recycle the app pool and then all of my customers reports fail that were in process. Then I put it back in the cluster so that it can be accessed again. Further, it doesn't fix the problem. Just today I did this procedure and it wenr right along dropping reports.

Is there a hotfix available for this outside of SP2? We've got some pretty serious impact with this bug.|||Is there any solution to this issue? We too are experiencing this. A hotfix?|||

Hi Mattyb83,

The issue regarding this:

Violation of PRIMARY KEY constraint 'PK_RunningJobs'. Cannot insert duplicate key in object 'dbo.RunningJobs'.

is fixed in SQL 2005 Reporting Services SP2.

Before SP2 was shipped the workaround used by many people was iisreset.

Mihaela

|||

Hi Mihaela,

I'm facing such issue as well on my SQL 2005 server. As you have mentioned, it is fixed in SQL 2005 SP2. Is it confirmed? I did browse through the fixes but did not find any fix related to this issue. Appreciate if you could help verify.

Thanks

Barry

Cannot insert duplicate key in object 'dbo.RunningJobs'

I'm using SSRS 2005 on a Server 2003 machine.

Some of my reports run fine but others take a long time to run and sometimes fail with an http error 503.

After a report errror happens I find entries in the event log that says: cannot open a connection to the report server

When I look at the log files for Reporting services I see an error caused by a primary key violation on the Running Jobs Table:

Violation of PRIMARY KEY constraint 'PK_RunningJobs'. Cannot insert duplicate key in object 'dbo.RunningJobs'

Does anyone know why do I get such errors?

Bellow is the error message in the logs:

w3wp!library!6!21/08/2006-09:30:22:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerDatabaseUnavailableException: The report server cannot open a connection to the report server database. A connection to the database is required for all requests and processing., ;
Info: Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerDatabaseUnavailableException: The report server cannot open a connection to the report server database. A connection to the database is required for all requests and processing. > System.Data.SqlClient.SqlException: Violation of PRIMARY KEY constraint 'PK_RunningJobs'. Cannot insert duplicate key in object 'dbo.RunningJobs'.
The statement has been terminated.
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at Microsoft.ReportingServices.Library.RunningJobsDb.AddRunningJobs(Hashtable runningJobs)

This error message is not really a critical one. For now as a workaround try to restart the SQL Server Reporting Services Web Service in IIS (e.g. by using iisreset).

When the RS Web service restarts and there is no immediate load on the service during the actual service startup, it will work just fine after the restart.

-- Robert

|||

The error is critical for my system because reports are crashing and running very slow.

Is this a known bug? Why would RServices generate primary key conflicts on its own tables? I don't have any subscriptions at all on the server. It just runs 2 or 3 on-demand reports. Anyone has had this problem before? It would be good to at least have a better solution than the workaround of restarting the service.

|||

Yes - I get this problem intermittently. It seems to happen when we are processing some of the large, resource intense reports (reports with 20+ subreports and complex SQL). This problem occurs in RS2005 - never experienced it in RS2003.

It does not cleanly correlate to subscriptions running either, as far as I can tell.

I have found no workaround and occasionally our reports do fail.

Any insight would be appreciated, please?

Matt

|||

There is a bug right now that produces PK violation error when your app pool is started under load. You can verify this by looking at the log file, and notice that there are multiples of the same entry. The work around is to not start under load. Notice sometimes IIS decides to recycle worker process, so you may get this error in the middle of your tests.

We are currently considering putting the fix in SP2. It is very likely to go through.

|||The problem I have is that I've got thousands of reports that hit our servers weekly and when this started occurring, I have to drop this server out of our externally load balanced cluster so that no clients can access it, then I have to recycle the app pool and then all of my customers reports fail that were in process. Then I put it back in the cluster so that it can be accessed again. Further, it doesn't fix the problem. Just today I did this procedure and it wenr right along dropping reports.

Is there a hotfix available for this outside of SP2? We've got some pretty serious impact with this bug.|||Is there any solution to this issue? We too are experiencing this. A hotfix?|||

Hi Mattyb83,

The issue regarding this:

Violation of PRIMARY KEY constraint 'PK_RunningJobs'. Cannot insert duplicate key in object 'dbo.RunningJobs'.

is fixed in SQL 2005 Reporting Services SP2.

Before SP2 was shipped the workaround used by many people was iisreset.

Mihaela

|||

Hi Mihaela,

I'm facing such issue as well on my SQL 2005 server. As you have mentioned, it is fixed in SQL 2005 SP2. Is it confirmed? I did browse through the fixes but did not find any fix related to this issue. Appreciate if you could help verify.

Thanks

Barry

Cannot insert duplicate key in object 'dbo.RunningJobs'

I'm using SSRS 2005 on a Server 2003 machine.

Some of my reports run fine but others take a long time to run and sometimes fail with an http error 503.

After a report errror happens I find entries in the event log that says: cannot open a connection to the report server

When I look at the log files for Reporting services I see an error caused by a primary key violation on the Running Jobs Table:

Violation of PRIMARY KEY constraint 'PK_RunningJobs'. Cannot insert duplicate key in object 'dbo.RunningJobs'

Does anyone know why do I get such errors?

Bellow is the error message in the logs:

w3wp!library!6!21/08/2006-09:30:22:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerDatabaseUnavailableException: The report server cannot open a connection to the report server database. A connection to the database is required for all requests and processing., ;
Info: Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerDatabaseUnavailableException: The report server cannot open a connection to the report server database. A connection to the database is required for all requests and processing. > System.Data.SqlClient.SqlException: Violation of PRIMARY KEY constraint 'PK_RunningJobs'. Cannot insert duplicate key in object 'dbo.RunningJobs'.
The statement has been terminated.
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at Microsoft.ReportingServices.Library.RunningJobsDb.AddRunningJobs(Hashtable runningJobs)

This error message is not really a critical one. For now as a workaround try to restart the SQL Server Reporting Services Web Service in IIS (e.g. by using iisreset).

When the RS Web service restarts and there is no immediate load on the service during the actual service startup, it will work just fine after the restart.

-- Robert

|||

The error is critical for my system because reports are crashing and running very slow.

Is this a known bug? Why would RServices generate primary key conflicts on its own tables? I don't have any subscriptions at all on the server. It just runs 2 or 3 on-demand reports. Anyone has had this problem before? It would be good to at least have a better solution than the workaround of restarting the service.

|||

Yes - I get this problem intermittently. It seems to happen when we are processing some of the large, resource intense reports (reports with 20+ subreports and complex SQL). This problem occurs in RS2005 - never experienced it in RS2003.

It does not cleanly correlate to subscriptions running either, as far as I can tell.

I have found no workaround and occasionally our reports do fail.

Any insight would be appreciated, please?

Matt

|||

There is a bug right now that produces PK violation error when your app pool is started under load. You can verify this by looking at the log file, and notice that there are multiples of the same entry. The work around is to not start under load. Notice sometimes IIS decides to recycle worker process, so you may get this error in the middle of your tests.

We are currently considering putting the fix in SP2. It is very likely to go through.

|||The problem I have is that I've got thousands of reports that hit our servers weekly and when this started occurring, I have to drop this server out of our externally load balanced cluster so that no clients can access it, then I have to recycle the app pool and then all of my customers reports fail that were in process. Then I put it back in the cluster so that it can be accessed again. Further, it doesn't fix the problem. Just today I did this procedure and it wenr right along dropping reports.

Is there a hotfix available for this outside of SP2? We've got some pretty serious impact with this bug.
|||Is there any solution to this issue? We too are experiencing this. A hotfix?|||

Hi Mattyb83,

The issue regarding this:

Violation of PRIMARY KEY constraint 'PK_RunningJobs'. Cannot insert duplicate key in object 'dbo.RunningJobs'.

is fixed in SQL 2005 Reporting Services SP2.

Before SP2 was shipped the workaround used by many people was iisreset.

Mihaela

|||

Hi Mihaela,

I'm facing such issue as well on my SQL 2005 server. As you have mentioned, it is fixed in SQL 2005 SP2. Is it confirmed? I did browse through the fixes but did not find any fix related to this issue. Appreciate if you could help verify.

Thanks

Barry

Thursday, February 16, 2012

Cannot get new disks to fail over when I move group - new drives

I have a SQL 2000 Ent server cluster with current drives in place and
working. We are adding two new drives from a new SAN enclosure. The server
sees the drives fine. I have added the drives into the depenecy list under
the SQL server listing under the "SQL group" in cluster administrator. It is
also listed in the resources group. When we fail it over it jumps right back
to the original node. We receive event id#1069 in the system event viewer.
Any input or suggestions would be greatly appreciated.
Thanks,
Jim K.
"Cinci Tech" <CinciTech@.discussions.microsoft.com> wrote in message
news:6C533F4C-3145-485C-98AC-8BE4240BF146@.microsoft.com...
>I have a SQL 2000 Ent server cluster with current drives in place and
> working. We are adding two new drives from a new SAN enclosure. The
> server
> sees the drives fine. I have added the drives into the depenecy list
> under
> the SQL server listing under the "SQL group" in cluster administrator. It
> is
> also listed in the resources group. When we fail it over it jumps right
> back
> to the original node. We receive event id#1069 in the system event
> viewer.
> Any input or suggestions would be greatly appreciated.
Are the LUN masks set up to see the controllers on all nodes?
Russ Kaufmann
MVP - Windows Server - Clustering
ClusterHelp.com, a Microsoft Certified Gold Partner
Web http://www.clusterhelp.com
Blog http://msmvps.com/clusterhelp
|||I am wondering if I have done something wrong... I have only built three
clusters so far. I looked back over some notes and saw something about when
I first added the disks, one node had to be shut down (the "node 2" owned the
disks and corrupted them) we had to pull them at the SAN level and re-present
them to the first node while the 2nd node was powered off. Then we powered
down the first node and rescanned the disk on the 2nd node. Once they were
seen on the 2nd server we brought up the 1st node and failed them over. Then
we added them into the dependencies list. Does this sound vaguely pertinent?
When you say "Lun masks" I am a bit confused by that word lun masks.
I think we are both aiming at the same thing. What are your thoughts?
"Russ Kaufmann [MVP]" wrote:

> "Cinci Tech" <CinciTech@.discussions.microsoft.com> wrote in message
> news:6C533F4C-3145-485C-98AC-8BE4240BF146@.microsoft.com...
> Are the LUN masks set up to see the controllers on all nodes?
>
> --
> Russ Kaufmann
> MVP - Windows Server - Clustering
> ClusterHelp.com, a Microsoft Certified Gold Partner
> Web http://www.clusterhelp.com
> Blog http://msmvps.com/clusterhelp
>
>
|||"Cinci Tech" <CinciTech@.discussions.microsoft.com> wrote in message
news:AB6464C1-0836-4B39-8FA8-954E50E1C60A@.microsoft.com...
>I am wondering if I have done something wrong... I have only built three
> clusters so far. I looked back over some notes and saw something about
> when
> I first added the disks, one node had to be shut down (the "node 2" owned
> the
> disks and corrupted them) we had to pull them at the SAN level and
> re-present
> them to the first node while the 2nd node was powered off.
You could have done that while Node2 was up.

> Then we powered
> down the first node and rescanned the disk on the 2nd node. Once they
> were
> seen on the 2nd server we brought up the 1st node and failed them over.
> Then
> we added them into the dependencies list. Does this sound vaguely
> pertinent?
Absolutely. So, it sounds to me like both nodes have been properly exposed
to the LUNs.
What are the actually errors that you are getting in Event Viewer and the
cluster logs?
Russ Kaufmann
MVP - Windows Server - Clustering
ClusterHelp.com, a Microsoft Certified Gold Partner
Web http://www.clusterhelp.com
Blog http://msmvps.com/clusterhelp
|||I am getting the following: 1069 and 1034 errors.
Event Type:Error
Event Source:ClusSvc
Event Category:Physical Disk Resource
Event ID:1034
Date:11/21/2006
Time:3:31:37 PM
User:N/A
Computer:COR-DB-02
Description:
The disk associated with cluster disk resource 'Disk G:' could not be found.
The expected signature of the disk was B812F4A6. If the disk was removed from
the server cluster, the resource should be deleted. If the disk was replaced,
the resource must be deleted and created again in order to bring the disk
online. If the disk has not been removed or replaced, it may be inaccessible
at this time because it is reserved by another server cluster node.
and...
Event Type:Error
Event Source:ClusSvc
Event Category:Failover Mgr
Event ID:1069
Date:11/21/2006
Time:3:31:37 PM
User:N/A
Computer:COR-DB-02
Description:
Cluster resource 'Disk F:' in Resource Group 'SQL Group' failed.
"Russ Kaufmann [MVP]" wrote:

> "Cinci Tech" <CinciTech@.discussions.microsoft.com> wrote in message
> news:AB6464C1-0836-4B39-8FA8-954E50E1C60A@.microsoft.com...
> You could have done that while Node2 was up.
>
> Absolutely. So, it sounds to me like both nodes have been properly exposed
> to the LUNs.
> What are the actually errors that you are getting in Event Viewer and the
> cluster logs?
>
> --
> Russ Kaufmann
> MVP - Windows Server - Clustering
> ClusterHelp.com, a Microsoft Certified Gold Partner
> Web http://www.clusterhelp.com
> Blog http://msmvps.com/clusterhelp
>
>
|||"Cinci Tech" <CinciTech@.discussions.microsoft.com> wrote in message
news:23E20EFF-9E8C-4047-AC4B-CFD40CA20A51@.microsoft.com...
>I am getting the following: 1069 and 1034 errors.
> Event Type: Error
> Event Source: ClusSvc
> Event Category: Physical Disk Resource
> Event ID: 1034
> Date: 11/21/2006
> Time: 3:31:37 PM
> User: N/A
> Computer: COR-DB-02
> Description:
> The disk associated with cluster disk resource 'Disk G:' could not be
> found.
> The expected signature of the disk was B812F4A6. If the disk was removed
> from
> the server cluster, the resource should be deleted. If the disk was
> replaced,
> the resource must be deleted and created again in order to bring the disk
> online. If the disk has not been removed or replaced, it may be
> inaccessible
> at this time because it is reserved by another server cluster node.
It sounds like the disk might have been formatted on both nodes. The best
way to handle it is to delete the disk, then re-add it from one node and
format it on that node.
Russ Kaufmann
MVP - Windows Server - Clustering
ClusterHelp.com, a Microsoft Certified Gold Partner
Web http://www.clusterhelp.com
Blog http://msmvps.com/clusterhelp
|||I was able to get it to work, I removed them from the "resource" group,
failed each node.. then started on the 1st node in the cluster, rescanned the
disks, removed the drive letter and readded the drive letter back to the
disk. Once I did that one each node. I then added the drive back into CL.
Admin. to a test group I was able to get to fail over in that test group. I
then moved them into the SQL server group and set dependencies. It worked.
I would to thank you for being so willing to help, the community groups have
a really big help to me. Clustering isn't something anyone sent me to
traning on, I watched someone do it, took notes then did it myself, talked to
a few poeple and learned what I could. If you know of any "official" docs
from MS on how to properly setup clustering and have links to them I would be
greatful to see something. Again, thanks for your help.
Jim
"Russ Kaufmann [MVP]" wrote:

> "Cinci Tech" <CinciTech@.discussions.microsoft.com> wrote in message
> news:23E20EFF-9E8C-4047-AC4B-CFD40CA20A51@.microsoft.com...
> It sounds like the disk might have been formatted on both nodes. The best
> way to handle it is to delete the disk, then re-add it from one node and
> format it on that node.
> --
> Russ Kaufmann
> MVP - Windows Server - Clustering
> ClusterHelp.com, a Microsoft Certified Gold Partner
> Web http://www.clusterhelp.com
> Blog http://msmvps.com/clusterhelp
>
>
|||Take Russ' course (www.clusterhelp.com). I did, and I had already set up a
couple of clusters (under duress) before doing so.
Tom
Thomas A. Moreau, BSc, PhD, MCSE, MCDBA, MCITP, MCTS
SQL Server MVP
Toronto, ON Canada
..
"Cinci Tech" <CinciTech@.discussions.microsoft.com> wrote in message
news:C4F35D3C-488A-47E1-844C-B999ED7D58EF@.microsoft.com...
I was able to get it to work, I removed them from the "resource" group,
failed each node.. then started on the 1st node in the cluster, rescanned
the
disks, removed the drive letter and readded the drive letter back to the
disk. Once I did that one each node. I then added the drive back into CL.
Admin. to a test group I was able to get to fail over in that test group. I
then moved them into the SQL server group and set dependencies. It worked.
I would to thank you for being so willing to help, the community groups have
a really big help to me. Clustering isn't something anyone sent me to
traning on, I watched someone do it, took notes then did it myself, talked
to
a few poeple and learned what I could. If you know of any "official" docs
from MS on how to properly setup clustering and have links to them I would
be
greatful to see something. Again, thanks for your help.
Jim
"Russ Kaufmann [MVP]" wrote:

> "Cinci Tech" <CinciTech@.discussions.microsoft.com> wrote in message
> news:23E20EFF-9E8C-4047-AC4B-CFD40CA20A51@.microsoft.com...
> It sounds like the disk might have been formatted on both nodes. The best
> way to handle it is to delete the disk, then re-add it from one node and
> format it on that node.
> --
> Russ Kaufmann
> MVP - Windows Server - Clustering
> ClusterHelp.com, a Microsoft Certified Gold Partner
> Web http://www.clusterhelp.com
> Blog http://msmvps.com/clusterhelp
>
>
|||"Cinci Tech" <CinciTech@.discussions.microsoft.com> wrote in message
news:C4F35D3C-488A-47E1-844C-B999ED7D58EF@.microsoft.com...
>I was able to get it to work, I removed them from the "resource" group,
> failed each node.. then started on the 1st node in the cluster, rescanned
> the
> disks, removed the drive letter and readded the drive letter back to the
> disk. Once I did that one each node. I then added the drive back into
> CL.
> Admin. to a test group I was able to get to fail over in that test group.
> I
> then moved them into the SQL server group and set dependencies. It
> worked.
Thank you for telling us all what you did to fix it. Since these newsgroups
are indexed by many companies, it will likely help somebody in the future.

> I would to thank you for being so willing to help, the community groups
> have
> a really big help to me.
Everyone here is a good person. While we may not all agree, we do love the
technology. <G>
Russ Kaufmann
MVP - Windows Server - Clustering
ClusterHelp.com, a Microsoft Certified Gold Partner
Web http://www.clusterhelp.com
Blog http://msmvps.com/clusterhelp
|||"Tom Moreau" <tom@.dont.spam.me.cips.ca> wrote in message
news:%23Ildh5iDHHA.3212@.TK2MSFTNGP04.phx.gbl...
> Take Russ' course (www.clusterhelp.com). I did, and I had already set up
> a
> couple of clusters (under duress) before doing so.
Thanks for the plug, Tom.
Russ Kaufmann
MVP - Windows Server - Clustering
ClusterHelp.com, a Microsoft Certified Gold Partner
Web http://www.clusterhelp.com
Blog http://msmvps.com/clusterhelp