When updating a folder in the svn local directory, the update fails. Then svn prompted me to cleanup, so I went to cleanup. The result also fails: Failed to run the WC DB work queue associated with "directory/file"
-----Solution
1. First download sqlite3 and install it. If it is already installed, please start the second step directly. I am window10 64-bit specific tutorial refer to this: https://blog.csdn.net/chaishen10000/article/details/54574060
Sqlite official website address: http://www.sqlite.org/
Sqlite3 file download:
1. Download sqlite-dll-win32-x86-3140100
2. Download sqlite-tools-win32-x86-3140100
Install:
First create a folder sqlite in the C drive,
1. Copy the two files (sqlite3.def and sqlite3.dll) extracted from sqlite-dll-win32-x86-3140100 to the newly created directory (C:\sqlite)
2. Copy the decompressed file sqlite3.exe from sqlite-tools-win32-x86-3140100 to the C:\sqlite directory
3. Add the system environment variable, and add C:\sqlite (don't forget the semicolon) after the Path variable value, as shown in the following figure:
Next, test whether the installation is complete
Run cmd, switch to the root directory of the C drive, enter sqlite3, and press Enter. If the installation is successful, the sqlite version number will be displayed, as shown in the following figure:
OK, Sqlite3 has been installed.
2. Start to clear the queue
Step 1. Clear the svn queue
1. Go to the .svn directory where you need to clean up the directory and check if there is a wc.db file
F:\svnClient\188\shengshiDoc\.svn>dir 2018/04/27 09:32 3 entries 2018/04/27 09:32 3 format 2018/04/27 09:33 <DIR> pristine 2018/04/27 09:36 <DIR> tmp 2018/04/27 11:35 4,161,536 wc.db --This file 2018/04/27 11:35 0 wc .db - journal 4 files 4 , 161 , 542 bytes 2 directories 29 , 035 , 597 , 824 bytes available _ _ _
2. Execute the sqlite3 command to view the contents of the wc.db database
F:\svnClient\ 188 \shengshiDoc\.svn>sqlite3 wc .db " select * from work_queue " 4237 |( file - install 113software / office2013/SW_DVD5_Office_Professional_Plus_2013_64Bit_ChnSimp_MLF_X18- 55285 /KMSpico_setupActivationVersion.exe 1 1 0 1 1 ) file - install 95software /office2013/SW_DVD5_Office_Professional_Plus_2013_64Bit_ChnSimp_MLF_X18- 55285 / autorun.inf 1 0 1 1 ) 4239 |( file - the install 94 software / Office2013 / SW_DVD5_Office_Professional_Plus_2013_64Bit_ChnSimp_MLF_X18- 55285 /readme.htm . 1 0 . 1 . 1 ) 4240 | ( File - the install 93 software / Office2013 / SW_DVD5_Office_Professional_Plus_2013_64Bit_ChnSimp_MLF_X18- 55285 /setup.dll . 1 0 . 1 . 1 ) 4241 | ( File - the install 93 Software / office2013/SW_DVD5_Office_Professional_Plus_2013_64Bit_ChnSimp_MLF_X18- 55285 / setup.exe 1 0 1 1 )
3. Clear the work_queue table data, and then check whether it is clear
F:\svnClient\188\shengshiDoc\.svn>sqlite3 wc.db "delete from work_queue"
4. Clear the wc_lock table data
Sometimes it's not enough to just clear the work_queue table data, you have to clear the wc_lock table data to cleanup successfully
F:\svnClient\188\shengshiDoc\.svn>sqlite3 wc.db "delete from wc_lock
Step 2. Run the Cleanup command
After running the Cleanup command again, the following interface pops up, and the Cleanup operation can be performed normally.
Step 3. Run the SVN Update command
After successful Cleanup, run SVN Update to update successfully, as shown below:
Reference https://blog.csdn.net/ouyang_peng/article/details/53082607
Sqlite3 file download:
1. Download sqlite-dll-win32-x86-3140100
2. Download sqlite-tools-win32-x86-3140100
Install:
First create a folder sqlite in the C drive,
1. Copy the two files (sqlite3.def and sqlite3.dll) extracted from sqlite-dll-win32-x86-3140100 to the newly created directory (C:\sqlite)
2. Copy the decompressed file sqlite3.exe from sqlite-tools-win32-x86-3140100 to the C:\sqlite directory
3. Add the system environment variable, and add C:\sqlite (don't forget the semicolon) after the Path variable value, as shown in the following figure:
Next, test whether the installation is complete
Run cmd, switch to the root directory of the C drive, enter sqlite3, and press Enter. If the installation is successful, the sqlite version number will be displayed, as shown in the following figure:
OK, Sqlite3 has been installed.
2. Start to clear the queue
Step 1. Clear the svn queue
1. Go to the .svn directory where you need to clean up the directory and check if there is a wc.db file
F:\svnClient\188\shengshiDoc\.svn>dir 2018/04/27 09:32 3 entries 2018/04/27 09:32 3 format 2018/04/27 09:33 <DIR> pristine 2018/04/27 09:36 <DIR> tmp 2018/04/27 11:35 4,161,536 wc.db --This file 2018/04/27 11:35 0 wc .db - journal 4 files 4 , 161 , 542 bytes 2 directories 29 , 035 , 597 , 824 bytes available _ _ _
2. Execute the sqlite3 command to view the contents of the wc.db database
F:\svnClient\ 188 \shengshiDoc\.svn>sqlite3 wc .db " select * from work_queue " 4237 |( file - install 113software / office2013/SW_DVD5_Office_Professional_Plus_2013_64Bit_ChnSimp_MLF_X18- 55285 /KMSpico_setupActivationVersion.exe 1 1 0 1 1 ) file - install 95software /office2013/SW_DVD5_Office_Professional_Plus_2013_64Bit_ChnSimp_MLF_X18- 55285 / autorun.inf 1 0 1 1 ) 4239 |( file - the install 94 software / Office2013 / SW_DVD5_Office_Professional_Plus_2013_64Bit_ChnSimp_MLF_X18- 55285 /readme.htm . 1 0 . 1 . 1 ) 4240 | ( File - the install 93 software / Office2013 / SW_DVD5_Office_Professional_Plus_2013_64Bit_ChnSimp_MLF_X18- 55285 /setup.dll . 1 0 . 1 . 1 ) 4241 | ( File - the install 93 Software / office2013/SW_DVD5_Office_Professional_Plus_2013_64Bit_ChnSimp_MLF_X18- 55285 / setup.exe 1 0 1 1 )
3. Clear the work_queue table data, and then check whether it is clear
F:\svnClient\188\shengshiDoc\.svn>sqlite3 wc.db "delete from work_queue"
4. Clear the wc_lock table data
Sometimes it's not enough to just clear the work_queue table data, you have to clear the wc_lock table data to cleanup successfully
F:\svnClient\188\shengshiDoc\.svn>sqlite3 wc.db "delete from wc_lock
Step 2. Run the Cleanup command
After running the Cleanup command again, the following interface pops up, and the Cleanup operation can be performed normally.
Step 3. Run the SVN Update command
After successful Cleanup, run SVN Update to update successfully, as shown below:
Reference https://blog.csdn.net/ouyang_peng/article/details/53082607