[ 
https://issues.apache.org/jira/browse/ARTEMIS-4803?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17854770#comment-17854770
 ] 

Justin Bertram edited comment on ARTEMIS-4803 at 6/14/24 6:48 PM:
------------------------------------------------------------------

We enabled NFS on Windows server 2019 and created a share, used below mount 
commands:
{noformat}
mount -o fileaccess=777 -o mtype=soft,noac -o timeout=50 -o retry=1 
xxxx:/NFSTestFolder y:{noformat}
Attached you can find the  [^broker.xml] for the master node, however the 
Windows service keeps stopping with below errors:
{noformat}
2024-06-13 15:44:39,932 WARN  [org.apache.activemq.artemis.core.server] 
AMQ222141: Node Manager can not open file y:\AMQ\data\journal\server.lock
java.io.IOException: The system cannot find the path specified
    at java.io.WinNTFileSystem.createFileExclusively0(Native Method) ~[?:?]
    at java.io.WinNTFileSystem.createFileExclusively(WinNTFileSystem.java:645) 
~[?:?]
    at java.io.File.createNewFile(File.java:1043) ~[?:?]
    at 
org.apache.activemq.artemis.core.server.impl.FileBasedNodeManager.setUpServerLockFile(FileBasedNodeManager.java:145)
 [artemis-server-2.31.2.jar:2.31.2]
    at 
org.apache.activemq.artemis.core.server.impl.FileLockNodeManager.setUpServerLockFile(FileLockNodeManager.java:111)
 [artemis-server-2.31.2.jar:2.31.2]
    at 
org.apache.activemq.artemis.core.server.impl.FileLockNodeManager.start(FileLockNodeManager.java:102)
 [artemis-server-2.31.2.jar:2.31.2]
    at 
org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.internalStart(ActiveMQServerImpl.java:696)
 [artemis-server-2.31.2.jar:2.31.2]
    at 
org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.start(ActiveMQServerImpl.java:610)
 [artemis-server-2.31.2.jar:2.31.2]
    at 
org.apache.activemq.artemis.integration.FileBroker.start(FileBroker.java:66) 
[artemis-cli-2.31.2.jar:2.31.2]
    at org.apache.activemq.artemis.cli.commands.Run.execute(Run.java:130) 
[artemis-cli-2.31.2.jar:2.31.2]
    at 
org.apache.activemq.artemis.cli.Artemis.internalExecute(Artemis.java:219) 
[artemis-cli-2.31.2.jar:2.31.2]
    at org.apache.activemq.artemis.cli.Artemis.execute(Artemis.java:165) 
[artemis-cli-2.31.2.jar:2.31.2]
    at 
jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
 ~[?:?]
    at java.lang.reflect.Method.invoke(Method.java:578) ~[?:?]
    at org.apache.activemq.artemis.boot.Artemis.execute(Artemis.java:157) 
[artemis-boot.jar:2.31.2]
    at org.apache.activemq.artemis.boot.Artemis.main(Artemis.java:64) 
[artemis-boot.jar:2.31.2]
2024-06-13 15:44:39,948 ERROR [org.apache.activemq.artemis.core.server] 
AMQ224097: Failed to start server
java.io.IOException: The system cannot find the path specified
    at java.io.WinNTFileSystem.createFileExclusively0(Native Method) ~[?:?]
    at java.io.WinNTFileSystem.createFileExclusively(WinNTFileSystem.java:645) 
~[?:?]
    at java.io.File.createNewFile(File.java:1043) ~[?:?]
    at 
org.apache.activemq.artemis.core.server.impl.FileBasedNodeManager.setUpServerLockFile(FileBasedNodeManager.java:145)
 ~[artemis-server-2.31.2.jar:2.31.2]
    at 
org.apache.activemq.artemis.core.server.impl.FileLockNodeManager.setUpServerLockFile(FileLockNodeManager.java:111)
 ~[artemis-server-2.31.2.jar:2.31.2]
    at 
org.apache.activemq.artemis.core.server.impl.FileLockNodeManager.start(FileLockNodeManager.java:102)
 ~[artemis-server-2.31.2.jar:2.31.2]
    at 
org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.internalStart(ActiveMQServerImpl.java:696)
 ~[artemis-server-2.31.2.jar:2.31.2]
    at 
org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.start(ActiveMQServerImpl.java:610)
 [artemis-server-2.31.2.jar:2.31.2]
    at 
org.apache.activemq.artemis.integration.FileBroker.start(FileBroker.java:66) 
[artemis-cli-2.31.2.jar:2.31.2]
    at org.apache.activemq.artemis.cli.commands.Run.execute(Run.java:130) 
[artemis-cli-2.31.2.jar:2.31.2]
    at 
org.apache.activemq.artemis.cli.Artemis.internalExecute(Artemis.java:219) 
[artemis-cli-2.31.2.jar:2.31.2]
    at org.apache.activemq.artemis.cli.Artemis.execute(Artemis.java:165) 
[artemis-cli-2.31.2.jar:2.31.2]
    at 
jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
 ~[?:?]
    at java.lang.reflect.Method.invoke(Method.java:578) ~[?:?]
    at org.apache.activemq.artemis.boot.Artemis.execute(Artemis.java:157) 
[artemis-boot.jar:2.31.2]
    at org.apache.activemq.artemis.boot.Artemis.main(Artemis.java:64) 
[artemis-boot.jar:2.31.2]
2024-06-13 15:44:39,953 INFO  [org.apache.activemq.artemis.core.server] 
AMQ221002: Apache ActiveMQ Artemis Message Broker version 2.31.2 [null] 
stopped, uptime 0.539 seconds{noformat}


was (Author: JIRAUSER305625):
We enabled NFS on Windows server 2019 and created a share, used below mount 
commands:

 

mount -o fileaccess=777 -o mtype=soft,noac -o timeout=50 -o retry=1 
xxxx:/NFSTestFolder y:

 

Attached you can find the broker.xml for the master node, however the Windows 
service keeps stopping with below errors:

 

2024-06-13 15:44:39,932 WARN  [org.apache.activemq.artemis.core.server] 
AMQ222141: Node Manager can not open file y:\AMQ\data\journal\server.lock
java.io.IOException: The system cannot find the path specified
    at java.io.WinNTFileSystem.createFileExclusively0(Native Method) ~[?:?]
    at java.io.WinNTFileSystem.createFileExclusively(WinNTFileSystem.java:645) 
~[?:?]
    at java.io.File.createNewFile(File.java:1043) ~[?:?]
    at 
org.apache.activemq.artemis.core.server.impl.FileBasedNodeManager.setUpServerLockFile(FileBasedNodeManager.java:145)
 [artemis-server-2.31.2.jar:2.31.2]
    at 
org.apache.activemq.artemis.core.server.impl.FileLockNodeManager.setUpServerLockFile(FileLockNodeManager.java:111)
 [artemis-server-2.31.2.jar:2.31.2]
    at 
org.apache.activemq.artemis.core.server.impl.FileLockNodeManager.start(FileLockNodeManager.java:102)
 [artemis-server-2.31.2.jar:2.31.2]
    at 
org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.internalStart(ActiveMQServerImpl.java:696)
 [artemis-server-2.31.2.jar:2.31.2]
    at 
org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.start(ActiveMQServerImpl.java:610)
 [artemis-server-2.31.2.jar:2.31.2]
    at 
org.apache.activemq.artemis.integration.FileBroker.start(FileBroker.java:66) 
[artemis-cli-2.31.2.jar:2.31.2]
    at org.apache.activemq.artemis.cli.commands.Run.execute(Run.java:130) 
[artemis-cli-2.31.2.jar:2.31.2]
    at 
org.apache.activemq.artemis.cli.Artemis.internalExecute(Artemis.java:219) 
[artemis-cli-2.31.2.jar:2.31.2]
    at org.apache.activemq.artemis.cli.Artemis.execute(Artemis.java:165) 
[artemis-cli-2.31.2.jar:2.31.2]
    at 
jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
 ~[?:?]
    at java.lang.reflect.Method.invoke(Method.java:578) ~[?:?]
    at org.apache.activemq.artemis.boot.Artemis.execute(Artemis.java:157) 
[artemis-boot.jar:2.31.2]
    at org.apache.activemq.artemis.boot.Artemis.main(Artemis.java:64) 
[artemis-boot.jar:2.31.2]
2024-06-13 15:44:39,948 ERROR [org.apache.activemq.artemis.core.server] 
AMQ224097: Failed to start server
java.io.IOException: The system cannot find the path specified
    at java.io.WinNTFileSystem.createFileExclusively0(Native Method) ~[?:?]
    at java.io.WinNTFileSystem.createFileExclusively(WinNTFileSystem.java:645) 
~[?:?]
    at java.io.File.createNewFile(File.java:1043) ~[?:?]
    at 
org.apache.activemq.artemis.core.server.impl.FileBasedNodeManager.setUpServerLockFile(FileBasedNodeManager.java:145)
 ~[artemis-server-2.31.2.jar:2.31.2]
    at 
org.apache.activemq.artemis.core.server.impl.FileLockNodeManager.setUpServerLockFile(FileLockNodeManager.java:111)
 ~[artemis-server-2.31.2.jar:2.31.2]
    at 
org.apache.activemq.artemis.core.server.impl.FileLockNodeManager.start(FileLockNodeManager.java:102)
 ~[artemis-server-2.31.2.jar:2.31.2]
    at 
org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.internalStart(ActiveMQServerImpl.java:696)
 ~[artemis-server-2.31.2.jar:2.31.2]
    at 
org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.start(ActiveMQServerImpl.java:610)
 [artemis-server-2.31.2.jar:2.31.2]
    at 
org.apache.activemq.artemis.integration.FileBroker.start(FileBroker.java:66) 
[artemis-cli-2.31.2.jar:2.31.2]
    at org.apache.activemq.artemis.cli.commands.Run.execute(Run.java:130) 
[artemis-cli-2.31.2.jar:2.31.2]
    at 
org.apache.activemq.artemis.cli.Artemis.internalExecute(Artemis.java:219) 
[artemis-cli-2.31.2.jar:2.31.2]
    at org.apache.activemq.artemis.cli.Artemis.execute(Artemis.java:165) 
[artemis-cli-2.31.2.jar:2.31.2]
    at 
jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
 ~[?:?]
    at java.lang.reflect.Method.invoke(Method.java:578) ~[?:?]
    at org.apache.activemq.artemis.boot.Artemis.execute(Artemis.java:157) 
[artemis-boot.jar:2.31.2]
    at org.apache.activemq.artemis.boot.Artemis.main(Artemis.java:64) 
[artemis-boot.jar:2.31.2]
2024-06-13 15:44:39,953 INFO  [org.apache.activemq.artemis.core.server] 
AMQ221002: Apache ActiveMQ Artemis Message Broker version 2.31.2 [null] 
stopped, uptime 0.539 seconds

> Lost the lock according to the monitor, notifying listeners
> -----------------------------------------------------------
>
>                 Key: ARTEMIS-4803
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-4803
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>    Affects Versions: 2.33.0
>            Reporter: Ayla
>            Assignee: Justin Bertram
>            Priority: Major
>         Attachments: Capture.JPG, broker.xml
>
>   Original Estimate: 168h
>  Remaining Estimate: 168h
>
> We just installed 2.33.0 on a Windows server using with shared file storage. 
> We have the situation that we in get endless loop with the following entry in 
> the artemis log file:
> {noformat}
> WARN  [org.apache.activemq.artemis.core.server.impl.FileLockNodeManager] Lost 
> the lock according to the monitor, notifying listeners{noformat}
> We noticed that if we changed the config file to local disk the problem does 
> not happen. 
> We are using {*}Windows based clustered file shared storage and it is SMB not 
> NFS{*}. 
> SMB configuration properties are as below:
> {noformat}
> PS C:\Windows\system32> Get-SmbClientConfiguration
> ConnectionCountPerRssNetworkInterface : 4
> DirectoryCacheEntriesMax              : 16
> DirectoryCacheEntrySizeMax            : 65536
> DirectoryCacheLifetime                : 10
> DormantFileLimit                      : 1023
> EnableBandwidthThrottling             : True
> EnableByteRangeLockingOnReadOnlyFiles : True
> EnableInsecureGuestLogons             : False
> EnableLargeMtu                        : True
> EnableLoadBalanceScaleOut             : True
> EnableMultiChannel                    : True
> EnableSecuritySignature               : True
> ExtendedSessionTimeout                : 1000
> FileInfoCacheEntriesMax               : 64
> FileInfoCacheLifetime                 : 10
> FileNotFoundCacheEntriesMax           : 128
> FileNotFoundCacheLifetime             : 5
> KeepConn                              : 600
> MaxCmds                               : 50
> MaximumConnectionCountPerServer       : 32
> OplocksDisabled                       : False
> RequireSecuritySignature              : True
> SessionTimeout                        : 60
> UseOpportunisticLocking               : True
> WindowSizeThreshold                   : 1{noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact


Reply via email to