Had Solr running as a Windows service under the generic 'system' account.
Tried running under a user account with elevated permissions AND also applying 
that account to have full security control over the folder in question and 
still see the same permission error.

Full error logged:

ERROR (qtp1327871893-22) [c:wcrs s:shard3 r:core_node10 
x:wcrs_shard3_replica_n9] o.a.s.h.ReplicationHandler Exception while creating a 
snapshot => java.security.AccessControlException: access denied 
("java.io.FilePermission" "D:\Solr\backup\node1" "read")
        at 
java.base/java.security.AccessControlContext.checkPermission(AccessControlContext.java:485)
java.security.AccessControlException: access denied ("java.io.FilePermission" 
"D:\Solr\backup\node1" "read")
        at 
java.security.AccessControlContext.checkPermission(AccessControlContext.java:485)
 ~[?:?]
        at 
java.security.AccessController.checkPermission(AccessController.java:1068) 
~[?:?]
        at java.lang.SecurityManager.checkPermission(SecurityManager.java:416) 
~[?:?]
        at java.lang.SecurityManager.checkRead(SecurityManager.java:756) ~[?:?]
        at 
sun.nio.fs.WindowsChannelFactory.open(WindowsChannelFactory.java:300) ~[?:?]
        at 
sun.nio.fs.WindowsChannelFactory.newFileChannel(WindowsChannelFactory.java:168) 
~[?:?]
        at 
sun.nio.fs.WindowsFileSystemProvider.checkReadAccess(WindowsFileSystemProvider.java:331)
 ~[?:?]
        at 
sun.nio.fs.WindowsFileSystemProvider.checkAccess(WindowsFileSystemProvider.java:380)
 ~[?:?]
        at 
sun.nio.fs.AbstractFileSystemProvider.exists(AbstractFileSystemProvider.java:151)
 ~[?:?]
        at java.nio.file.Files.exists(Files.java:2522) ~[?:?]
        at 
org.apache.solr.core.backup.repository.LocalFileSystemRepository.exists(LocalFileSystemRepository.java:110)
 ~[?:?]
        at 
org.apache.solr.handler.SnapShooter.validateCreateSnapshot(SnapShooter.java:161)
 ~[?:?]
        at 
org.apache.solr.handler.ReplicationHandler.doSnapShoot(ReplicationHandler.java:660)
 ~[?:?]
        at 
org.apache.solr.handler.ReplicationHandler.handleRequestBody(ReplicationHandler.java:299)
 ~[?:?]
        at 
org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:207)
 ~[?:?]
        at org.apache.solr.core.SolrCore.execute(SolrCore.java:2866) ~[?:?]
        at org.apache.solr.servlet.HttpSolrCall.execute(HttpSolrCall.java:887) 
~[?:?]
        at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:606) 
~[?:?]
        at 
org.apache.solr.servlet.SolrDispatchFilter.dispatch(SolrDispatchFilter.java:239)
 ~[?:?]
        at 
org.apache.solr.servlet.SolrDispatchFilter.lambda$doFilter$0(SolrDispatchFilter.java:207)
 ~[?:?]
        at 
org.apache.solr.servlet.ServletUtils.traceHttpRequestExecution2(ServletUtils.java:257)
 ~[?:?]
        at 
org.apache.solr.servlet.ServletUtils.rateLimitRequest(ServletUtils.java:227) 
~[?:?]
        at 
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:202)
 ~[?:?]
        at 
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:184)
 ~[?:?]
        at 
org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:201) 
~[jetty-servlet-9.4.44.v20210927.jar:9.4.44.v20210927]
        at 
org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1601)
 ~[jetty-servlet-9.4.44.v20210927.jar:9.4.44.v20210927]
        at 
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:548) 
~[jetty-servlet-9.4.44.v20210927.jar:9.4.44.v20210927]
        at 
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) 
~[jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
        at 
org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:600) 
~[jetty-security-9.4.44.v20210927.jar:9.4.44.v20210927]
        at 
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) 
~[jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
        at 
org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235)
 ~[jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
        at 
org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1624)
 ~[jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
        at 
org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)
 ~[jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
        at 
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1434)
 ~[jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
        at 
org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188)
 ~[jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
        at 
org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:501) 
~[jetty-servlet-9.4.44.v20210927.jar:9.4.44.v20210927]
        at 
org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1594)
 ~[jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
        at 
org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186)
 ~[jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
        at 
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1349)
 ~[jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
        at 
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) 
~[jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
        at 
org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:191)
 ~[jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
        at 
org.eclipse.jetty.server.handler.InetAccessHandler.handle(InetAccessHandler.java:177)
 ~[jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
        at 
org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:146)
 ~[jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
        at 
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) 
~[jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
        at 
org.eclipse.jetty.rewrite.handler.RewriteHandler.handle(RewriteHandler.java:322)
 ~[jetty-rewrite-9.4.44.v20210927.jar:9.4.44.v20210927]
        at 
org.eclipse.jetty.server.handler.gzip.GzipHandler.handle(GzipHandler.java:763) 
~[jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
        at 
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) 
~[jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
        at org.eclipse.jetty.server.Server.handle(Server.java:516) 
~[jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
        at 
org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:400) 
~[jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
        at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:645) 
~[jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
        at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:392) 
~[jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
        at 
org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:277) 
~[jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
        at 
org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)
 ~[jetty-io-9.4.44.v20210927.jar:9.4.44.v20210927]
        at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105) 
~[jetty-io-9.4.44.v20210927.jar:9.4.44.v20210927]
        at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104) 
~[jetty-io-9.4.44.v20210927.jar:9.4.44.v20210927]
        at 
org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:338)
 ~[jetty-util-9.4.44.v20210927.jar:9.4.44.v20210927]
        at 
org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:315)
 ~[jetty-util-9.4.44.v20210927.jar:9.4.44.v20210927]
        at 
org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:173)
 ~[jetty-util-9.4.44.v20210927.jar:9.4.44.v20210927]
        at 
org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.produce(EatWhatYouKill.java:137)
 ~[jetty-util-9.4.44.v20210927.jar:9.4.44.v20210927]
        at 
org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:883)
 ~[jetty-util-9.4.44.v20210927.jar:9.4.44.v20210927]
        at 
org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1034)
 ~[jetty-util-9.4.44.v20210927.jar:9.4.44.v20210927]
        at java.lang.Thread.run(Thread.java:833) [?:?]

-----Original Message-----
From: Shawn Heisey <apa...@elyograg.org>
Sent: 07 October 2022 17:34
To: users@solr.apache.org
Subject: Re: Node backup using replication

[You don't often get email from apa...@elyograg.org. Learn why this is 
important at https://aka.ms/LearnAboutSenderIdentification ]

WARNING: This email originated from outside of NHS Wales. Do not open links or 
attachments unless you know the content is safe.


On 10/7/22 10:11, Joe Jones (DHCW - Software Development) wrote:
> We were on 5.4
>
> "solr.allowPaths" has been configured, without that reference a different 
> error is shown about relative paths.

In that case, there does appear to be an actual permission problem.
Solr may not be running under the user account you think it is, or the 
permissions aren't what you think they are.  Or maybe something is unusual 
about your Java install.  Can you share the full exception with stacktraces 
from solr.log?  That will be a LOT of log lines and may have one or more 
"Caused by" sections.

Thanks,
Shawn

Rydym yn croesawu derbyn gohebiaeth yng Nghymraeg. Byddwn yn ateb y fath 
ohebiaeth yng Nghymraeg ac ni fydd hyn yn arwain at oedi.
We welcome receiving correspondence in Welsh. We will reply to such 
correspondence in Welsh and this will not lead to a delay.

Reply via email to