Bug 69290 - [Operations] topLevelAdmin conflict with Checkout Into
Summary: [Operations] topLevelAdmin conflict with Checkout Into
Status: ASSIGNED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: CVS (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P5 normal (vote)
Target Milestone: ---   Edit
Assignee: platform-cvs-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2004-07-05 10:50 EDT by brigitte.steinert CLA
Modified: 2019-09-06 16:09 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description brigitte.steinert CLA 2004-07-05 10:50:05 EDT
Checking out some modules in an existing project run well. Updating the project 
in resource view failed with an lock-error because of checking out CVSROOT. In 
our repositories the directory CVSROOT can't and shoudn't be checked out by a 
normal user. 
Concurrent Versions System (CVS) 1.11.5 (client/server) on Solaris
drwxrwsr-x   admin-user   admin-group    CVSROOT
drwxrwxr-x   normal-user  normal-group   bin
CVSROOT\Emptydir
drwxrwxr-x   normal-user  admin-group      96 Jul  5 10:45 Emptydir

I think the reason is, that update now, in opposite of eclipse 2.1.x, want to 
check out CVSROOT if the option 'fetch absent directories on update' is set. If 
the option is reset, it works. 

What can be done to 'fetch absent directories on update' belonging to the 
modules checked out in the project but not all the absent modules in the 
repository including CVSROOT.
Comment 1 Michael Valenta CLA 2004-08-09 10:58:48 EDT
Could you perform the steps outlined in the following URL to capture a trace 
of the failed update and attch the trace to this bug. This will help us 
understand why the CVSROOT/Emptydir is being updated.

http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/platform-vcm-
home/docs/online/cvs_features2.0/cvs-faq.html#misc_0
Comment 2 Michael Valenta CLA 2004-08-16 14:50:50 EDT
Whating for information from reporter
Comment 3 brigitte.steinert CLA 2004-08-24 12:39:40 EDT
I've done what's described in the named URL. Here the output:

------- create new project 	  cvs_sudo_test
------- checkout module eigener_test
------- option "fetch absent or new directories is set"
------- team update project cvs_sudo_test

***
cvs co -d "eigener_test" -P -A "/cvs_sudo_test/eigener_test"
  cvs server: Updating eigener_test
  U eigener_test/test_file.sam
  U eigener_test/test_file.txt
  U eigener_test/test_file_3.txt
  U eigener_test/test_header.txt
  U eigener_test/test_history.txt
  cvs server: Updating eigener_test/src
  U eigener_test/src/test_file2.txt
ok (took 0:00.260)
***

***
cvs update -d -P "/cvs_sudo_test"
  ? .project
  cvs server: Updating .
  cvs server: Updating CVSROOT
  cvs server: failed to create lock directory for 
`/cm/cvsstst/cvs_sudo_test/CVSROOT' 
(/cm/cvsstst/cvs_sudo_test/CVSROOT/#cvs.lock): Permission denied
  cvs server: failed to obtain dir lock in repository 
`/cm/cvsstst/cvs_sudo_test/CVSROOT'
  cvs [server aborted]: read lock failed - giving up
The server reported an error while performing the "cvs update" command. (took 
0:00.180)
Error: cvs_sudo_test: cvs server: failed to create lock directory for 
`/cm/cvsstst/cvs_sudo_test/CVSROOT' 
(/cm/cvsstst/cvs_sudo_test/CVSROOT/#cvs.lock): Permission denied
Error: cvs_sudo_test: cvs server: failed to obtain dir lock in repository 
`/cm/cvsstst/cvs_sudo_test/CVSROOT'
Error: cvs_sudo_test: cvs [server aborted]: read lock failed - giving up
***


c:\jdk1.3.1\jre\bin\java.exe

Startup: using configuration file:C:\eclipse\workspace\.metadata\.config\platfor
m.cfg
Boot URL: file:C:/Programme/eclipse 3.0M2/eclipse/plugins/org.eclipse.core.boot_
3.0.0/boot.jar
Startup: splash path = C:\Programme\eclipse 3.0M2\eclipse\plugins\org.eclipse.pl
atform_3.0.0\splash.bmp
Workspace location:
   C:\eclipse\workspace
Debug-Options:
    file:C:/Programme/eclipse 3.0M2/.options
Install URL:
    file:C:/Programme/eclipse 3.0M2/eclipse/
!ENTRY org.eclipse.team.cvs.ui 4 0 Aug 24, 2004 18:19:47.414
!MESSAGE The server reported an error while performing the "cvs update" command.

!STACK 1
org.eclipse.team.internal.ccvs.core.connection.CVSServerException: The server re
ported an error while performing the "cvs update" command.
        at org.eclipse.team.internal.ccvs.core.CVSTeamProvider$12.run(CVSTeamPro
vider.java:909)
        at org.eclipse.team.internal.ccvs.core.resources.EclipseSynchronizer.run
(EclipseSynchronizer.java:1300)
        at org.eclipse.team.internal.ccvs.core.resources.EclipseFolder$3.run(Ecl
ipseFolder.java:302)
        at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1595
)
        at org.eclipse.team.internal.ccvs.core.resources.EclipseFolder.run(Eclip
seFolder.java:299)
        at org.eclipse.team.internal.ccvs.core.client.Session.internalRun(Sessio
n.java:209)
        at org.eclipse.team.internal.ccvs.core.client.Session.run(Session.java:1
58)
        at org.eclipse.team.internal.ccvs.core.CVSTeamProvider.update(CVSTeamPro
vider.java:903)
        at org.eclipse.team.internal.ccvs.ui.actions.UpdateAction$1.execute(Upda
teAction.java:54)
        at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModify
