Comments (4)
I've tried this locally using the latest plugin release and SonarQube 7.9 LTS and can start SonarQube with the plugin and scan branches without issue when using Open JDK 11 on Centos 7. Can you confirm:
- What Operating System ('flavour' and version) you're running? I'm presuming a Linux distribution given your use of
sonar.sh
and and the path mentioned in the error - Is this a build of the plugin downloaded from the release page or have you performed your own build?
- What version of Java are you using?
- What are the permissions on the file plugin file, and do these allow access for the user that's starting SonarQube?
from sonarqube-community-branch-plugin.
Thanks,
- RHEL 7.
- This is the JAR from the Releases page, I did not perform my own build.
- JDK 11.0.3
- I am able to start sonar without the plugin.
from sonarqube-community-branch-plugin.
Is there more of a stacktrace than what you've copied into your original issue detail? I'd expect to see something similar to the following, which includes a Caused By
stack indicating the original failure:
2019.07.03 14:14:55 ERROR web[][o.s.s.p.Platform] Web server startup failed
java.lang.IllegalStateException: Unable to read plugin manifest from jar : /home/mc1arke/scbp-issue25/sonarqube-7.9/extensions/plugins/sonarqube-community-branch-plugin-1.1.1.jar
at org.sonar.updatecenter.common.PluginManifest.<init>(PluginManifest.java:125)
at org.sonar.core.platform.PluginInfo.create(PluginInfo.java:395)
at org.sonar.server.plugins.ServerPluginRepository.loadPreInstalledPlugins(ServerPluginRepository.java:135)
at org.sonar.server.plugins.ServerPluginRepository.start(ServerPluginRepository.java:103)
at org.sonar.core.platform.StartableCloseableSafeLifecyleStrategy.start(StartableCloseableSafeLifecyleStrategy.java:40)
at org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.start(AbstractInjectionFactory.java:84)
at org.picocontainer.behaviors.AbstractBehavior.start(AbstractBehavior.java:169)
at org.picocontainer.behaviors.Stored$RealComponentLifecycle.start(Stored.java:132)
at org.picocontainer.behaviors.Stored.start(Stored.java:110)
at org.picocontainer.DefaultPicoContainer.potentiallyStartAdapter(DefaultPicoContainer.java:1016)
at org.picocontainer.DefaultPicoContainer.startAdapters(DefaultPicoContainer.java:1009)
at org.picocontainer.DefaultPicoContainer.start(DefaultPicoContainer.java:767)
at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:135)
at org.sonar.server.platform.platformlevel.PlatformLevel.start(PlatformLevel.java:90)
at org.sonar.server.platform.platformlevel.PlatformLevel2.start(PlatformLevel2.java:113)
at org.sonar.server.platform.Platform.start(Platform.java:211)
at org.sonar.server.platform.Platform.startLevel2Container(Platform.java:177)
at org.sonar.server.platform.Platform.init(Platform.java:87)
at org.sonar.server.platform.web.PlatformServletContextListener.contextInitialized(PlatformServletContextListener.java:43)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4817)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5283)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1423)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1413)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.io.FileNotFoundException: /home/mc1arke/scbp-issue25/sonarqube-7.9/extensions/plugins/sonarqube-community-branch-plugin-1.1.1.jar (Permission denied)
at java.base/java.io.RandomAccessFile.open0(Native Method)
at java.base/java.io.RandomAccessFile.open(RandomAccessFile.java:345)
at java.base/java.io.RandomAccessFile.<init>(RandomAccessFile.java:259)
at java.base/java.io.RandomAccessFile.<init>(RandomAccessFile.java:214)
at java.base/java.util.zip.ZipFile$Source.<init>(ZipFile.java:1271)
at java.base/java.util.zip.ZipFile$Source.get(ZipFile.java:1237)
at java.base/java.util.zip.ZipFile$CleanableResource.<init>(ZipFile.java:727)
at java.base/java.util.zip.ZipFile$CleanableResource.get(ZipFile.java:844)
at java.base/java.util.zip.ZipFile.<init>(ZipFile.java:247)
at java.base/java.util.zip.ZipFile.<init>(ZipFile.java:177)
at java.base/java.util.jar.JarFile.<init>(JarFile.java:346)
at java.base/java.util.jar.JarFile.<init>(JarFile.java:317)
at java.base/java.util.jar.JarFile.<init>(JarFile.java:283)
at org.sonar.updatecenter.common.PluginManifest.<init>(PluginManifest.java:120)
... 27 common frames omitted
from sonarqube-community-branch-plugin.
Closing issues since no further information provided, and I'm unable to replicate the issue without specifically setting the permissions of the plugin file to a value that prevents the user running SonarQube from reading the plugin file.
from sonarqube-community-branch-plugin.
Related Issues (20)
- Add checkrun to last commit in PR instead of merge commit HOT 2
- Incremental analysis not working HOT 2
- Sonarqube 10.2 配置后没有生效
- Pull request analysis does not store the date of analysis HOT 4
- GitLab MR decoration: new stage and job created HOT 1
- Fixed Issues is always shown at 0 on Pull Requests HOT 1
- PR Decorator for GitHub not Visible on PR HOT 2
- Will the request decorator trigger a gitlab merge_request update webhook? HOT 4
- BitBucket PR decorator missing annotations
- Pull request analysis using SARIF reports does not import issues to Sonarqube HOT 1
- Status checks don’t update. HOT 1
- An error occurred when viewing the risk analysis chart. HOT 3
- docker-compose up fails with "can't find gid for group sonarqube: no such group: sonarqube" HOT 2
- Github API is returning 'Expected string or block string, but it was malformed' HOT 22
- {"errors":[{"msg":"Current edition does not support branch feature"}]} HOT 2
- Could not decorate Pull Request on Github - 9.9 LTS support HOT 1
- Scanning master branch fails with SonarQube 10.6 and plugin version 1.22.0 at HOT 2
- Housekeeping feature question HOT 2
- Current edition does not support branch feature HOT 3
- Github exception - UpdateCheckRunInput doesn't accept argument 'headSha'
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sonarqube-community-branch-plugin.