Jump to content

Crucible 3.6.2 Plugin issue: revid not found


mengl

Recommended Posts

Hi,

 

I currently tried to get the PlasticSCM plugin

 

crucible-plasticscm-plugin-4.0.jar

 

working on Crucible 3.6.2 Windows Server 2008 R2 Standard.

I installed the Plugin via "Upload - add on".

 

After installation and configuration of PlasticSCM 5.0.44.629 - Gouda and restart of the Crucible Server I configured the Plugin for my repository. Unfortunatly I always get the error message on entering

 

Plastic SCM Global Configuration

 

Connection test failed: Unable to communicate with Plastic SCM command line shell - Error running command line client on shell mode. The 'cm shell' command was launched but the process terminated abnormally.

 

cm Path: cm

 

Any ideas?

Link to comment
Share on other sites

server debug log:

 

2015-01-08 16:43:16,233 ERROR [qtp1683662486-151 ] PlasticSCMJavaCore PlasticShell-waitShellReady - Sync error, max timeout reached
2015-01-08 16:43:16,233 ERROR [qtp1683662486-151 ] PlasticSCMJavaCore PlasticShell-waitShellReady - Sync error, max timeout reached
2015-01-08 16:43:16,233 ERROR [qtp1683662486-151 ] PlasticSCMJavaCore PlasticShell-waitShellReady - Sync error, max timeout reached
2015-01-08 16:43:16,233 ERROR [qtp1683662486-151 ] PlasticSCMJavaCore PlasticShell-waitShellReady - Sync error, max timeout reached
2015-01-08 16:43:16,233 ERROR [qtp1683662486-151 ] PlasticSCMJavaCore PlasticShell-waitShellReady - Sync: deleting sync file
2015-01-08 16:43:16,233 ERROR [qtp1683662486-151 ] PlasticSCMJavaCore PlasticShell-waitShellReady - Sync: deleting sync file
2015-01-08 16:43:16,233 ERROR [qtp1683662486-151 ] PlasticSCMJavaCore PlasticShell-waitShellReady - Sync: deleting sync file
2015-01-08 16:43:16,233 ERROR [qtp1683662486-151 ] PlasticSCMJavaCore PlasticShell-waitShellReady - Sync: deleting sync file
2015-01-08 16:43:16,249 ERROR [qtp1683662486-151 ] PlasticSCMJavaCore PlasticShell-waitShellReady - Sync file deleted
2015-01-08 16:43:16,249 ERROR [qtp1683662486-151 ] PlasticSCMJavaCore PlasticShell-waitShellReady - Sync file deleted
2015-01-08 16:43:16,249 ERROR [qtp1683662486-151 ] PlasticSCMJavaCore PlasticShell-waitShellReady - Sync file deleted
2015-01-08 16:43:16,249 ERROR [qtp1683662486-151 ] PlasticSCMJavaCore PlasticShell-waitShellReady - Sync file deleted
2015-01-08 16:43:16,249 ERROR [qtp1683662486-151 ] PlasticSCMJavaCore PlasticShell-launchShell - Exception: Unable to communicate with Plastic SCM command line shell - Error running command line client on shell mode. The 'cm shell' command was launched but the process terminated abnormally.
2015-01-08 16:43:16,249 ERROR [qtp1683662486-151 ] PlasticSCMJavaCore PlasticShell-launchShell - Exception: Unable to communicate with Plastic SCM command line shell - Error running command line client on shell mode. The 'cm shell' command was launched but the process terminated abnormally.
2015-01-08 16:43:16,249 ERROR [qtp1683662486-151 ] PlasticSCMJavaCore PlasticShell-launchShell - Exception: Unable to communicate with Plastic SCM command line shell - Error running command line client on shell mode. The 'cm shell' command was launched but the process terminated abnormally.
2015-01-08 16:43:16,249 ERROR [qtp1683662486-151 ] PlasticSCMJavaCore PlasticShell-launchShell - Exception: Unable to communicate with Plastic SCM command line shell - Error running command line client on shell mode. The 'cm shell' command was launched but the process terminated abnormally.
2015-01-08 16:43:17,590 ERROR [qtp1683662486-158 ] PlasticSCMJavaCore PlasticShell-waitShellReady - Sync error, max timeout reached
2015-01-08 16:43:17,590 ERROR [qtp1683662486-158 ] PlasticSCMJavaCore PlasticShell-waitShellReady - Sync error, max timeout reached
2015-01-08 16:43:17,590 ERROR [qtp1683662486-158 ] PlasticSCMJavaCore PlasticShell-waitShellReady - Sync error, max timeout reached
2015-01-08 16:43:17,590 ERROR [qtp1683662486-158 ] PlasticSCMJavaCore PlasticShell-waitShellReady - Sync error, max timeout reached
2015-01-08 16:43:17,590 ERROR [qtp1683662486-158 ] PlasticSCMJavaCore PlasticShell-waitShellReady - Sync: deleting sync file
2015-01-08 16:43:17,590 ERROR [qtp1683662486-158 ] PlasticSCMJavaCore PlasticShell-waitShellReady - Sync: deleting sync file
2015-01-08 16:43:17,590 ERROR [qtp1683662486-158 ] PlasticSCMJavaCore PlasticShell-waitShellReady - Sync: deleting sync file
2015-01-08 16:43:17,590 ERROR [qtp1683662486-158 ] PlasticSCMJavaCore PlasticShell-waitShellReady - Sync: deleting sync file
2015-01-08 16:43:17,590 ERROR [qtp1683662486-158 ] PlasticSCMJavaCore PlasticShell-waitShellReady - Sync file deleted
2015-01-08 16:43:17,590 ERROR [qtp1683662486-158 ] PlasticSCMJavaCore PlasticShell-waitShellReady - Sync file deleted
2015-01-08 16:43:17,590 ERROR [qtp1683662486-158 ] PlasticSCMJavaCore PlasticShell-waitShellReady - Sync file deleted
2015-01-08 16:43:17,590 ERROR [qtp1683662486-158 ] PlasticSCMJavaCore PlasticShell-waitShellReady - Sync file deleted
2015-01-08 16:43:17,590 ERROR [qtp1683662486-158 ] PlasticSCMJavaCore PlasticShell-launchShell - Exception: Unable to communicate with Plastic SCM command line shell - Error running command line client on shell mode. The 'cm shell' command was launched but the process terminated abnormally.
2015-01-08 16:43:17,590 ERROR [qtp1683662486-158 ] PlasticSCMJavaCore PlasticShell-launchShell - Exception: Unable to communicate with Plastic SCM command line shell - Error running command line client on shell mode. The 'cm shell' command was launched but the process terminated abnormally.
2015-01-08 16:43:17,590 ERROR [qtp1683662486-158 ] PlasticSCMJavaCore PlasticShell-launchShell - Exception: Unable to communicate with Plastic SCM command line shell - Error running command line client on shell mode. The 'cm shell' command was launched but the process terminated abnormally.
2015-01-08 16:43:17,590 ERROR [qtp1683662486-158 ] PlasticSCMJavaCore PlasticShell-launchShell - Exception: Unable to communicate with Plastic SCM command line shell - Error running command line client on shell mode. The 'cm shell' command was launched but the process terminated abnormally.
2015-01-08 16:43:26,638 ERROR [qtp1683662486-157 ] PlasticSCMJavaCore PlasticShell-waitShellReady - Sync error, max timeout reached
2015-01-08 16:43:26,638 ERROR [qtp1683662486-157 ] PlasticSCMJavaCore PlasticShell-waitShellReady - Sync error, max timeout reached
2015-01-08 16:43:26,638 ERROR [qtp1683662486-157 ] PlasticSCMJavaCore PlasticShell-waitShellReady - Sync error, max timeout reached
2015-01-08 16:43:26,638 ERROR [qtp1683662486-157 ] PlasticSCMJavaCore PlasticShell-waitShellReady - Sync error, max timeout reached
2015-01-08 16:43:26,638 ERROR [qtp1683662486-157 ] PlasticSCMJavaCore PlasticShell-waitShellReady - Sync: deleting sync file
2015-01-08 16:43:26,638 ERROR [qtp1683662486-157 ] PlasticSCMJavaCore PlasticShell-waitShellReady - Sync: deleting sync file
2015-01-08 16:43:26,638 ERROR [qtp1683662486-157 ] PlasticSCMJavaCore PlasticShell-waitShellReady - Sync: deleting sync file
2015-01-08 16:43:26,638 ERROR [qtp1683662486-157 ] PlasticSCMJavaCore PlasticShell-waitShellReady - Sync: deleting sync file
2015-01-08 16:43:26,638 ERROR [qtp1683662486-157 ] PlasticSCMJavaCore PlasticShell-waitShellReady - Sync file deleted
2015-01-08 16:43:26,638 ERROR [qtp1683662486-157 ] PlasticSCMJavaCore PlasticShell-waitShellReady - Sync file deleted
2015-01-08 16:43:26,638 ERROR [qtp1683662486-157 ] PlasticSCMJavaCore PlasticShell-waitShellReady - Sync file deleted
2015-01-08 16:43:26,638 ERROR [qtp1683662486-157 ] PlasticSCMJavaCore PlasticShell-waitShellReady - Sync file deleted
2015-01-08 16:43:26,638 ERROR [qtp1683662486-157 ] PlasticSCMJavaCore PlasticShell-launchShell - Exception: Unable to communicate with Plastic SCM command line shell - Error running command line client on shell mode. The 'cm shell' command was launched but the process terminated abnormally.
2015-01-08 16:43:26,638 ERROR [qtp1683662486-157 ] PlasticSCMJavaCore PlasticShell-launchShell - Exception: Unable to communicate with Plastic SCM command line shell - Error running command line client on shell mode. The 'cm shell' command was launched but the process terminated abnormally.
2015-01-08 16:43:26,654 ERROR [qtp1683662486-157 ] PlasticSCMJavaCore PlasticShell-launchShell - Exception: Unable to communicate with Plastic SCM command line shell - Error running command line client on shell mode. The 'cm shell' command was launched but the process terminated abnormally.
2015-01-08 16:43:26,654 ERROR [qtp1683662486-157 ] PlasticSCMJavaCore PlasticShell-launchShell - Exception: Unable to communicate with Plastic SCM command line shell - Error running command line client on shell mode. The 'cm shell' command was launched but the process terminated abnormally.
 

