Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Q EncoderServer does not clean up old artifacts correctly #5123

Open
rli opened this issue Nov 22, 2024 · 0 comments
Open

Q EncoderServer does not clean up old artifacts correctly #5123

rli opened this issue Nov 22, 2024 · 0 comments
Labels
amazon-q bug We can reproduce the issue and confirmed it is a bug. codewhisperer

Comments

@rli
Copy link
Contributor

rli commented Nov 22, 2024

2024-11-22 10:38:55,532 [  58044]   WARN - software.aws.toolkits.jetbrains.services.amazonq.project.EncoderServer - error deleting old artifacts:
java.nio.file.DirectoryNotEmptyException: /.../.aws/amazonq/cache/qserver
	at java.base/sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:289)
	at java.base/sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:109)
	at java.base/java.nio.file.Files.deleteIfExists(Files.java:1191)
	at software.aws.toolkits.jetbrains.services.amazonq.project.EncoderServer.tryDeleteOldArtifacts(EncoderServer.kt:202)
	at software.aws.toolkits.jetbrains.services.amazonq.project.EncoderServer.downloadArtifactsIfNeeded(EncoderServer.kt:179)
	at software.aws.toolkits.jetbrains.services.amazonq.project.EncoderServer.downloadArtifactsAndStartServer(EncoderServer.kt:63)
	at software.aws.toolkits.jetbrains.services.amazonq.project.ProjectContextController$initJob$1.invokeSuspend(ProjectContextController.kt:30)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:608)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:873)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:763)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:750)

v3.40

@rli rli added bug We can reproduce the issue and confirmed it is a bug. codewhisperer amazon-q labels Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
amazon-q bug We can reproduce the issue and confirmed it is a bug. codewhisperer
Projects
None yet
Development

No branches or pull requests

1 participant