简体   繁体   中英

Error when check out code from SVN server

I have SVN server to control source code version

I can checkout my code when I use TortoiseSVN or use command line.

Here is some information:

  1. SVN server 在此处输入图像描述
  2. Checkout code by using TortoiseSVN in Windows在此处输入图像描述
  3. Chechout code by using commandline in Ubuntu (Web server)

I use this command

root@controller1:/var/www/onecloud# svn co --force --username hoang --password gcsvn123 http://203.162.141.79/onecloud /var/www/onecloud

在此处输入图像描述

Then I write PHP code to update version auto (don't use TortoiseSVN or use command line).

error_reporting(-1);
ini_set('display_errors', 'On');
$result= exec('svn co --force --username hoang --password gcsvn123 http://203.162.141.79/onecloud /var/www/onecloud 2>&1',$out);
print_r($out);

But when I run my code, it show this error:

Array ( [0] => svn: E155004: Run 'svn cleanup' to remove locks (type 'svn help cleanup' for details) [1] => svn: E155004: Working copy '/var/www/onecloud' locked [2] => svn: E200031: sqlite[S8]: attempt to write a readonly database [3] => svn: E200031: Additional errors: [4] => svn: E200031: sqlite[S8]: attempt to write a readonly database ) 

I have run command line svn cleanup , but it seem doesn't work.

Not:

My SVN server is 203.162.141.79
My web server is 203.162.141.26

I found diractory .svn in my code after checkput

When I use two command

chmod -R 777.svn/

chown www-data:www-data.svn/

It works.

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM