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

Configuration JGit folder #138

Open
alecharp opened this issue Nov 28, 2022 · 2 comments
Open

Configuration JGit folder #138

alecharp opened this issue Nov 28, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@alecharp
Copy link
Collaborator

alecharp commented Nov 28, 2022

When cloning the repository of plugins, we have the following error produced:

Cannot save config file 'FileBasedConfig[/****/.config/jgit/config]'

java.io.IOException: Creating directories for /****/.config/jgit failed
        at org.eclipse.jgit.util.FileUtils.mkdirs(FileUtils.java:413) ~[org.eclipse.jgit-6.3.0.2022009070944-r.jar!/:6.3.0.2022009070944-r]
        at org.eclipse.jgit.internal.storage.file.LockFile.lock(LockFile.java:140) ~[org.eclipse.jgit-6.3.0.2022009070944-r.jar!/:6.3.0.2022009070944-r]
        at org.eclipse.jgit.storage.file.FileBasedConfig.save(FileBasedConfig.java:184) ~[org.eclipse.jgit-6.3.0.2022009070944-r.jar!/:6.3.0.2022009070944-r]
        at org.eclipse.jgit.util.FS$FileStoreAttributes.saveToConfig(FS.java:761) ~[org.eclipse.jgit-6.3.0.2022009070944-r.jar!/:6.3.0.2022009070944-r]
        at org.eclipse.jgit.util.FS$FileStoreAttributes.lambda$5(FS.java:443) ~[org.eclipse.jgit-6.3.0.2022009070944-r.jar!/:6.3.0.2022009070944-r]
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) ~[na:na]
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) ~[na:na]
        at java.base/java.lang.Thread.run(Unknown Source) ~[na:na]

Because of this, probes are not executing properly.

@alecharp alecharp added enhancement New feature or request bug Something isn't working and removed enhancement New feature or request labels Nov 28, 2022
@alecharp
Copy link
Collaborator Author

The exception on this method can be thrown when the folder we want to create already exists.
This is potentially the case because the probe which clones a plugin repository can be ran on multiple plugins at a time (probes are run sequentially on each plugins, but plugins are analyzed in parallel).

So, this might not be a problem we need to configured.

However, we could initialize this folder when the application starts so that it is done once.

@amangupta679
Copy link

When cloning the repository of plugins, we have the following error produced:

Cannot save config file 'FileBasedConfig[/****/.config/jgit/config]'

java.io.IOException: Creating directories for /****/.config/jgit failed
        at org.eclipse.jgit.util.FileUtils.mkdirs(FileUtils.java:413) ~[org.eclipse.jgit-6.3.0.2022009070944-r.jar!/:6.3.0.2022009070944-r]
        at org.eclipse.jgit.internal.storage.file.LockFile.lock(LockFile.java:140) ~[org.eclipse.jgit-6.3.0.2022009070944-r.jar!/:6.3.0.2022009070944-r]
        at org.eclipse.jgit.storage.file.FileBasedConfig.save(FileBasedConfig.java:184) ~[org.eclipse.jgit-6.3.0.2022009070944-r.jar!/:6.3.0.2022009070944-r]
        at org.eclipse.jgit.util.FS$FileStoreAttributes.saveToConfig(FS.java:761) ~[org.eclipse.jgit-6.3.0.2022009070944-r.jar!/:6.3.0.2022009070944-r]
        at org.eclipse.jgit.util.FS$FileStoreAttributes.lambda$5(FS.java:443) ~[org.eclipse.jgit-6.3.0.2022009070944-r.jar!/:6.3.0.2022009070944-r]
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) ~[na:na]
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) ~[na:na]
        at java.base/java.lang.Thread.run(Unknown Source) ~[na:na]

Because of this, probes are not executing properly.

This error occurs when the system is unable to create the necessary directories to save the configuration file for JGit. JGit is a Java-based implementation of the Git version control system.

The error message indicates that the directory "/****/.config/jgit" could not be created. This could be due to a permissions issue or a problem with the file system.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants