Thanks a lot Benoit.

I found the admin REST services port in the logs (8000). I'd like to know
where this is configured though in case the server admins want to change it.

Thanks in advance.
Matt



On Mon, 23 Oct 2023 at 12:36, Benoit TELLIER <btell...@linagora.com> wrote:

> Hey Matt,
>
> Just add `-Djames.jmx.credential.generation=false`
> In order to disable JMX password generation.
>
> This might be enough to take you out of the woods the time we come up with
> a fix in rder to disable fully this behaviour for Windows.--
>
> Best regards,
>
> Benoit TELLIER
>
> General manager of Linagora VIETNAM.
> Product owner for Team-Mail product.
> Chairman of the Apache James project.
>
> Mail: btell...@linagora.com
> Tel: (0033) 6 77 26 04 58 (WhatsApp, Signal)
>
>
> On Oct 23, 2023 6:14 PM, from Matt Pryor Hi Benoit
>
> Yes, running Windows. Is there a workaround?
>
> Also can you let me know what port the admin Rest services run on, is this
> configurable somewhere?
>
> Thanks for your help, always appreciated.
>
> Matt
>
>
>
> On Fri, 20 Oct 2023 at 15:32, Benoit TELLIER <btell...@linagora.com>
> wrote:
>
> > Are you running on Windows?
> >
> > We did some changes to prevent privilege escalation with JMX but
> > apparently file permission handling fails on windows.
> >
> > We can likely avoid setting permissions when on Windows.
> >
> > CF issues.apache.org/jira/browse/JAMES-3949
> >
> > --
> >
> > Best regards,
> >
> > Benoit TELLIER
> >
> > General manager of Linagora VIETNAM.
> > Product owner for Team-Mail product.
> > Chairman of the Apache James project.
> >
> > Mail: btell...@linagora.com
> > Tel: (0033) 6 77 26 04 58 (WhatsApp, Signal)
> >
> >
> > On Oct 20, 2023 7:31 PM, from Matt Pryor Hello
> >
> > Just trying to get the latest Guice version of James up and running. I'm
> > currently using the default configuration files and was planning on
> setting
> > everything correctly to match the old version settings once I get it
> > started.
> >
> > I'm seeing this error on startup. Should I worry about this, and if so
> how
> > do I fix it?
> >
> > java.lang.UnsupportedOperationException: null
> >         at
> > java.base/java.nio.file.Files.setPosixFilePermissions(Files.java:2168)
> >         at
> >
> >
> org.apache.james.modules.server.JMXServer.setPermissionOwnerOnly(JMXServer.java:202)
> >         at
> >
> >
> org.apache.james.modules.server.JMXServer.generateJMXPasswordFile(JMXServer.java:179)
> >         at
> >
> >
> org.apache.james.modules.server.JMXServer.generateJMXPasswordFileIfNeed(JMXServer.java:164)
> >         at
> > org.apache.james.modules.server.JMXServer.doStart(JMXServer.java:123)
> >         at
> > org.apache.james.modules.server.JMXServer.start(JMXServer.java:94)
> >         at
> >
> >
> org.apache.james.modules.server.JMXServerModule.lambda$startJmxServer$0(JMXServerModule.java:124)
> >         at
> >
> >
> org.apache.james.utils.InitilizationOperationBuilder$PrivateImpl.initModule(InitilizationOperationBuilder.java:71)
> >         at
> >
> >
> com.github.fge.lambdas.consumers.ConsumerChainer.lambda$sneakyThrow$9(ConsumerChainer.java:73)
> >         at
> >
> >
> java.base/java.util.stream.ReferencePipeline$15$1.accept(ReferencePipeline.java:540)
> >         at
> > java.base/java.util.stream.DistinctOps$1$2.accept(DistinctOps.java:174)
> >         at
> >
> >
> java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
> >         at
> >
> >
> java.base/java.util.stream.Streams$StreamBuilderImpl.forEachRemaining(Streams.java:411)
> >         at
> >
> >
> java.base/java.util.stream.Streams$ConcatSpliterator.forEachRemaining(Streams.java:735)
> >         at
> >
> >
> java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:762)
> >         at
> >
> >
> java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:276)
> >         at
> >
> >
> java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179)
> >         at
> >
> >
> java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:1024)
> >         at
> >
> >
> java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
> >         at
> >
> >
> java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
> >         at
> >
> >
> java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
> >         at
> >
> >
> java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
> >         at
> >
> >
> java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
> >         at
> >
> >
> java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
> >         at
> >
> >
> java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:276)
> >         at
> >
> >
> java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:1024)
> >         at
> >
> >
> java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
> >         at
> >
> >
> java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
> >         at
> >
> >
> java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921)
> >         at
> >
> >
> java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
> >         at
> >
> >
> java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682)
> >         at
> >
> >
> org.apache.james.utils.InitializationOperations.processStartables(InitializationOperations.java:51)
> >         at
> >
> >
> org.apache.james.utils.InitializationOperations.initModules(InitializationOperations.java:41)
> >         at
> > org.apache.james.GuiceJamesServer.start(GuiceJamesServer.java:93)
> >         at org.apache.james.JamesServerMain.main(JamesServerMain.java:30)
> >         at
> > org.apache.james.JPAJamesServerMain.main(JPAJamesServerMain.java:110)
> >
> >
> >
> > Thanks!
> > Matt
> >
> >
> > --
> > Kind regards
> > Matt Pryor
> > Software Developer
> >
> > The International Presence Group of Companies
> > EMAIL: pr...@presencebpm.com
> > URL: International-presence.com
> >
>
>
> --
> Kind regards
> Matt Pryor
> Software Developer
>
> The International Presence Group of Companies
> EMAIL: pr...@presencebpm.com
> URL: International-presence.com
>


-- 
Kind regards
Matt Pryor
Software Developer

The International Presence Group of Companies
EMAIL: pr...@presencebpm.com
URL: www.International-presence.com

Reply via email to