Hi,

did you run Graylog (or the build process) as another user? 
The AccessDeniedException looks as if the currently used system user is not 
allowed to access the mentioned file. As a quick fix, you could also simply 
run `mvn clean` to remove the temporary build files.

Cheers,
Jochen

On Tuesday, 7 July 2015 11:08:10 UTC+2, blind wrote:
>
> I changed the MessageCountAlertCondition to search for "level:3" instead 
> of "*", and was doing mvn compile and install yesterday and everything was 
> ok, I tried again this morning after switching it for few times, and now I 
> get this:
>
>
> 2015-07-07 10:43:06,591 WARN : [] 
> org.elasticsearch.gateway.local.state.meta - [Kraven the Hunter] [graylog]: 
> failed to write index state
> java.nio.file.AccessDeniedException: 
> target/elasticsearch-test-data/impermanent-db/elasticsearch/nodes/2/indices/graylog/_state/state-2.st.tmp
>     at 
> sun.nio.fs.UnixException.translateToIOException(UnixException.java:84)
>     at 
> sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
>     at 
> sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
>     at 
> sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214)
>     at 
> java.nio.file.spi.FileSystemProvider.newOutputStream(FileSystemProvider.java:430)
>     at java.nio.file.Files.newOutputStream(Files.java:172)
>     at 
> org.elasticsearch.gateway.local.state.meta.MetaDataStateFormat.write(MetaDataStateFormat.java:103)
>     at 
> org.elasticsearch.gateway.local.state.meta.LocalGatewayMetaState.writeIndex(LocalGatewayMetaState.java:359)
>     at 
> org.elasticsearch.gateway.local.state.meta.LocalGatewayMetaState.clusterChanged(LocalGatewayMetaState.java:225)
>     at 
> org.elasticsearch.gateway.local.LocalGateway.clusterChanged(LocalGateway.java:215)
>     at 
> org.elasticsearch.cluster.service.InternalClusterService$UpdateTask.run(InternalClusterService.java:467)
>     at 
> org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedEsThreadPoolExecutor.java:188)
>     at 
> org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:158)
>     at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>     at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>     at java.lang.Thread.run(Thread.java:745)
> 2015-07-07 10:43:06,591 WARN : [] org.elasticsearch.indices.cluster - 
> [Kraven the Hunter] [[graylog][3]] marking and sending shard failed due to 
> [failed recovery]
> org.elasticsearch.index.gateway.IndexShardGatewayRecoveryException: 
> [graylog][3] failed recovery
>     at 
> org.elasticsearch.index.gateway.IndexShardGatewayService$1.run(IndexShardGatewayService.java:162)
>     at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>     at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>     at java.lang.Thread.run(Thread.java:745)
> Caused by: org.elasticsearch.ElasticsearchException: failed to copy 
> recovery file
>     at 
> org.elasticsearch.index.gateway.local.LocalIndexShardGateway.recover(LocalIndexShardGateway.java:212)
>     at 
> org.elasticsearch.index.gateway.IndexShardGatewayService$1.run(IndexShardGatewayService.java:112)
>     ... 3 more
> Caused by: java.nio.file.AccessDeniedException: 
> target/elasticsearch-test-data/impermanent-db/elasticsearch/nodes/2/indices/graylog/3/translog/translog-1436257605494.recovering
>     at 
> sun.nio.fs.UnixException.translateToIOException(UnixException.java:84)
>     at 
> sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
>     at 
> sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
>     at sun.nio.fs.UnixCopyFile.copyFile(UnixCopyFile.java:245)
>     at sun.nio.fs.UnixCopyFile.copy(UnixCopyFile.java:579)
>     at 
> sun.nio.fs.UnixFileSystemProvider.copy(UnixFileSystemProvider.java:253)
>     at java.nio.file.Files.copy(Files.java:1227)
>     at 
> org.elasticsearch.index.gateway.local.LocalIndexShardGateway.recover(LocalIndexShardGateway.java:208)
>     ... 4 more
> 2015-07-07 10:43:06,591 WARN : [] org.elasticsearch.cluster.action.shard - 
> [Kraven the Hunter] [graylog][3] received shard failed for [graylog][3], 
> node[wwUnWpFRRnykHLW9x4c1TQ], [P], s[INITIALIZING], indexUUID 
> [vsXBVp0uQbGVXGArXpoIqg], reason [shard failure [failed 
> recovery][IndexShardGatewayRecoveryException[[graylog][3] failed recovery]; 
> nested: ElasticsearchException[failed to copy recovery file]; nested: 
> AccessDeniedException[target/elasticsearch-test-data/impermanent-db/elasticsearch/nodes/2/indices/graylog/3/translog/translog-1436257605494.recovering];
>  
> ]]
>
> It goes for much longer, but in the end just says that build failed.
>

-- 
You received this message because you are subscribed to the Google Groups 
"graylog2" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to