Link to comment
Share on other sites

Hi the crucible plugin uses the "cm shell" in order to execute "cm" commands.

 

Crucible knows that the "cm shell" is listening when a special file is created at the system temporal directory ("java.io.tmpdir").

 

Sometimes the temporal directory is soooooo populated with temporal/unused files the create file and read file operation is very slow, so slow that it exceeds the 40s timeout.

 

I think you can clean the system temporal directory and try again.

Link to comment
Share on other sites

Hi,

 

In MS Windows the temporary directory is set by the environment variable TEMP. In XP, the temporary directory was set per-user as Local Settings\Temp.

 

The Java "java.io.tmpdir" constant will use the "TEMP" environment variable value.

Link to comment
Share on other sites

Ok,

 

we can try the following points:

 

1) Make sure the "cm" tool is correctly configured for the user running crucible. To test it open a terminal/cmd logged as the user that executes the  crucible service and run a "cm lrep" command, the command should return you the repositories of the Plastic SCM server.

 

2) Change the TEMP environment variable value to use another directory. Then restart crucible and try again.

Link to comment
Share on other sites

that was the issue. Crucible was running as a SYSTEM process and wasnt able to start cm with the right config

 

now it looks better but I get another error. After creating a Review and selecting a changeset I get the following errors:

 

Error
The file "Engine.cpp" was not able to be displayed: com.cenqua.crucible.model.FileRevisionException: java.io.IOException: com.codicesoftware.plastic.core.PlasticException: The specified revision was not found revid:7234@xxxx@xxxx:8087;C:\Atlassian\Data\fecru\var\tmp\plastictmp1420807481043830496822160049319cat
Error 2
Server Error
Error 3

URL: /json/cru/RVOX-4/loadFrxAjax

A javax.el.ELException was encountered

com.cenqua.crucible.model.FileRevisionException: java.io.IOException: com.codicesoftware.plastic.core.PlasticException: The specified revision was not found revid:7235@xxxx@xxxx:8087;C:\Atlassian\Data\fecru\var\tmp\plastictmp14208074826495700569732952997817cat
java.io.IOException: com.codicesoftware.plastic.core.PlasticException: The specified revision was not found revid:7235@xxx@xxxx:8087;C:\Atlassian\Data\fecru\var\tmp\plastictmp14208074826495700569732952997817cat
com.codicesoftware.plastic.core.PlasticException: The specified revision was not found revid:7235@xxx@xxxx:8087;C:\Atlassian\Data\fecru\var\tmp\plastictmp14208074826495700569732952997817cat
The specified revision was not found revid:7235@xxxx@xxxxx:8087;C:\Atlassian\Data\fecru\var\tmp\plastictmp14208074826495700569732952997817cat
Error 4
The file "TemplateEngine.h" was not able to be displayed: com.cenqua.crucible.model.FileRevisionException: java.io.IOException: com.codicesoftware.plastic.core.PlasticException: The specified revision was not found revid:7236@xxxx@xxxx:8087;C:\Atlassian\Data\fecru\var\tmp\plastictmp14208074843191875124981667242637cat
Error 5
The file "Storage.cpp" was not able to be displayed: com.cenqua.crucible.model.FileRevisionException: java.io.IOException: com.codicesoftware.plastic.core.PlasticException: The specified revision was not found revid:7263@xxxxx@xxxxx:8087;C:\Atlassian\Data\fecru\var\tmp\plastictmp14208074851923760315663581010400cat
 
 
Any Idea?
Link to comment
Share on other sites

