[#CARBON-6503] Checkin/out client doesn`t work after

advertisement
[CARBON-6503] Checkin/out client doesn't work after registry separation. Created:
05/Mar/10 Updated: 06/Jun/14 Resolved: 27/Mar/10
Status:
Project:
Component/s:
Affects
Version/s:
Fix Version/s:
Closed
WSO2 Carbon
None
3.0.0
Type:
Reporter:
Resolution:
Labels:
Remaining
Estimate:
Time Spent:
Original
Estimate:
Environment:
Bug
krishantha Samaraweera
Fixed
None
Not Specified
Severity:
Estimated
Complexity:
Major
Moderate
3.0.0
Priority:
Assignee:
Votes:
Highest
Dimuthu Gamage
0
Not Specified
Not Specified
pre-beta2
Description
$subject.
Comments
Comment by Dimuthu Gamage [ 13/Mar/10 ]
fixed
Comment by krishantha Samaraweera [ 24/Mar/10 ]
Hi Dimuthu,
I tried to checkout a separated registry and checkin it to another instance. But checkin was
failed.
How to reproduce:
===========
1. Mount remote registry
<remoteInstance url="https://localhost:9443/registry">
<id>instanceidJDBC</id>
<dbConfig>wso2registry2</dbConfig>
<readOnly>false</readOnly>
<registryRoot>/</registryRoot>
</remoteInstance>
<mount path="/_system/mymountJDBC" overwrite="true">
<instanceId>instanceidJDBC</instanceId>
<targetPath>/_system/nodes</targetPath>
</mount>
2. put few resources to mounted location.
3. checkout the root.
sh checkin-client.sh co https://10.100.1.128:9445/registry -u admin -p secret -d uuuu9445
4. checkin to another instance
sh checkin-client.sh ci https://10.100.1.128:9449/registry -u admin -p secret -d uuuu9445
Once checkin I got the following error.
krishantha@krishantha-laptop:~/Desktop/Beta10/wso2greg-3.5.0-SNAPSHOT/bin$ sh checkinclient.sh ci https://10.100.1.128:9449/registry -u admin -p admin -d uuuu9445
When you are 'checking in' resources in the registry of the given path will be replaced with your
local changes.
Are you sure you want to continue? [yes/no] (default no)
yes
log4j:WARN No appenders could be found for logger
(org.apache.axiom.om.impl.llom.OMElementImpl).
log4j:WARN Please initialize the log4j system properly.
Error in restoring the path. Make sure the registry is up and running Or the username, password
is correct! and check the user have the WRITE permission to the path.
path: /
registry url: https://10.100.1.128:9449/registry
usernameadmin
org.wso2.registry.checkin.CheckinClientException:
org.wso2.carbon.registry.core.exceptions.RegistryException: Restoring to / failed.
at org.wso2.registry.checkin.Checkin.restoreFromFileSystem(Checkin.java:152)
at org.wso2.registry.checkin.Checkin.execute(Checkin.java:76)
at org.wso2.registry.checkin.Client.execute(Client.java:140)
at org.wso2.registry.checkin.Client.main(Client.java:26)
Caused by: org.wso2.carbon.registry.core.exceptions.RegistryException: Restoring to / failed.
at org.wso2.carbon.registry.app.RemoteRegistry.restore(RemoteRegistry.java:1566)
at org.wso2.carbon.registry.app.RemoteRegistry.restore(RemoteRegistry.java:1506)
at org.wso2.registry.checkin.Checkin.restoreFromFileSystem(Checkin.java:147)
... 3 more
Comment by Dimuthu Gamage [ 25/Mar/10 ]
Hi Krishantha,
Seems like your build is little old. (now the exception is not shown in the console, now it
directly write to a log file). In the latest build I checked your configuration and it is working,
please verify this with an updated pack (I did some fixes related to this on 21st Sunday).
Thanks
Dimuthu
Comment by krishantha Samaraweera [ 26/Mar/10 ]
Hi Dumuthu,
Verification done again in beta2 build.
Issue seems to be still there. I can not checkin to another instance getting the below error.
I am trying to checkout a registry instance which has one mounted connection. then I try to
checkin again to another registry instance.
krishantha@krishantha-laptop:~/Desktop/beta2/test123/wso2greg-3.5.0/bin$ sh checkinclient.sh ci https://127.0.0.1:9445/registry -u admin -p admin -d 99999
When you are 'checking in' resources in the registry of the given path will be replaced with your
local changes.
Are you sure you want to continue? [yes/no] (default no)
yes
Error in restoring the path. Make sure the registry is up and running Or the username, password
is correct! and check the user have the WRITE permission to the path.
path: /
registry url: https://127.0.0.1:9445/registry
username: admin
krishantha@krishantha-laptop:~/Desktop/beta2/test123/wso2greg-3.5.0/bin$
Thanks,
Krishantha.
Comment by Dimuthu Gamage [ 27/Mar/10 ]
fixed. This was due to a check that existence of remote instances and discontinue the operation
(since the remote instances are no longer there in the new instance, this is shown). for checkin
client, we continue ignore mounts.
Comment by krishantha Samaraweera [ 30/Mar/10 ]
Verification done in beta3
Generated at Wed Feb 10 12:34:16 IST 2016 using JIRA 6.0.1#6096sha1:e4a48bd73c6b8a4d99c824976ce5808b4c85857d.
Download