Operation.java:71)
        at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1595
)
        at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOp
eration.java:85)
        at org.eclipse.team.internal.ccvs.ui.repo.RepositoryManager.run(Reposito
ryManager.java:802)
        at org.eclipse.team.internal.ccvs.ui.actions.CVSAction$1.run(CVSAction.j
ava:241)
        at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(Modal
Context.java:101)
!ENTRY org.eclipse.team.cvs.core 4 -10 Aug 24, 2004 18:19:47.414
!MESSAGE The server reported an error while performing the "cvs update" command.

!SUBENTRY 1 org.eclipse.team.cvs.core 4 -14 Aug 24, 2004 18:19:47.414
!MESSAGE cvs_sudo_test: cvs server: failed to create lock directory for `/cm/cvs
stst/cvs_sudo_test/CVSROOT' (/cm/cvsstst/cvs_sudo_test/CVSROOT/#cvs.lock): Permi
ssion denied
!SUBENTRY 1 org.eclipse.team.cvs.core 4 -14 Aug 24, 2004 18:19:47.414
!MESSAGE cvs_sudo_test: cvs server: failed to obtain dir lock in repository `/cm
/cvsstst/cvs_sudo_test/CVSROOT'
!SUBENTRY 1 org.eclipse.team.cvs.core 4 -14 Aug 24, 2004 18:19:47.414
!MESSAGE cvs_sudo_test: cvs [server aborted]: read lock failed - giving up




------- delete project 	  cvs_sudo_test - also delete contents
------- create new project 	  cvs_sudo_test
------- checkout module eigener_test
------- option "fetch absent or new directories is set"
------- team update project cvs_sudo_test


***
cvs co -d "eigener_test" -P -A "/cvs_sudo_test/eigener_test"
  cvs server: Updating eigener_test
  U eigener_test/test_file.sam
  U eigener_test/test_file.txt
  U eigener_test/test_file_3.txt
  U eigener_test/test_header.txt
  U eigener_test/test_history.txt
  cvs server: Updating eigener_test/src
  U eigener_test/src/test_file2.txt
ok (took 0:00.260)
***

***
cvs update -P "/cvs_sudo_test"
  ? .project
  cvs server: Updating .
  cvs server: Updating eigener_test
  cvs server: Updating eigener_test/src
