Re: Help, slave wont stay running!

2004-08-17 Thread matt ryan
Still no solution on this
anybody have any ideas?
It's not network, or hard drive, it's got to be some type of bug in my 
config files, attached in original email

The master is on 4.0.20a and the slave is on 4.0.20a

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]


Re: Help, slave wont stay running!

2004-08-13 Thread matt ryan
Anybody else have any ideas?
I cant keep the slave up
only thing I have not tried is upgrading to 4.0.20, however, nothing 
changed to cause this problem

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]


Re: Help, slave wont stay running!

2004-08-13 Thread matt ryan
I reset the master, flush logs, reset master, show master status..
shows FINANCE-bin.186 at position 79
so I started the slave
CHANGE MASTER TO
MASTER_HOST='192.168.1.168',
MASTER_USER='repl',
MASTER_PASSWORD='Daredevil22',
MASTER_LOG_FILE='FINANCE-bin.186',
MASTER_LOG_POS=79;
start slave;
and I get this error after a few seconds..
040813  8:55:15  Slave SQL thread initialized, starting replication in 
log 'FINANCE-bin.186' at position 79, relay log 
'.\databasebackup-relay-bin.001' position: 4
040813  8:55:15  Slave I/O thread: connected to master 
'[EMAIL PROTECTED]:3306',  replication started in log 'FINANCE-bin.186' 
at position 79
040813  8:55:39  Error reading packet from server: binlog truncated in 
the middle of event (server_errno=1236)
040813  8:55:39  Got fatal error 1236: 'binlog truncated in the middle 
of event' from master when reading data from binary log
040813  8:55:39  Slave I/O thread exiting, read up to log 
'FINANCE-bin.186', position 79

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]


Re: Help, slave wont stay running!

2004-08-13 Thread matt ryan
More info..
I dont see anythign wrong with the binlog the slave has
E:\mysql\datamysqlbinlog databasebackup-relay-bin.001
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
# at 4
#691231 19:00:00 server id 1  log_pos 0 Rotate to 
FINANCE-bin.186  pos:79
# at 46
#691231 19:00:00 server id 1  log_pos 0 Rotate to 
FINANCE-bin.186  pos:79

E:\mysql\data
--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]


Re: Help, slave wont stay running!

2004-08-13 Thread SGreen
Have you considered that a proxy server may be in the way. I have been 
watching this thread but I can't remember if you said anything about your 
network connectivity (sorry!). I have seen several programs make what they 
thought was a connection then fail because they don't know they are 
connecting through a proxy and not the real server. Also if your proxy is 
dropping your session, it could cause the same interrupted behavior. 

my 2 cents

Shawn Green
Database Administrator
Unimin Corporation - Spruce Pine

matt ryan [EMAIL PROTECTED] wrote on 08/13/2004 08:58:43 AM:

 I reset the master, flush logs, reset master, show master status..
 
 shows FINANCE-bin.186 at position 79
 
 so I started the slave
 
 
 CHANGE MASTER TO
 MASTER_HOST='192.168.1.168',
 MASTER_USER='repl',
 MASTER_PASSWORD='Daredevil22',
 MASTER_LOG_FILE='FINANCE-bin.186',
 MASTER_LOG_POS=79;
 
 start slave;
 
 and I get this error after a few seconds..
 
 
 040813  8:55:15  Slave SQL thread initialized, starting replication in 
 log 'FINANCE-bin.186' at position 79, relay log 
 '.\databasebackup-relay-bin.001' position: 4
 040813  8:55:15  Slave I/O thread: connected to master 
 '[EMAIL PROTECTED]:3306',  replication started in log 'FINANCE-bin.186' 

 at position 79
 040813  8:55:39  Error reading packet from server: binlog truncated in 
 the middle of event (server_errno=1236)
 040813  8:55:39  Got fatal error 1236: 'binlog truncated in the middle 
 of event' from master when reading data from binary log
 040813  8:55:39  Slave I/O thread exiting, read up to log 
 'FINANCE-bin.186', position 79
 
 
 -- 
 MySQL General Mailing List
 For list archives: http://lists.mysql.com/mysql
 To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]
 


