brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sam Corbett (JIRA)" <j...@apache.org>
Subject [jira] [Created] (BROOKLYN-79) Error when using copy-state command
Date Tue, 14 Oct 2014 10:15:34 GMT
Sam Corbett created BROOKLYN-79:
-----------------------------------

             Summary: Error when using copy-state command
                 Key: BROOKLYN-79
                 URL: https://issues.apache.org/jira/browse/BROOKLYN-79
             Project: Brooklyn
          Issue Type: Bug
            Reporter: Sam Corbett


When using the {{copy-state}} command:
{code}
sam@v:~/code/brooklyn.io/brooklyn (dns-entity *$%)
$ ~/code/brooklyn.io/alt-brooklyn/usage/dist/target/brooklyn-dist/bin/brooklyn copy-state
--destinationDir /tmp/bp --persistenceLocation  location
2014-10-14 11:11:22,985 INFO  Retrieving and copying persisted state to /tmp/bp
 _                     _    _
| |__  _ __ ___   ___ | | _| |_   _ _ __ (R)
| '_ \| '__/ _ \ / _ \| |/ / | | | | '_ \
| |_) | | | (_) | (_) |   <| | |_| | | | |
|_.__/|_|  \___/ \___/|_|\_\_|\__, |_| |_|
                              |___/             0.7.0-SNAPSHOT

2014-10-14 11:11:28,614 INFO  High availability disabled
2014-10-14 11:11:32,327 INFO  Persisting state to /tmp/bp
2014-10-14 11:11:32,339 ERROR Startup error: Error rebinding to persisted state: Writes not
allowed in brooklyn.entity.rebind.persister.BrooklynMementoPersisterToObjectStore@2473cc0e
java.lang.IllegalStateException: Writes not allowed in brooklyn.entity.rebind.persister.BrooklynMementoPersisterToObjectStore@2473cc0e
        at brooklyn.entity.rebind.persister.BrooklynMementoPersisterToObjectStore.checkWritesAllowed(BrooklynMementoPersisterToObjectStore.java:446)
~[brooklyn-core-0.7.0-SNAPSHOT.jar:0.7.0-SNAPSHOT]
Startup error: Error rebinding to persisted state: Writes not allowed in brooklyn.entity.rebind.persister.BrooklynMementoPersisterToObjectStore@2473cc0e
2014-10-14 11:11:32,365 INFO  terminateOnShutdown of LocalManagementContext[V51sCwvk-R73QbZd4]
returned error (continuing): java.lang.IllegalArgumentException: /tmp/brooklyn-osgi-cache-FDuE/bundle119/version0.0
does not exist
java.lang.IllegalArgumentException: /tmp/brooklyn-osgi-cache-FDuE/bundle119/version0.0 does
not exist
        at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1637) ~[commons-io-2.4.jar:2.4]
{code}

The exception thrown is:
{code}
2014-10-14 11:11:32,338 DEBUG b.launcher.BrooklynLauncher [main]: Error rebinding to persisted
state (rethrowing): java.lang.IllegalStateException: Writes not allowed in brooklyn.entity.rebind.persister.BrooklynMementoPersisterToObjectStore@2473cc0e
java.lang.IllegalStateException: Writes not allowed in brooklyn.entity.rebind.persister.BrooklynMementoPersisterToObjectStore@2473cc0e
	at brooklyn.entity.rebind.persister.BrooklynMementoPersisterToObjectStore.checkWritesAllowed(BrooklynMementoPersisterToObjectStore.java:446)
~[brooklyn-core-0.7.0-SNAPSHOT.jar:0.7.0-SNAPSHOT]
	at brooklyn.entity.rebind.persister.BrooklynMementoPersisterToObjectStore.checkpoint(BrooklynMementoPersisterToObjectStore.java:452)
~[brooklyn-core-0.7.0-SNAPSHOT.jar:0.7.0-SNAPSHOT]
	at brooklyn.launcher.BrooklynLauncher.persistState(BrooklynLauncher.java:497) ~[brooklyn-launcher-0.7.0-SNAPSHOT.jar:0.7.0-SNAPSHOT]
	at brooklyn.cli.Main$CopyStateCommand.call(Main.java:768) [brooklyn-cli-0.7.0-SNAPSHOT.jar:0.7.0-SNAPSHOT]
	at brooklyn.cli.Main$CopyStateCommand.call(Main.java:1) [brooklyn-cli-0.7.0-SNAPSHOT.jar:0.7.0-SNAPSHOT]
	at brooklyn.cli.AbstractMain.execCli(AbstractMain.java:200) [brooklyn-cli-0.7.0-SNAPSHOT.jar:0.7.0-SNAPSHOT]
	at brooklyn.cli.AbstractMain.execCli(AbstractMain.java:192) [brooklyn-cli-0.7.0-SNAPSHOT.jar:0.7.0-SNAPSHOT]
	at brooklyn.cli.Main.main(Main.java:106) [brooklyn-cli-0.7.0-SNAPSHOT.jar:0.7.0-SNAPSHOT]
{code}

It would seem that two different instances of {{BrooklynMementoPersisterToObjectStore}} are
used and {{enableWriteAccess}} is not called on the second.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message