Coder Social home page Coder Social logo

Comments (12)

phillip-kruger avatar phillip-kruger commented on August 20, 2024 1

Thank for the reproducer. I managed to recreate, so looking at it now. This might need a new version of Logging manager.

from quarkus-logging-manager.

phillip-kruger avatar phillip-kruger commented on August 20, 2024 1

@ansgerl Please try with the just released 2.1.1 and let me know. thanks

from quarkus-logging-manager.

phillip-kruger avatar phillip-kruger commented on August 20, 2024 1

Bug :) We always create a new FileSystem, but sometime it exists. Seems like some gradle specific issue, could be that they cache or something.

from quarkus-logging-manager.

ansgerl avatar ansgerl commented on August 20, 2024 1

Thanks very much!

from quarkus-logging-manager.

phillip-kruger avatar phillip-kruger commented on August 20, 2024

Does it work in JVM mode (so not Dev Mode, running the jar) ?

from quarkus-logging-manager.

ansgerl avatar ansgerl commented on August 20, 2024

Your right, it does also not work in JVM production mode.
How can I build it, so it also works in production mode?

from quarkus-logging-manager.

phillip-kruger avatar phillip-kruger commented on August 20, 2024

How does your application.properties look like ?
Do you have : quarkus.logging-manager.ui.always-include=true

(see
https://github.com/phillip-kruger/logging-manager-example/blob/3da526463bad714453b1881d5a0121bde4d9221e/src/main/resources/application.properties#L5 )

from quarkus-logging-manager.

ansgerl avatar ansgerl commented on August 20, 2024

O.k. with this I get a new error when building:

io.quarkus.builder.BuildException: Build failure: Build failed due to errors
[error]: Build step io.quarkiverse.loggingmanager.deployment.LoggingManagerProcessor#includeUiAndWebsocket threw an exception: java.nio.file.FileSystemAlreadyExistsException
at jdk.zipfs/jdk.nio.zipfs.ZipFileSystemProvider.newFileSystem(ZipFileSystemProvider.java:102)
at java.base/java.nio.file.FileSystems.newFileSystem(FileSystems.java:337)
at java.base/java.nio.file.FileSystems.newFileSystem(FileSystems.java:286)
at io.quarkiverse.loggingmanager.deployment.LoggingManagerProcessor.addStaticResource(LoggingManagerProcessor.java:344)
at io.quarkiverse.loggingmanager.deployment.LoggingManagerProcessor.includeUiAndWebsocket(LoggingManagerProcessor.java:203)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at io.quarkus.deployment.ExtensionLoader$2.execute(ExtensionLoader.java:820)
at io.quarkus.builder.BuildContext.run(BuildContext.java:277)
at org.jboss.threads.ContextHandler$1.runWith(ContextHandler.java:18)
at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2449)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1478)
at java.base/java.lang.Thread.run(Thread.java:834)
at org.jboss.threads.JBossThread.run(JBossThread.java:501)

from quarkus-logging-manager.

phillip-kruger avatar phillip-kruger commented on August 20, 2024

OK that is interesting. Do you have a small reproducer I can look at ?

from quarkus-logging-manager.

ansgerl avatar ansgerl commented on August 20, 2024

The funny thing is: when started via quarkusDev it runs, but when building production jar, build fails.

These are the application.properties I use:

#GLOBAL configuration
quarkus.http.port=4020
quarkus.banner.path=banner.txt
quarkus.health.openapi.included=true
quarkus.default-locale=en-US
quarkus.smallrye-openapi.path=/swagger
mp.openapi.scan.disable=true
quarkus.swagger-ui.always-include=true
quarkus.swagger-ui.path=/swagger-ui

Add the logging manager openapi

quarkus.logging-manager.ui.always-include=true
quarkus.logging-manager.openapi.included=true

quarkus.native.additional-build-args=-H:ResourceConfigurationFiles=XXX,-H:Log=registerResource:
quarkus.native.auto-service-loader-registration=false
#New with Quarkus 1.11 - native-image minimum available log level
quarkus.log.min-level=DEBUG

Use file rotation to avoid out of memory issues

quarkus.log.file.rotation.max-file-size=10M
quarkus.log.file.rotation.max-backup-index=10

%prod.quarkus.log.console.enable=false

from quarkus-logging-manager.

ansgerl avatar ansgerl commented on August 20, 2024

When building this project on a iMac (intel) using ./gradlew build I get the above error.

code-with-quarkus 3.zip

Maybe it is a gradle issue?

I am using Java 11.

from quarkus-logging-manager.

ansgerl avatar ansgerl commented on August 20, 2024

It now works! Thanks!
What was the problem?

from quarkus-logging-manager.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.