Re: Help, slave wont stay running!

2004-08-13 Thread matt ryan
[EMAIL PROTECTED] wrote:
Have you considered that a proxy server may be in the way. I have been 
watching this thread but I can't remember if you said anything about 
your network connectivity (sorry!). I have seen several programs make 
what they thought was a connection then fail because they don't know 
they are connecting through a proxy and not the real server. Also if 
your proxy is dropping your session, it could cause the same 
interrupted behavior.

my 2 cents
Both servers are connected to the same switch, no proxy servers between 
them.

The slave will connect, and will process all the way up to the current event
as soon as it hits the current event it dies, all I have to do is wait 5 
min for more events to build up, and start slave and it takes off again

Matt
--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]


Help, slave wont stay running!

2004-08-12 Thread matt ryan
I cant keep the slave up for more than 10 minutes
constantly getting these errors
040812 10:32:25  Error reading packet from server: binlog truncated in 
the middle of event (server_errno=1236)
040812 10:32:25  Got fatal error 1236: 'binlog truncated in the middle 
of event' from master when reading data from binary log
040812 10:32:25  Slave I/O thread exiting, read up to log 
'FINANCE-bin.185', position 284963878

both servers have plenty of free space
Here is the master setup..
skip-locking
set-variable= key_buffer_size=1000M
set-variable=bulk_insert_buffer_size=256M
set-variable=delay_key_write=ALL
set-variable=join_buffer_size=256M
set-variable= max_allowed_packet=256M
set-variable= table_cache=512
set-variable= sort_buffer_size=256M
set-variable=tmp_table_size=256M
set-variable= record_buffer=256M
set-variable= thread_cache=8
set-variable=myisam_sort_buffer_size=256M
myisam-recover=BACKUP,FORCE
set-variable=read_buffer_size=256M
set-variable=interactive_timeout=7200
set-variable=wait_timeout=7200
here is the slave setup
skip-locking
set-variable= key_buffer_size=1500M
set-variable=bulk_insert_buffer_size=512M
set-variable=delay_key_write=ALL
set-variable=join_buffer_size=512M
set-variable= max_allowed_packet=384M
set-variable= table_cache=512
set-variable= sort_buffer_size=256M
set-variable=tmp_table_size=400M
set-variable= record_buffer=384M
set-variable= thread_cache=8
set-variable=myisam_sort_buffer_size=256M
myisam-recover=BACKUP,FORCE
set-variable=read_buffer_size=384M
set-variable=interactive_timeout=7200
set-variable=wait_timeout=7200
I'm out of ideas, I've played with buffer sizes, packet sizes, but still 
get the same error

my other master/slave has no problems at all, the slave is the same 
server (one box that's slave for two sites)

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]


RE: Help, slave wont stay running!

2004-08-12 Thread Victor Pendleton
Can you reset the slave to read the next event its relay log? If this is not
possible, is refreshing the data from the master a viable option?

-Original Message-
From: matt ryan
To: [EMAIL PROTECTED]
Sent: 8/12/04 10:22 AM
Subject: Help, slave wont stay running!

I cant keep the slave up for more than 10 minutes

constantly getting these errors

040812 10:32:25  Error reading packet from server: binlog truncated in 
the middle of event (server_errno=1236)
040812 10:32:25  Got fatal error 1236: 'binlog truncated in the middle 
of event' from master when reading data from binary log
040812 10:32:25  Slave I/O thread exiting, read up to log 
'FINANCE-bin.185', position 284963878

both servers have plenty of free space