ok (took 0:00.391)
***
Comment 4 Michael Valenta CLA 2004-08-24 13:12:02 EDT
You have included the output in the CVS console in Eclipse. What about the 
output to stdout (i.e. when you run Eclipse with java.exe and the other 
options mentioned in the URL, you should have gotten a DOS console to which 
the stdout of Java would be dumped. Can you attach what appeared there as well?
Comment 5 brigitte.steinert CLA 2004-08-24 13:31:27 EDT
I've put these output in the last comment, perhaps not easy to see. You find it 
if you search for "c:\jdk1.3.1\jre\bin\java.exe".
Comment 6 Michael Valenta CLA 2004-08-24 13:45:32 EDT
Right. I see it now. It looks like the .options file didn't have the right 
debug trace enablement. Did you add the debug enablement lines from the URL to 
file C:/Programme/eclipse 3.0M2/.options? The lines should be:

   org.eclipse.team.cvs.core/debug=true
   org.eclipse.team.cvs.core/cvsprotocol=true

Although you should also be able to enable tracing using the "Display detailed 
protocol output to stdout" option on the Team/CVS preference page.
Comment 7 brigitte.steinert CLA 2004-08-25 05:45:41 EDT
Sorry, now I started eclipse in the directory where the exe is installed.

C:\Programme\eclipse 3.0M2\eclipse>more .options
org.eclipse.team.cvs.core/debug=true
org.eclipse.team.cvs.core/cvsprotocol=true

C:\Programme\eclipse 3.0M2\eclipse>eclipse -vm C:\jdk1.3.1\jre\bin\java.exe   -d
ata C:\eclipse\workspace -debug -consolelog

Is it now the right output ?

Startup: using configuration 
file:C:\eclipse\workspace\.metadata\.config\platform.cfg
Boot URL: file:C:/Programme/eclipse 
3.0M2/eclipse/plugins/org.eclipse.core.boot_3.0.0/boot.jar
Startup: splash path = C:\Programme\eclipse 3.0M2
\eclipse\plugins\org.eclipse.platform_3.0.0\splash.bmp
Workspace location:
   C:\eclipse\workspace
Debug-Options:
    file:C:/Programme/eclipse 3.0M2/eclipse/.options
Install URL:
    file:C:/Programme/eclipse 3.0M2/eclipse/
I LOVE YOU
Valid-responses ok error M E Set-sticky Checked-in Mod-time Clear-static-
directory Updated Valid-requests Removed Clear-sticky Update-existing Module-
expansion MT New-entry Set-static-directory Merged Created Notified Remove-
entry Template Copy-file
valid-requests
Valid-requests Root Valid-responses valid-requests Repository Directory Max-
dotdot Static-directory Sticky Checkin-prog Update-prog Entry Kopt Checkin-time 
Modified Is-modified UseUnchanged Unchanged Notify Questionable Case Argument 
Argumentx Global_option Gzip-stream wrapper-sendme-rcsOptions Set expand-
modules ci co update diff log rlog add remove update-patches gzip-file-contents 
status rdiff tag rtag import admin export history release watch-on watch-off 
watch-add watch-remove watchers editors init annotate rannotate noop version
ok
Root /cm/cvsstst/cvs_sudo_test
CMD> cvs version
version
M Concurrent Versions System (CVS) 1.11.5 (client/server)
ok
RESULT> Status OKorg.eclipse.team.cvs.core code=0 ok null
CMD> cvs -n update -d ""
Global_option -n
Argument -d
Directory .
/cm/cvsstst/cvs_sudo_test/
Argument .
Directory .
/cm/cvsstst/cvs_sudo_test/
update
E cvs server: Updating .
E cvs server: New directory `CVSROOT' -- ignored
E cvs server: New directory `Modul_jbf415' -- ignored
E cvs server: New directory `bin' -- ignored
E cvs server: New directory `buchungsdatum' -- ignored
E cvs server: New directory `buchungsdatum_deleted_elements' -- ignored
E cvs server: New directory 
`buchungsdatum_geprueft_20040512_vor_weiteren_Anpassungen' -- ignored
E cvs server: New directory `buchungsdatum_save_vor_delete' -- ignored
E cvs server: New directory `cbx_Modul_jbf415' -- ignored
E cvs server: New directory `cp_bediener_from_cbx_module' -- ignored
E cvs server: New directory `cvs_scripts_test' -- ignored
E cvs server: New directory `db' -- ignored
E cvs server: New directory `dist' -- ignored
E cvs server: New directory `eigener_test' -- ignored
E cvs server: New directory `eigener_test_neue_Struktur' -- ignored
E cvs server: New directory `lib' -- ignored
E cvs server: New directory `neues_modul' -- ignored
E cvs server: New directory `new_sudo' -- ignored
E cvs server: New directory `prj' -- ignored
E cvs server: New directory `prototyp' -- ignored
E cvs server: New directory `sudo' -- ignored
E cvs server: New directory `template' -- ignored
E cvs server: New directory `test_for_jbfseu_branches' -- ignored
ok
RESULT> Status OKorg.eclipse.team.cvs.core code=0 ok null
I LOVE YOU
Valid-responses ok error M E Set-sticky Checked-in Mod-time Clear-static-
directory Updated Valid-requests Removed Clear-sticky Update-existing Module-
expansion New-entry Set-static-directory Merged Created Notified Remove-entry 
Template Copy-file
valid-requests
Valid-requests Root Valid-responses valid-requests Repository Directory Max-
dotdot Static-directory Sticky Checkin-prog Update-prog Entry Kopt Checkin-time 
Modified Is-modified UseUnchanged Unchanged Notify Questionable Case Argument 
Argumentx Global_option Gzip-stream wrapper-sendme-rcsOptions Set expand-
modules ci co update diff log rlog add remove update-patches gzip-file-contents 
status rdiff tag rtag import admin export history release watch-on watch-off 
watch-add watch-remove watchers editors init annotate rannotate noop version
ok
Root /cm/cvsstst/cvs_sudo_test
CMD> cvs co -c
Argument -c
Directory .
/cm/cvsstst/cvs_sudo_test/
co
M Modul_jbf415 Modul_jbf415
M all          -a Modul_jbf415 bin buchungsdatum buchungsdatum_deleted_elements
M              buchungsdatum_geprueft_20040512_vor_weiteren_Anpassungen
M              buchungsdatum_save_vor_delete cbx_Modul_jbf415
M              cp_bediener_from_cbx_module cvs_scripts_test db dist eigener_test
M              eigener_test_neue_Struktur lib new_sudo prj prototyp sudo 
template
M              test_for_jbfseu_branches
M all_cb       &Modul_jbf415 &bin &buchungsdatum &buchungsdatum_deleted_elements
M              &buchungsdatum_geprueft_20040512_vor_weiteren_Anpassungen
M              &buchungsdatum_save_vor_delete &cbx_Modul_jbf415
M              &cp_bediener_from_cbx_module &cvs_scripts_test &db &dist
M              &eigener_test &eigener_test_neue_Struktur &lib &new_sudo &prj
M              &prototyp &sudo &template &test_for_jbfseu_branches
M bin          bin
M buchungsdatum buchungsdatum
M buchungsdatum_deleted_elements buchungsdatum_deleted_elements
M buchungsdatum_geprueft_20040512_vor_weiteren_Anpassungen 
buchungsdatum_geprueft_20040512_vor_weiteren_Anpassungen
M buchungsdatum_save_vor_delete buchungsdatum_save_vor_delete
M cbx_Modul_jbf415 cbx_Modul_jbf415
M cp_bediener_from_cbx_module cp_bediener_from_cbx_module
M cvs_scripts_test cvs_scripts_test
M db           db
M dist         dist
M eigener_test eigener_test
M eigener_test_neue_Struktur eigener_test_neue_Struktur
M lib          lib
M new_sudo     new_sudo
M prj          prj
M prototyp     prototyp
M std          -a bin db dist doc lib prj prototyp vorlagen
M sudo         sudo
M template     template
M test_for_jbfseu_branches test_for_jbfseu_branches
ok
RESULT> Status OKorg.eclipse.team.cvs.core code=0 ok null
I LOVE YOU
Valid-responses ok error M E Set-sticky Checked-in Mod-time Clear-static-
directory Updated Valid-requests Removed Clear-sticky Update-existing Module-
expansion New-entry Set-static-directory Merged Created Notified Remove-entry 
Template Copy-file
valid-requests
Valid-requests Root Valid-responses valid-requests Repository Directory Max-
dotdot Static-directory Sticky Checkin-prog Update-prog Entry Kopt Checkin-time 
Modified Is-modified UseUnchanged Unchanged Notify Questionable Case Argument 
Argumentx Global_option Gzip-stream wrapper-sendme-rcsOptions Set expand-
modules ci co update diff log rlog add remove update-patches gzip-file-contents 
status rdiff tag rtag import admin export history release watch-on watch-off 
watch-add watch-remove watchers editors init annotate rannotate noop version
ok
Root /cm/cvsstst/cvs_sudo_test
CMD> cvs -n update -d ""
Global_option -n
Argument -d
Directory .
/cm/cvsstst/cvs_sudo_test/eigener_test
Argument .
Directory .
/cm/cvsstst/cvs_sudo_test/eigener_test
update
E cvs server: Updating .
M U test_file.sam
M U test_file.txt
M U test_file_3.txt
M U test_header.txt
M U test_history.txt
E cvs server: New directory `src' -- ignored
ok
RESULT> Status OKorg.eclipse.team.cvs.core code=0 ok null
CMD> cvs 
status "test_file.sam" "test_file.txt" "test_file_3.txt" "test_header.txt" "test
_history.txt"
Directory .
/cm/cvsstst/cvs_sudo_test/eigener_test
Entry /test_file.sam/0///
Is-modified test_file.sam
Entry /test_file.txt/0///
Is-modified test_file.txt
Entry /test_file_3.txt/0///
Is-modified test_file_3.txt
Entry /test_header.txt/0///
Is-modified test_header.txt
Entry /test_history.txt/0///
Is-modified test_history.txt
Argument test_file.sam
Argument test_file.txt
Argument test_file_3.txt
Argument test_header.txt
Argument test_history.txt
Directory .
/cm/cvsstst/cvs_sudo_test/eigener_test
status
E cvs server: conflict: test_file.sam created independently by second party
M ===================================================================
M File: test_file.sam    	Status: Unresolved Conflict
M 
M    Working revision:	New file!
M    Repository revision:	1.2
	/cm/cvsstst/cvs_sudo_test/eigener_test/test_file.sam,v
M    Sticky Tag:		(none)
M    Sticky Date:		(none)
M    Sticky Options:	(none)
M 
E cvs server: conflict: test_file.txt created independently by second party
M ===================================================================
M File: test_file.txt    	Status: Unresolved Conflict
M 
M    Working revision:	New file!
M    Repository revision:	1.3
	/cm/cvsstst/cvs_sudo_test/eigener_test/test_file.txt,v
M    Sticky Tag:		(none)
M    Sticky Date:		(none)
M    Sticky Options:	(none)
M 
E cvs server: conflict: test_file_3.txt created independently by second party
M ===================================================================
M File: test_file_3.txt  	Status: Unresolved Conflict
M 
M    Working revision:	New file!
M    Repository revision:	1.3
	/cm/cvsstst/cvs_sudo_test/eigener_test/test_file_3.txt,v
M    Sticky Tag:		(none)
M    Sticky Date:		(none)
M    Sticky Options:	(none)
M 
E cvs server: conflict: test_header.txt created independently by second party
M ===================================================================
M File: test_header.txt  	Status: Unresolved Conflict
M 
M    Working revision:	New file!
M    Repository revision:	1.1
	/cm/cvsstst/cvs_sudo_test/eigener_test/test_header.txt,v
M    Sticky Tag:		(none)
M    Sticky Date:		(none)
M    Sticky Options:	(none)
M 
E cvs server: conflict: test_history.txt created independently by second party
M ===================================================================
M File: test_history.txt 	Status: Unresolved Conflict
M 
M    Working revision:	New file!
M    Repository revision:	1.12
	/cm/cvsstst/cvs_sudo_test/eigener_test/test_history.txt,v
M    Sticky Tag:		(none)
M    Sticky Date:		(none)
M    Sticky Options:	(none)
M 
ok
RESULT> Status WARNINGorg.eclipse.team.cvs.core code=1 The following warnings 
were reported while performing the "cvs status" command. null children=[Status 
WARNINGorg.eclipse.team.cvs.core code=-12 cvs server: conflict: test_file.sam 
created independently by second party null Status 
WARNINGorg.eclipse.team.cvs.core code=-12 cvs server: conflict: test_file.txt 
created independently by second party null Status 
WARNINGorg.eclipse.team.cvs.core code=-12 cvs server: conflict: test_file_3.txt 
created independently by second party null Status 
WARNINGorg.eclipse.team.cvs.core code=-12 cvs server: conflict: test_header.txt 
created independently by second party null Status 
WARNINGorg.eclipse.team.cvs.core code=-12 cvs server: conflict: 
test_history.txt created independently by second party null]
I LOVE YOU
Valid-responses ok error M E Set-sticky Checked-in Mod-time Clear-static-
directory Updated Valid-requests Removed Clear-sticky Update-existing Module-
expansion New-entry Set-static-directory Merged Created Notified Remove-entry 
Template Copy-file
valid-requests
Valid-requests Root Valid-responses valid-requests Repository Directory Max-
dotdot Static-directory Sticky Checkin-prog Update-prog Entry Kopt Checkin-time 
Modified Is-modified UseUnchanged Unchanged Notify Questionable Case Argument 
Argumentx Global_option Gzip-stream wrapper-sendme-rcsOptions Set expand-
modules ci co update diff log rlog add remove update-patches gzip-file-contents 
status rdiff tag rtag import admin export history release watch-on watch-off 
watch-add watch-remove watchers editors init annotate rannotate noop version
ok
Root /cm/cvsstst/cvs_sudo_test
CMD> cvs co -d "eigener_test" -P -A "/cvs_sudo_test/eigener_test"
Argument eigener_test
expand-modules
Module-expansion eigener_test
ok
Argument -d
Argument eigener_test
Argument -P
Argument -A
Argument eigener_test
Directory .
/cm/cvsstst/cvs_sudo_test/
co
Clear-static-directory ./
/cm/cvsstst/cvs_sudo_test/
Clear-sticky eigener_test/
/cm/cvsstst/cvs_sudo_test/eigener_test/
Clear-static-directory eigener_test/
/cm/cvsstst/cvs_sudo_test/eigener_test/
Clear-sticky eigener_test/
/cm/cvsstst/cvs_sudo_test/eigener_test/
E cvs server: Updating eigener_test
Mod-time 13 Feb 2004 17:25:40 -0000
M U eigener_test/test_file.sam
Created eigener_test/
/cm/cvsstst/cvs_sudo_test/eigener_test/test_file.sam
/test_file.sam/1.2//-kb/
u=rw,g=rw,o=rw
66
Mod-time 13 Feb 2004 18:07:27 -0000
M U eigener_test/test_file.txt
Created eigener_test/
/cm/cvsstst/cvs_sudo_test/eigener_test/test_file.txt
/test_file.txt/1.3///
u=rw,g=rw,o=rw
89
Mod-time 13 Feb 2004 17:16:09 -0000
M U eigener_test/test_file_3.txt
Created eigener_test/
/cm/cvsstst/cvs_sudo_test/eigener_test/test_file_3.txt
/test_file_3.txt/1.3///
u=rw,g=rw,o=rw
80
Mod-time 6 Jul 2004 13:45:44 -0000
M U eigener_test/test_header.txt
Created eigener_test/
/cm/cvsstst/cvs_sudo_test/eigener_test/test_header.txt
/test_header.txt/1.1///
u=rw,g=rw,o=rw
124
Mod-time 6 Jul 2004 16:59:04 -0000
M U eigener_test/test_history.txt
Created eigener_test/
/cm/cvsstst/cvs_sudo_test/eigener_test/test_history.txt
/test_history.txt/1.12///
u=rw,g=rw,o=rw
1246
Clear-sticky eigener_test/
/cm/cvsstst/cvs_sudo_test/eigener_test/
Clear-sticky eigener_test/src/
/cm/cvsstst/cvs_sudo_test/eigener_test/src/
Clear-static-directory eigener_test/src/
/cm/cvsstst/cvs_sudo_test/eigener_test/src/
Clear-sticky eigener_test/src/
/cm/cvsstst/cvs_sudo_test/eigener_test/src/
E cvs server: Updating eigener_test/src
Mod-time 6 Jul 2004 14:22:57 -0000
M U eigener_test/src/test_file2.txt
Created eigener_test/src/
/cm/cvsstst/cvs_sudo_test/eigener_test/src/test_file2.txt
/test_file2.txt/1.14///
u=rw,g=rw,o=rw
137
Clear-sticky eigener_test/src/
/cm/cvsstst/cvs_sudo_test/eigener_test/src/
ok
RESULT> Status OKorg.eclipse.team.cvs.core code=0 ok null
I LOVE YOU
Valid-responses ok error M E Set-sticky Checked-in Mod-time Clear-static-
directory Updated Valid-requests Removed Clear-sticky Update-existing Module-
expansion New-entry Set-static-directory Merged Created Notified Remove-entry 
Template Copy-file
valid-requests
Valid-requests Root Valid-responses valid-requests Repository Directory Max-
dotdot Static-directory Sticky Checkin-prog Update-prog Entry Kopt Checkin-time 
Modified Is-modified UseUnchanged Unchanged Notify Questionable Case Argument 
Argumentx Global_option Gzip-stream wrapper-sendme-rcsOptions Set expand-
modules ci co update diff log rlog add remove update-patches gzip-file-contents 
status rdiff tag rtag import admin export history release watch-on watch-off 
watch-add watch-remove watchers editors init annotate rannotate noop version
ok
Root /cm/cvsstst/cvs_sudo_test
CMD> cvs update -d -P "/cvs_sudo_test"
Argument -d
Argument -P
Directory .
/cm/cvsstst/cvs_sudo_test/
Questionable .project
Directory eigener_test
/cm/cvsstst/cvs_sudo_test/eigener_test
Entry /test_file.sam/1.2//-kb/
Unchanged test_file.sam
Entry /test_file.txt/1.3///
Unchanged test_file.txt
Entry /test_file_3.txt/1.3///
Unchanged test_file_3.txt
Entry /test_header.txt/1.1///
Unchanged test_header.txt
Entry /test_history.txt/1.12///
Unchanged test_history.txt
Directory eigener_test/src
/cm/cvsstst/cvs_sudo_test/eigener_test/src
Entry /test_file2.txt/1.14///
Unchanged test_file2.txt
Argument .
Directory .
/cm/cvsstst/cvs_sudo_test/
update
M ? .project
Clear-static-directory ./
/cm/cvsstst/cvs_sudo_test/
E cvs server: Updating .
Clear-sticky CVSROOT/
/cm/cvsstst/cvs_sudo_test/CVSROOT/
Clear-static-directory CVSROOT/
/cm/cvsstst/cvs_sudo_test/CVSROOT/
E cvs server: Updating CVSROOT
E cvs server: failed to create lock directory for 
`/cm/cvsstst/cvs_sudo_test/CVSROOT' 
(/cm/cvsstst/cvs_sudo_test/CVSROOT/#cvs.lock): Permission denied
E cvs server: failed to obtain dir lock in repository 
`/cm/cvsstst/cvs_sudo_test/CVSROOT'
E cvs [server aborted]: read lock failed - giving up
error  
RESULT> Status ERRORorg.eclipse.team.cvs.core code=-10 The server reported an 
error while performing the "cvs update" command. null children=[Status 
ERRORorg.eclipse.team.cvs.core code=-14 cvs server: failed to create lock 
directory for `/cm/cvsstst/cvs_sudo_test/CVSROOT' 
(/cm/cvsstst/cvs_sudo_test/CVSROOT/#cvs.lock): Permission denied null Status 
ERRORorg.eclipse.team.cvs.core code=-14 cvs server: failed to obtain dir lock 
in repository `/cm/cvsstst/cvs_sudo_test/CVSROOT' null Status 
ERRORorg.eclipse.team.cvs.core code=-14 cvs [server aborted]: read lock failed -
 giving up null]
!ENTRY org.eclipse.team.cvs.ui 4 0 Aug 25, 2004 11:34:57.520
!MESSAGE The server reported an error while performing the "cvs update" command.
!STACK 1
org.eclipse.team.internal.ccvs.core.connection.CVSServerException: The server 
reported an error while performing the "cvs update" command.
	at org.eclipse.team.internal.ccvs.core.CVSTeamProvider$12.run
(CVSTeamProvider.java:909)
	at org.eclipse.team.internal.ccvs.core.resources.EclipseSynchronizer.run
(EclipseSynchronizer.java:1300)
	at org.eclipse.team.internal.ccvs.core.resources.EclipseFolder$3.run
(EclipseFolder.java:302)
	at org.eclipse.core.internal.resources.Workspace.run
(Workspace.java:1595)
	at org.eclipse.team.internal.ccvs.core.resources.EclipseFolder.run
(EclipseFolder.java:299)
	at org.eclipse.team.internal.ccvs.core.client.Session.internalRun
(Session.java:209)
	at org.eclipse.team.internal.ccvs.core.client.Session.run
(Session.java:158)
	at org.eclipse.team.internal.ccvs.core.CVSTeamProvider.update
(CVSTeamProvider.java:903)
	at org.eclipse.team.internal.ccvs.ui.actions.UpdateAction$1.execute
(UpdateAction.java:54)
	at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run
(WorkspaceModifyOperation.java:71)
	at org.eclipse.core.internal.resources.Workspace.run
(Workspace.java:1595)
	at org.eclipse.ui.actions.WorkspaceModifyOperation.run
(WorkspaceModifyOperation.java:85)
	at org.eclipse.team.internal.ccvs.ui.repo.RepositoryManager.run
(RepositoryManager.java:802)
	at org.eclipse.team.internal.ccvs.ui.actions.CVSAction$1.run
(CVSAction.java:241)
	at org.eclipse.jface.operation.ModalContext$ModalContextThread.run
(ModalContext.java:101)
!ENTRY org.eclipse.team.cvs.core 4 -10 Aug 25, 2004 11:34:57.530
!MESSAGE The server reported an error while performing the "cvs update" command.
!SUBENTRY 1 org.eclipse.team.cvs.core 4 -14 Aug 25, 2004 11:34:57.530
!MESSAGE cvs_sudo_test: cvs server: failed to create lock directory for 
`/cm/cvsstst/cvs_sudo_test/CVSROOT' 
(/cm/cvsstst/cvs_sudo_test/CVSROOT/#cvs.lock): Permission denied
!SUBENTRY 1 org.eclipse.team.cvs.core 4 -14 Aug 25, 2004 11:34:57.530
!MESSAGE cvs_sudo_test: cvs server: failed to obtain dir lock in repository 
`/cm/cvsstst/cvs_sudo_test/CVSROOT'
!SUBENTRY 1 org.eclipse.team.cvs.core 4 -14 Aug 25, 2004 11:34:57.530
!MESSAGE cvs_sudo_test: cvs [server aborted]: read lock failed - giving up
Comment 8 Michael Valenta CLA 2004-08-25 09:35:38 EDT
There is something quite odd about the trac you have provided. You are 
checking out the module "eigener_test" and the checkout seems to have gone 
well. However, the update you are doing seems to be on a project that 
contain "eigener_test" asw a subdirectory. Is this correct? Can you give me 
the details of the operatios you performed so I can match them to the trace
(i.e. the trace doesn't contain that information).
Comment 9 brigitte.steinert CLA 2004-08-25 10:49:49 EDT
It's right what you said. 
The user check out some modules from a repository to a project (here 
eigener_test from repository cvs_sudo_test in project cvs_sudo_test). After 
some time they want to make an update of all the modules checked out, so they 
make team update of the project, that means update all the modules included in 
the project (here update project cvs_sudo_test - and therefore update module 
eigener_test).
Comment 10 Michael Valenta CLA 2004-08-25 10:55:17 EDT
And how did they create the project "cvs_sudo_test"?
Comment 11 brigitte.steinert CLA 2004-08-25 11:04:22 EDT
Create new project (file - new - project) - simple project - name the project - 
finish.
Comment 12 Michael Valenta CLA 2004-08-25 11:24:18 EDT
Sorry, I should have stated my question better. How did the project get 
created and shared with the repository root (as it appears to be from the 
trace). It would be easiest if you gave me a complete explanation of all the 
steps that you take to cause the problem to happen and provide as much detail 
as possible. I could then match this up with the trace to determine where the 
problem is.
Comment 13 brigitte.steinert CLA 2004-08-25 11:50:59 EDT
There are only a few steps

cvs-view:           - add a new cvs-repository (/cm/cvsstst/cvs_sudo_test)
resource-view:      - create a simple project (cvs_sudo_test)
                      in my tests the project is named as the repository
cvs-view:           - expand the head (from cvs_sudo_test)
                    - mark a module (eigener_test)
                    - check out as - in an existing project 
                      this is checkout 
                      /cm/cvsstst/cvs_sudo_test/eigener_test
                      in project cvs_sudo_test)
resource-view:      - mark project cvs_sudo_test
                    - team update 
that's all

Comment 14 Michael Valenta CLA 2004-08-25 13:17:59 EDT
OK, I've figured out what is going wrong. The repository you are using is 
configured to provide a top level admin directory (i.e. the 
line "TopLevelAdmin=yes" appears in your CVSROOT/config file). When you do a 
checkout of the "eigener_test" module into the simple project, Eclipse is 
receiving the top level admin directory and assigning it to the parent 
project. Eclipse CVS does ignore the top-level-admin when it is checking out a 
project (i.e. when the admin directory is the root of the repository). 
However, it does not when the top-level-admin folder is a project or 
subfolder. 

It's not clear to me what, if anything, we want to do here. The implication of 
configuring a repository to use topLevelAdmin is that the users will be able 
to perform an update on multiple projects but will not be able to use the -d 
option to fetch the absent directories. The current workarounds are to turn 
off topLevelAdmins, turn off fetch absent directories for the project or only 
perform updates on the subfolder that was checked out. Alternatively, the user 
could define a module in the CVSROOT/modules file that created a project that 
had the proper structure.

The problem would be lessened if the update command itself allowed the user to 
decide whether to fetch absent directories or not.
Comment 15 brigitte.steinert CLA 2004-09-06 10:44:32 EDT
I'm a litle late, but last week I wasn't here. First thank you for your answer. 
Now I need to discuss the situation here. For this, please can you tell me the 
reason why eclipse version 3... handles the situation in another way as version 
2.1.x. Perhaps this will help us to find the right solution. 
Comment 16 Michael Valenta CLA 2004-09-07 09:39:21 EDT
Improvments were made to CVS checkout in 3.0. Unfortunately, these 
improvements had the unforseen consequences you are experiencing.
Comment 17 Eclipse Webmaster CLA 2019-09-06 16:09:57 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.