dbTalk Databases Forums  

dbbackup and IIS problem

sybase.public.sqlanywhere.general sybase.public.sqlanywhere.general


Discuss dbbackup and IIS problem in the sybase.public.sqlanywhere.general forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Bob Piskac
 
Posts: n/a

Default dbbackup and IIS problem - 09-27-2007 , 07:32 AM






Manually running a dbbackup command on a computer with SQL Anywhere V10.0.1
causes the web server to stop working with the database server. We just
figured out what was causing the problem.

Test machine OS: Windows XP

This is a stand alone development machine with web server and SQL Anywhere
installed on same box.

dbbackup -c"connectionstringhere" -y -x d:\dbbackup\

After running this command, I must stop and start IIS to have the web site
accessible.

Should I be able to backup the database live with IIS running and not cause
any bad side effects?




Reply With Quote
  #2  
Old   
Nick Elson
 
Posts: n/a

Default Re: dbbackup and IIS problem - 09-27-2007 , 10:15 AM






Quote:
Should I be able to backup the database live with IIS running and not
cause any bad side effects?
Yes. Sure you should.

Is there any errors reported by the server?
Is the server blocking other connections while this is apparently hung?
Does the backup actually complete?
Does this occur every time you run dbbackup?
Does the backup statement behave the same way for you?

There is a chance that you may have exceed some
limit someplace. This could also be a temporary
condition if you could just leave the web server
running long enough.

One thought I have is you may not have enough threads
to satisfy all concurrent requirements (see -gn). Another
thought I have is you have some virus scanner, or defragger
or other system process preventing the log from being
renamed, deleted and recreated; try it removing the -x
switch.

From the latest 10.0.1 ebf readme I see these entries that
may be relevant to you:

================(Build #3560 - Engineering Case
#480055)================
In some circumstances, backups could have taken longer to complete than
expected.
This problem would have been noticed only if the total size of the database
files was greater than 2GB, and was more likely to be noticed when backing
up a very small fraction of that database size (e.g., such as when doing
a TRANSACTION LOG ONLY backup with a small transaction log). This has been
fixed.

================(Build #3505 - Engineering Case
#471413)================
If a BACKUP statement was executed that used one of the TRANSACTION LOG
backup
options, and the database did not use a transaction log file, then the
server
would have crashed. This has been fixed. The server now returns the error
"Syntax error near 'backup option'".

================(Build #3536 - Engineering Case
#475293)================
A client-side backup (ie using the Backup utility or calling the dbtools
function DBBackup) that truncated the log, could have created a backed-up
log file that was invalid. When this occurred the logfile would have
appeared
to be too short; i.e., the end offset of the backed-up log did not match
the starting offset of the current log. This problem did not occur when
the log was not truncated, or when calling the BACKUP DATABASE statement.
This has been fixed.


There is also 1 or 2 issues worth looking into if you are using database
mirroring.


"Bob Piskac" <bob (AT) pbsoftware (DOT) com> wrote

Quote:
Manually running a dbbackup command on a computer with SQL Anywhere
V10.0.1 causes the web server to stop working with the database server. We
just figured out what was causing the problem.

Test machine OS: Windows XP

This is a stand alone development machine with web server and SQL Anywhere
installed on same box.

dbbackup -c"connectionstringhere" -y -x d:\dbbackup\

After running this command, I must stop and start IIS to have the web site
accessible.

Should I be able to backup the database live with IIS running and not
cause any bad side effects?






Reply With Quote
  #3  
Old   
Bob Piskac
 
Posts: n/a

Default Re: dbbackup and IIS problem - 10-05-2007 , 09:36 AM



The backup finishes fine. The web server can no longer talk to the database
server. After a lot of testing, it appears there is a problem with SQL
Anywhere and IIS. The .NET web page states that a timeout occurs. This may
be a bug with SQL Anywhere. I would have to uninstall the software and
start applying patches and EBF's until I can fix the problem and apply newer
EBF's to duplicate the problem. This way I can track down which ebf started
causing the problem.

"Nick Elson" <@@@nick@@@.@@@elson@sybase@@@.@@@com@@@> wrote

Quote:
Should I be able to backup the database live with IIS running and not
cause any bad side effects?

Yes. Sure you should.

Is there any errors reported by the server?
Is the server blocking other connections while this is apparently hung?
Does the backup actually complete?
Does this occur every time you run dbbackup?
Does the backup statement behave the same way for you?

There is a chance that you may have exceed some
limit someplace. This could also be a temporary
condition if you could just leave the web server
running long enough.

One thought I have is you may not have enough threads
to satisfy all concurrent requirements (see -gn). Another
thought I have is you have some virus scanner, or defragger
or other system process preventing the log from being
renamed, deleted and recreated; try it removing the -x
switch.

From the latest 10.0.1 ebf readme I see these entries that
may be relevant to you:

================(Build #3560 - Engineering Case
#480055)================
In some circumstances, backups could have taken longer to complete than
expected.
This problem would have been noticed only if the total size of the
database
files was greater than 2GB, and was more likely to be noticed when backing
up a very small fraction of that database size (e.g., such as when doing
a TRANSACTION LOG ONLY backup with a small transaction log). This has been
fixed.

================(Build #3505 - Engineering Case
#471413)================
If a BACKUP statement was executed that used one of the TRANSACTION LOG
backup
options, and the database did not use a transaction log file, then the
server
would have crashed. This has been fixed. The server now returns the error
"Syntax error near 'backup option'".

================(Build #3536 - Engineering Case
#475293)================
A client-side backup (ie using the Backup utility or calling the dbtools
function DBBackup) that truncated the log, could have created a backed-up
log file that was invalid. When this occurred the logfile would have
appeared
to be too short; i.e., the end offset of the backed-up log did not match
the starting offset of the current log. This problem did not occur when
the log was not truncated, or when calling the BACKUP DATABASE statement.
This has been fixed.


There is also 1 or 2 issues worth looking into if you are using database
mirroring.


"Bob Piskac" <bob (AT) pbsoftware (DOT) com> wrote in message
news:46fba2cb$1 (AT) forums-1-dub (DOT) ..
Manually running a dbbackup command on a computer with SQL Anywhere
V10.0.1 causes the web server to stop working with the database server.
We just figured out what was causing the problem.

Test machine OS: Windows XP

This is a stand alone development machine with web server and SQL
Anywhere installed on same box.

dbbackup -c"connectionstringhere" -y -x d:\dbbackup\

After running this command, I must stop and start IIS to have the web
site accessible.

Should I be able to backup the database live with IIS running and not
cause any bad side effects?








Reply With Quote
  #4  
Old   
Nick Elson
 
Posts: n/a

Default Re: dbbackup and IIS problem - 10-05-2007 , 10:28 AM



Interesting indeed. I am suspicious this may not
be a new behaviour in our software but an OS, FS,
and system utilities thing.

When the server hangs like this, is ther a *new* transaction
log present? If not, I would lean towards virus checking,
defragging or some other system utility blocking the file
from being deleted/created-anew. Normally I would
expect to see a fatal error or assertion error logged.

Are you logging with -o? Or just the event log? Do
you not see a Fatal Error or Assertion Error in either?

Since the backup ***seems*** to have completed,
did you get chance to test to see if it is a valid backup?


"Bob Piskac" <bob (AT) pbsoftware (DOT) com> wrote

Quote:
The backup finishes fine. The web server can no longer talk to the
database server. After a lot of testing, it appears there is a problem
with SQL Anywhere and IIS. The .NET web page states that a timeout
occurs. This may be a bug with SQL Anywhere. I would have to uninstall
the software and start applying patches and EBF's until I can fix the
problem and apply newer EBF's to duplicate the problem. This way I can
track down which ebf started causing the problem.

"Nick Elson" <@@@nick@@@.@@@elson@sybase@@@.@@@com@@@> wrote in message
news:46fbc912$1 (AT) forums-1-dub (DOT) ..
Should I be able to backup the database live with IIS running and not
cause any bad side effects?

Yes. Sure you should.

Is there any errors reported by the server?
Is the server blocking other connections while this is apparently hung?
Does the backup actually complete?
Does this occur every time you run dbbackup?
Does the backup statement behave the same way for you?

There is a chance that you may have exceed some
limit someplace. This could also be a temporary
condition if you could just leave the web server
running long enough.

One thought I have is you may not have enough threads
to satisfy all concurrent requirements (see -gn). Another
thought I have is you have some virus scanner, or defragger
or other system process preventing the log from being
renamed, deleted and recreated; try it removing the -x
switch.

From the latest 10.0.1 ebf readme I see these entries that
may be relevant to you:

================(Build #3560 - Engineering Case
#480055)================
In some circumstances, backups could have taken longer to complete than
expected.
This problem would have been noticed only if the total size of the
database
files was greater than 2GB, and was more likely to be noticed when
backing
up a very small fraction of that database size (e.g., such as when doing
a TRANSACTION LOG ONLY backup with a small transaction log). This has
been
fixed.

================(Build #3505 - Engineering Case
#471413)================
If a BACKUP statement was executed that used one of the TRANSACTION LOG
backup
options, and the database did not use a transaction log file, then the
server
would have crashed. This has been fixed. The server now returns the error
"Syntax error near 'backup option'".

================(Build #3536 - Engineering Case
#475293)================
A client-side backup (ie using the Backup utility or calling the dbtools
function DBBackup) that truncated the log, could have created a backed-up
log file that was invalid. When this occurred the logfile would have
appeared
to be too short; i.e., the end offset of the backed-up log did not match
the starting offset of the current log. This problem did not occur when
the log was not truncated, or when calling the BACKUP DATABASE statement.
This has been fixed.


There is also 1 or 2 issues worth looking into if you are using database
mirroring.


"Bob Piskac" <bob (AT) pbsoftware (DOT) com> wrote in message
news:46fba2cb$1 (AT) forums-1-dub (DOT) ..
Manually running a dbbackup command on a computer with SQL Anywhere
V10.0.1 causes the web server to stop working with the database server.
We just figured out what was causing the problem.

Test machine OS: Windows XP

This is a stand alone development machine with web server and SQL
Anywhere installed on same box.

dbbackup -c"connectionstringhere" -y -x d:\dbbackup\

After running this command, I must stop and start IIS to have the web
site accessible.

Should I be able to backup the database live with IIS running and not
cause any bad side effects?










Reply With Quote
  #5  
Old   
Bob Piskac
 
Posts: n/a

Default Re: dbbackup and IIS problem - 10-05-2007 , 10:59 AM



I think my first assumption that it was directly related to the backup was
wrong. IIS can hang even when no backup has been run. I have to restart
IIS at least three times a day as a work around. I am going to back rev SQL
Anywhere this weekend to see if the problem goes away.

"Nick Elson" <@@@nick@@@.@@@elson@sybase@@@.@@@com@@@> wrote

Quote:
Interesting indeed. I am suspicious this may not
be a new behaviour in our software but an OS, FS,
and system utilities thing.

When the server hangs like this, is ther a *new* transaction
log present? If not, I would lean towards virus checking,
defragging or some other system utility blocking the file
from being deleted/created-anew. Normally I would
expect to see a fatal error or assertion error logged.

Are you logging with -o? Or just the event log? Do
you not see a Fatal Error or Assertion Error in either?

Since the backup ***seems*** to have completed,
did you get chance to test to see if it is a valid backup?


"Bob Piskac" <bob (AT) pbsoftware (DOT) com> wrote in message
news:47064c01$1 (AT) forums-1-dub (DOT) ..
The backup finishes fine. The web server can no longer talk to the
database server. After a lot of testing, it appears there is a problem
with SQL Anywhere and IIS. The .NET web page states that a timeout
occurs. This may be a bug with SQL Anywhere. I would have to uninstall
the software and start applying patches and EBF's until I can fix the
problem and apply newer EBF's to duplicate the problem. This way I can
track down which ebf started causing the problem.

"Nick Elson" <@@@nick@@@.@@@elson@sybase@@@.@@@com@@@> wrote in message
news:46fbc912$1 (AT) forums-1-dub (DOT) ..
Should I be able to backup the database live with IIS running and not
cause any bad side effects?

Yes. Sure you should.

Is there any errors reported by the server?
Is the server blocking other connections while this is apparently hung?
Does the backup actually complete?
Does this occur every time you run dbbackup?
Does the backup statement behave the same way for you?

There is a chance that you may have exceed some
limit someplace. This could also be a temporary
condition if you could just leave the web server
running long enough.

One thought I have is you may not have enough threads
to satisfy all concurrent requirements (see -gn). Another
thought I have is you have some virus scanner, or defragger
or other system process preventing the log from being
renamed, deleted and recreated; try it removing the -x
switch.

From the latest 10.0.1 ebf readme I see these entries that
may be relevant to you:

================(Build #3560 - Engineering Case
#480055)================
In some circumstances, backups could have taken longer to complete than
expected.
This problem would have been noticed only if the total size of the
database
files was greater than 2GB, and was more likely to be noticed when
backing
up a very small fraction of that database size (e.g., such as when doing
a TRANSACTION LOG ONLY backup with a small transaction log). This has
been
fixed.

================(Build #3505 - Engineering Case
#471413)================
If a BACKUP statement was executed that used one of the TRANSACTION LOG
backup
options, and the database did not use a transaction log file, then the
server
would have crashed. This has been fixed. The server now returns the
error
"Syntax error near 'backup option'".

================(Build #3536 - Engineering Case
#475293)================
A client-side backup (ie using the Backup utility or calling the dbtools
function DBBackup) that truncated the log, could have created a
backed-up
log file that was invalid. When this occurred the logfile would have
appeared
to be too short; i.e., the end offset of the backed-up log did not match
the starting offset of the current log. This problem did not occur when
the log was not truncated, or when calling the BACKUP DATABASE
statement.
This has been fixed.


There is also 1 or 2 issues worth looking into if you are using database
mirroring.


"Bob Piskac" <bob (AT) pbsoftware (DOT) com> wrote in message
news:46fba2cb$1 (AT) forums-1-dub (DOT) ..
Manually running a dbbackup command on a computer with SQL Anywhere
V10.0.1 causes the web server to stop working with the database server.
We just figured out what was causing the problem.

Test machine OS: Windows XP

This is a stand alone development machine with web server and SQL
Anywhere installed on same box.

dbbackup -c"connectionstringhere" -y -x d:\dbbackup\

After running this command, I must stop and start IIS to have the web
site accessible.

Should I be able to backup the database live with IIS running and not
cause any bad side effects?












Reply With Quote
  #6  
Old   
Nick Elson
 
Posts: n/a

Default Re: dbbackup and IIS problem - 10-05-2007 , 11:20 AM



Phew. Thanks for letting us know.

Good luck with that.

"Bob Piskac" <bob (AT) pbsoftware (DOT) com> wrote

Quote:
I think my first assumption that it was directly related to the backup was
wrong. IIS can hang even when no backup has been run. I have to restart
IIS at least three times a day as a work around. I am going to back rev
SQL Anywhere this weekend to see if the problem goes away.

"Nick Elson" <@@@nick@@@.@@@elson@sybase@@@.@@@com@@@> wrote in message
news:47065808$1 (AT) forums-1-dub (DOT) ..
Interesting indeed. I am suspicious this may not
be a new behaviour in our software but an OS, FS,
and system utilities thing.

When the server hangs like this, is ther a *new* transaction
log present? If not, I would lean towards virus checking,
defragging or some other system utility blocking the file
from being deleted/created-anew. Normally I would
expect to see a fatal error or assertion error logged.

Are you logging with -o? Or just the event log? Do
you not see a Fatal Error or Assertion Error in either?

Since the backup ***seems*** to have completed,
did you get chance to test to see if it is a valid backup?


"Bob Piskac" <bob (AT) pbsoftware (DOT) com> wrote in message
news:47064c01$1 (AT) forums-1-dub (DOT) ..
The backup finishes fine. The web server can no longer talk to the
database server. After a lot of testing, it appears there is a problem
with SQL Anywhere and IIS. The .NET web page states that a timeout
occurs. This may be a bug with SQL Anywhere. I would have to uninstall
the software and start applying patches and EBF's until I can fix the
problem and apply newer EBF's to duplicate the problem. This way I can
track down which ebf started causing the problem.

"Nick Elson" <@@@nick@@@.@@@elson@sybase@@@.@@@com@@@> wrote in message
news:46fbc912$1 (AT) forums-1-dub (DOT) ..
Should I be able to backup the database live with IIS running and not
cause any bad side effects?

Yes. Sure you should.

Is there any errors reported by the server?
Is the server blocking other connections while this is apparently hung?
Does the backup actually complete?
Does this occur every time you run dbbackup?
Does the backup statement behave the same way for you?

There is a chance that you may have exceed some
limit someplace. This could also be a temporary
condition if you could just leave the web server
running long enough.

One thought I have is you may not have enough threads
to satisfy all concurrent requirements (see -gn). Another
thought I have is you have some virus scanner, or defragger
or other system process preventing the log from being
renamed, deleted and recreated; try it removing the -x
switch.

From the latest 10.0.1 ebf readme I see these entries that
may be relevant to you:

================(Build #3560 - Engineering Case
#480055)================
In some circumstances, backups could have taken longer to complete than
expected.
This problem would have been noticed only if the total size of the
database
files was greater than 2GB, and was more likely to be noticed when
backing
up a very small fraction of that database size (e.g., such as when
doing
a TRANSACTION LOG ONLY backup with a small transaction log). This has
been
fixed.

================(Build #3505 - Engineering Case
#471413)================
If a BACKUP statement was executed that used one of the TRANSACTION LOG
backup
options, and the database did not use a transaction log file, then the
server
would have crashed. This has been fixed. The server now returns the
error
"Syntax error near 'backup option'".

================(Build #3536 - Engineering Case
#475293)================
A client-side backup (ie using the Backup utility or calling the
dbtools
function DBBackup) that truncated the log, could have created a
backed-up
log file that was invalid. When this occurred the logfile would have
appeared
to be too short; i.e., the end offset of the backed-up log did not
match
the starting offset of the current log. This problem did not occur
when
the log was not truncated, or when calling the BACKUP DATABASE
statement.
This has been fixed.


There is also 1 or 2 issues worth looking into if you are using
database mirroring.


"Bob Piskac" <bob (AT) pbsoftware (DOT) com> wrote in message
news:46fba2cb$1 (AT) forums-1-dub (DOT) ..
Manually running a dbbackup command on a computer with SQL Anywhere
V10.0.1 causes the web server to stop working with the database
server. We just figured out what was causing the problem.

Test machine OS: Windows XP

This is a stand alone development machine with web server and SQL
Anywhere installed on same box.

dbbackup -c"connectionstringhere" -y -x d:\dbbackup\

After running this command, I must stop and start IIS to have the web
site accessible.

Should I be able to backup the database live with IIS running and not
cause any bad side effects?














Reply With Quote
  #7  
Old   
Bob Piskac
 
Posts: n/a

Default Re: dbbackup and IIS problem - 10-16-2007 , 08:30 AM



I backed reved to V10.0.1.3488. It's been only 24 hours but it's still
running. I will let it run for 1 week and If I have no problems I will
reinstall the latest EBF and see if the problem starts again.

"Nick Elson" <@@@nick@@@.@@@elson@sybase@@@.@@@com@@@> wrote

Quote:
Phew. Thanks for letting us know.

Good luck with that.

"Bob Piskac" <bob (AT) pbsoftware (DOT) com> wrote in message
news:47065f5e$1 (AT) forums-1-dub (DOT) ..
I think my first assumption that it was directly related to the backup was
wrong. IIS can hang even when no backup has been run. I have to restart
IIS at least three times a day as a work around. I am going to back rev
SQL Anywhere this weekend to see if the problem goes away.



Reply With Quote
  #8  
Old   
Bob Piskac
 
Posts: n/a

Default Re: dbbackup and IIS problem - 10-18-2007 , 08:46 AM



The problem happened less often but it still had problems. I changed the
connection string in the .NET code to use shared memory instead of TCP/IP.
I also upgraded back to V10.0.1.3559.

"Bob Piskac" <bob (AT) pbsoftware (DOT) com> wrote

Quote:
I backed reved to V10.0.1.3488. It's been only 24 hours but it's still
running. I will let it run for 1 week and If I have no problems I will
reinstall the latest EBF and see if the problem starts again.

"Nick Elson" <@@@nick@@@.@@@elson@sybase@@@.@@@com@@@> wrote in message
news:47066459$1 (AT) forums-1-dub (DOT) ..
Phew. Thanks for letting us know.

Good luck with that.




Reply With Quote
  #9  
Old   
Bob Piskac
 
Posts: n/a

Default Re: dbbackup and IIS problem - 10-22-2007 , 10:36 AM



The server seems to be working for 4 days without a problem. I will give it
5 days more to make sure.

"Bob Piskac" <bob (AT) pbsoftware (DOT) com> wrote

Quote:
The problem happened less often but it still had problems. I changed the
connection string in the .NET code to use shared memory instead of TCP/IP.
I also upgraded back to V10.0.1.3559.

"Bob Piskac" <bob (AT) pbsoftware (DOT) com> wrote in message
news:4714bcdf$1 (AT) forums-1-dub (DOT) ..
I backed reved to V10.0.1.3488. It's been only 24 hours but it's still
running. I will let it run for 1 week and If I have no problems I will
reinstall the latest EBF and see if the problem starts again.

"Nick Elson" <@@@nick@@@.@@@elson@sybase@@@.@@@com@@@> wrote in message
news:47066459$1 (AT) forums-1-dub (DOT) ..
Phew. Thanks for letting us know.

Good luck with that.






Reply With Quote
  #10  
Old   
Bob Piskac
 
Posts: n/a

Default Re: dbbackup and IIS problem - 11-05-2007 , 07:52 AM



Still running into problems with IIS and timeouts. I applied EBF 3579
Saturday. I noticed an ADO.NET update...

================(Build #3560 - Engineering Case #480211)================
When one connection was blocking on a WAITFOR statement, all other
connections
were also blocked until it finishes. This problem has been fixed.

I hope this is what is happening to me.

"Bob Piskac" <bob (AT) pbsoftware (DOT) com> wrote

Quote:
The server seems to be working for 4 days without a problem. I will give
it 5 days more to make sure.

"Bob Piskac" <bob (AT) pbsoftware (DOT) com> wrote in message
news:471763b1 (AT) forums-1-dub (DOT) ..
The problem happened less often but it still had problems. I changed the
connection string in the .NET code to use shared memory instead of
TCP/IP. I also upgraded back to V10.0.1.3559.




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.