Hi,

 

You are ggeting a revision not found error. Could you run?

 

cm cat revid:7234@xxxx@xxxx:8087

 

Have you configured a replicated repository? Maybe the issue is that it doesn´t have all the necessary information:

 

Two potential problems when working against a replicated repository:

  • Changesets may appear disordered, as the Crucible API handles changeset IDs. To request a new page, it provides the oldest and newest changesets to show, the range, not based on dates at all. If some changests were created due to replication then its date may be newer than a local changeset.
  • The plugin handles a cache of changests already loaded to be faster. If the parent changests calculated are not replicated, then some errors will appear in the log (not shown to the user, anyway). The performance will be a little bit worse than in a central repository.

 

Regards,

Carlos

Link to comment
Share on other sites

Hi Carlos,

 

we do not use replicated repositories.

 

I tried cm cat revid:7234@xxxx@xxxx:8087 and indeed I am getting a revision not found error.

 

I just played around a bit with the cm cat command and found out that the revid is not valid:

 

we do not have 7234 as an revision id we have 77234, that means it seems that the revision id is too short.

 

I queried the revision numbers by using

 

cm cat . --debug

 

in the appropriate source directory

 

Cheers,

Michael

Link to comment
Share on other sites

Thx Carlos, I just saw one more thing:

 

There are no branches to select on adding content to a review.

 

Create a new review

try to add a branch to the review

 

-> on the add branches to the review I am unable to select my plasticscm repository and as a consequence i am not able to select a branch

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...