Here is the master setup..
skip-locking
set-variable= key_buffer_size=1000M
set-variable=bulk_insert_buffer_size=256M
set-variable=delay_key_write=ALL
set-variable=join_buffer_size=256M
set-variable= max_allowed_packet=256M
set-variable= table_cache=512
set-variable= sort_buffer_size=256M
set-variable=tmp_table_size=256M
set-variable= record_buffer=256M
set-variable= thread_cache=8
set-variable=myisam_sort_buffer_size=256M
myisam-recover=BACKUP,FORCE
set-variable=read_buffer_size=256M
set-variable=interactive_timeout=7200
set-variable=wait_timeout=7200

here is the slave setup

skip-locking
set-variable= key_buffer_size=1500M
set-variable=bulk_insert_buffer_size=512M
set-variable=delay_key_write=ALL
set-variable=join_buffer_size=512M
set-variable= max_allowed_packet=384M
set-variable= table_cache=512
set-variable= sort_buffer_size=256M
set-variable=tmp_table_size=400M
set-variable= record_buffer=384M
set-variable= thread_cache=8
set-variable=myisam_sort_buffer_size=256M
myisam-recover=BACKUP,FORCE
set-variable=read_buffer_size=384M
set-variable=interactive_timeout=7200
set-variable=wait_timeout=7200

I'm out of ideas, I've played with buffer sizes, packet sizes, but still

get the same error

my other master/slave has no problems at all, the slave is the same 
server (one box that's slave for two sites)

-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:
http://lists.mysql.com/[EMAIL PROTECTED]

-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Re: Help, slave wont stay running!

2004-08-12 Thread matt ryan
Victor Pendleton wrote:
Can you reset the slave to read the next event its relay log? If this is not
possible, is refreshing the data from the master a viable option?
 

I can start slave, and it runs a little while, then stops again.
I can refresh the data from the master, iv'e done it 25 times at least, 
3 times a week, the database is 90 gig, so it's not very fun!

every time I resync them, I'll reset master first, resync, set the slave 
to start on the new master info, and then start the slave, boom fails in 
15 min

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]


Re: Help, slave wont stay running!

2004-08-12 Thread Alfredo Cole
El Jueves, 12 de Agosto de 2004 09:22, matt ryan escribió:
 I cant keep the slave up for more than 10 minutes

 constantly getting these errors

 040812 10:32:25  Error reading packet from server: binlog truncated in
 the middle of event (server_errno=1236)
 040812 10:32:25  Got fatal error 1236: 'binlog truncated in the middle
 of event' from master when reading data from binary log
 040812 10:32:25  Slave I/O thread exiting, read up to log
 'FINANCE-bin.185', position 284963878

I had a similar situation one week ago. Found one of the tables (MyISAM) had a 
corrupt index. After fixing it, everything was fine again.

Regards.

-- 
Alfredo Cole
Grupo ACyC
www.acyc.com - www.clshonduras.com

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Re: Help, slave wont stay running!

2004-08-12 Thread matt ryan
I deleted every table off the slave, and reloaded them, I do this twice 
a week because it wont replicate

The master server has a check  optimize every sunday
I had a similar situation one week ago. Found one of the tables (MyISAM) had a 
corrupt index. After fixing it, everything was fine again.

Regards.
 


--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]


Re: Help, slave wont stay running!

2004-08-12 Thread matt ryan
Check it out
mysql start slave;
Query OK, 0 rows affected (0.00 sec)
mysql start slave;
ERROR 1198: This operation cannot be performed with a running slave, run 
SLAVE S
TOP first
mysql start slave;
ERROR 1198: This operation cannot be performed with a running slave, run 
SLAVE S
TOP first
mysql start slave;
Query OK, 0 rows affected (0.00 sec)

mysql start slave;
Query OK, 0 rows affected (0.00 sec)
I can start slave over and over, it does one event, stops, start it and 
it does one event, then stops, over and over and over

I just keep running start slave really fast to get threw the updates.
--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]