Pygments isn't loaded in trac - trac

I've installed Pygments on a TRAC server, but after restarting the TRAC service, Pygments isn't loaded.
After restarting the TRAC service, the log file looks like this:
2015-03-07 20:34:52,496 Trac[loader] DEBUG: Loading trac.mimeview.patch from c:\python27\lib\site-packages
2015-03-07 20:34:52,496 Trac[loader] DEBUG: Loading trac.mimeview.pygments from c:\python27\lib\site-packages
2015-03-07 20:34:52,513 Trac[loader] DEBUG: Skipping "trac.mimeview.pygments = trac.mimeview.pygments [pygments]": ("DistributionNotFound: Pygments>=0.6" not found)
2015-03-07 20:34:52,513 Trac[loader] DEBUG: Loading trac.mimeview.rst from c:\python27\lib\site-packages
2015-03-07 20:34:52,513 Trac[loader] DEBUG: Skipping "trac.mimeview.rst = trac.mimeview.rst [rest]": ("DistributionNotFound: docutils>=0.3" not found)
2015-03-07 20:34:52,513 Trac[loader] DEBUG: Loading trac.mimeview.silvercity from c:\python27\lib\site-packages
2015-03-07 20:34:52,529 Trac[loader] DEBUG: Skipping "trac.mimeview.silvercity = trac.mimeview.silvercity [silvercity]": ("DistributionNotFound: SilverCity>=0.9.4" not found)
2015-03-07 20:34:52,529 Trac[loader] DEBUG: Loading trac.mimeview.txtl from c:\python27\lib\site-packages
2015-03-07 20:34:52,529 Trac[loader] DEBUG: Skipping "trac.mimeview.txtl = trac.mimeview.txtl [textile]": ("DistributionNotFound: textile>=2.0" not found)
With 'pip show pygments' I've verified the Pygments installation, version 2.0.2 is installed in the 'c:\python27\lib\site-packages' folder.
What's going wrong?

You need Trac 1.0.3 or later (preferably 1.0.4) with Pygments 2.x. See #11796. You should install Pygments 1.6 if you are stuck with an earlier version of Trac.

Related

Timed out connecting to Chrome, giving up error - EC2 instance jenkins running selenium tests

I'm receiving the following error when trying to run my selenium tests through an ec2 instance using Jenkins.
Running the tests locally works fine.
The output of the logs:
[[1;34mINFO[m] -------------------------------------------------------
[[1;34mINFO[m] T E S T S
[[1;34mINFO[m] -------------------------------------------------------
[[1;34mINFO[m] Running [1mTestSuite[m
[main] INFO com.DefaultTest - BeforeClass start
[main] INFO io.github.bonigarcia.wdm.WebDriverManager - Using chromedriver 106.0.5249.61 (resolved driver for Chrome 106)
[main] INFO io.github.bonigarcia.wdm.WebDriverManager - Exporting webdriver.chrome.driver as /var/lib/jenkins/.cache/selenium/chromedriver/linux64/106.0.5249.61/chromedriver
Starting ChromeDriver 106.0.5249.61 (511755355844955cd3e264779baf0dd38212a4d0-refs/branch-heads/5249#{#569}) on port 42525
Only local connections are allowed.
Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe.
ChromeDriver was started successfully.
Oct 11, 2022 11:13:53 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: W3C
Oct 11, 2022 11:13:55 PM org.openqa.selenium.devtools.CdpVersionFinder findNearestMatch
WARNING: Unable to find an exact match for CDP version 106, so returning the closest version found: a no-op implementation
Oct 11, 2022 11:13:55 PM org.openqa.selenium.devtools.CdpVersionFinder findNearestMatch
INFO: Unable to find CDP implementation matching 106.
Oct 11, 2022 11:13:55 PM org.openqa.selenium.chromium.ChromiumDriver lambda$new$3
WARNING: Unable to find version of CDP to use for . You may need to include a dependency on a specific version of the CDP using something similar to `org.seleniumhq.selenium:selenium-devtools-v86:4.1.3` where the version ("v86") matches the version of the chromium-based browser you're using and the version number of the artifact is the same as Selenium's.
[main] INFO com.page.MainApp - URL: data:,
[main] INFO com.DefaultTest - AfterClass start
[main] INFO com.DefaultTest - BeforeClass start
[main] INFO io.github.bonigarcia.wdm.WebDriverManager - Using chromedriver 106.0.5249.61 (resolved driver for Chrome 106)
[main] INFO io.github.bonigarcia.wdm.WebDriverManager - Exporting webdriver.chrome.driver as /var/lib/jenkins/.cache/selenium/chromedriver/linux64/106.0.5249.61/chromedriver
Starting ChromeDriver 106.0.5249.61 (511755355844955cd3e264779baf0dd38212a4d0-refs/branch-heads/5249#{#569}) on port 50463
Only local connections are allowed.
Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe.
ChromeDriver was started successfully.
[1665530123.403][WARNING]: Timed out connecting to Chrome, retrying...
[1665530132.591][WARNING]: Timed out connecting to Chrome, retrying...
[1665530149.634][WARNING]: Timed out connecting to Chrome, giving up.
[1665530156.893][WARNING]: Timed out connecting to Chrome, retrying...
[1665530166.364][WARNING]: Timed out connecting to Chrome, retrying...
[1665530186.944][WARNING]: Timed out connecting to Chrome, giving up.
Build timed out (after 3 minutes). Marking the build as failed.
[[1;34mINFO[m]
[[1;34mINFO[m] Results:
[[1;34mINFO[m]
[[1;34mINFO[m] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[[1;34mINFO[m]
[[1;34mINFO[m] [1m------------------------------------------------------------------------[m
[[1;34mINFO[m] [1;31mBUILD FAILURE[m
[[1;34mINFO[m] [1m------------------------------------------------------------------------[m
[[1;34mINFO[m] Total time: 03:07 min
[[1;34mINFO[m] Finished at: 2022-10-11T23:16:40Z
I'm not sure how to resolve this.
I have google chrome and chromedriver on the same version (v106).
I've attempted adding countless arguments that people have suggested, but still can't get it to run successfully

Error Installing RabbitMQ on Ubuntu 16.04

I'm trying to setup RabbitMQ on Ubuntu 16.04. I've installed Erlang on my machine by following this blog. I'm getting this error when I do this sudo apt-get install rabbitmq-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
rabbitmq-server is already the newest version (3.8.0-1).
0 upgraded, 0 newly installed, 0 to remove and 118 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Setting up rabbitmq-server (3.8.0-1) ...
Job for rabbitmq-server.service failed because the control process exited with error code.
See "systemctl status rabbitmq-server.service" and "journalctl -xe" for details.
invoke-rc.d: initscript rabbitmq-server, action "start" failed.
● rabbitmq-server.service - RabbitMQ broker
Loaded: loaded (/lib/systemd/system/rabbitmq-server.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Fri 2019-10-11 19:35:40 IST; 4ms ago
Process: 20134 ExecStart=/usr/lib/rabbitmq/bin/rabbitmq-server (code=exited, status=1/FAILURE)
Main PID: 20134 (code=exited, status=1/FAILURE)
Oct 11 19:35:40 developer-OptiPlex-3020 systemd[1]: Failed to start RabbitMQ broker.
dpkg: error processing package rabbitmq-server (--configure):
installed rabbitmq-server package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
rabbitmq-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
Any knowledge on how to fix this would help me. Thanks.

TRAC XMLRPC Plugin fails to retrieve tickets, even though debug log shows results from Trac[query]

I have a functioning python script that will pull all sorts of information from TRAC XMLRPC except a ticket.query. From the debug log I can see that the query comes in and is processed and finds four (4) tickets; however the return is empty.
I have replaced the ServerProxy site with http://trac-hacks.org/rpc, and it works.
Configuration:
Trac 1.0.1
Apache 2.2
XMLPRC plugin 1.1.5
Python 2.7.6
Active Directory
Code:
from xmlrpclib import *
p = ServerProxy('http://user:password#host/trac/project/login/xmlrpc')
print p.system.getAPIVersion()
print p.ticket.query("max=0&status!=closed")
Return:
[1, 1, 5]
[]
Debug Log:
2016-07-07 07:46:42,240 Trac[web_ui] DEBUG: RPC incoming request of content type 'text/xml' dispatched to <tracrpc.xml_rpc.XmlRpcProtocol object at 0x03D3E630>
2016-07-07 07:46:42,240 Trac[web_ui] DEBUG: RPC(XML-RPC) call by 'user'
2016-07-07 07:46:42,240 Trac[xml_rpc] DEBUG: RPC(xml) call by 'user', method 'ticket.query' with args: ('max=0&status!=closed',)
2016-07-07 07:46:42,240 Trac[web_ui] DEBUG: RPC(XML-RPC) call by 'user' ticket.query
2016-07-07 07:46:42,240 Trac[query] DEBUG: Count results in Query: 4
2016-07-07 07:46:42,240 Trac[xml_rpc] DEBUG: RPC(xml) 'ticket.query' result: []

Sonarqube not Importing issues reported by OCLint

I am doing Objective-C code analysis by using sonarqube. The configuration is as below:
SonarQube 5.4
Objective-C (Community) 5.0.0
xcode 6
xctool
OCLint 0.10.2
The OCLint doing the analysis and puting it in to the sonar-reports/oclint.xml. But nothing is coming-up on sonar dashboard.
Following is the log:
Running run-sonar.sh...
Xcode workspace file is:
Xcode project file is: demo.xcodeproj
Xcode application scheme is: demo
Xcode test scheme is:
Excluded paths from coverage are:
-n Extracting Xcode project information
+ xctool -project demo.xcodeproj -sdk iphonesimulator ARCHS=i386 VALID_ARCHS=i386 CURRENT_ARCH=i386 ONLY_ACTIVE_ARCH=NO -scheme demo clean
[Info] Loading settings for scheme 'demo' ... (3057 ms)
=== CLEAN ===
xcodebuild clean demo
demo / demo (Debug)
✓ Check dependencies (363 ms)
✓ Remove demo.app (73 ms)
✓ Remove demo.app.dSYM (73 ms)
✓ Remove demo.build (132 ms)
0 errored, 0 warning (526 ms)
demo / demoTests (Debug)
✓ Check dependencies (0 ms)
✓ Remove demoTests.xctest (1 ms)
✓ Remove demoTests.xctest.dSYM (1 ms)
✓ Remove demoTests.build (3 ms)
0 errored, 0 warning (5 ms)
xcodebuild build clean
demo / demo (Debug)
✓ Check dependencies (119 ms)
✓ Create product structure (0 ms)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
/bin/mkdir -p /Users/vikas/Library/Developer/Xcode/DerivedData/demo-bjvmeyunxomqaoezclqtsosfosgc/Build/Products/Debug-iphonesimulator/demo.app
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✓ Remove demo.app.dSYM (0 ms)
✓ Remove demo.build (0 ms)
✓ Remove demo.app (1 ms)
0 errored, 0 warning (124 ms)
demo / demoTests (Debug)
✓ Check dependencies (0 ms)
✓ Create product structure (0 ms)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
/bin/mkdir -p /Users/vikas/Library/Developer/Xcode/DerivedData/demo-bjvmeyunxomqaoezclqtsosfosgc/Build/Products/Debug-iphonesimulator/demoTests.xctest
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✓ Remove demoTests.xctest (0 ms)
✓ Remove demoTests.xctest.dSYM (0 ms)
✓ Remove demoTests.build (0 ms)
0 errored, 0 warning (3 ms)
** CLEAN SUCCEEDED ** (2229 ms)
+ returnValue=0
+ set +x
+ xctool -project demo.xcodeproj -sdk iphonesimulator ARCHS=i386 VALID_ARCHS=i386 CURRENT_ARCH=i386 ONLY_ACTIVE_ARCH=NO -scheme demo -reporter json-compilation-database:compile_commands.json build
+ returnValue=0
+ set +x
Skipping tests as no test scheme has been provided!
-n Running OCLint...
-n Path included in oclint analysis is: --include .*/demo/demo/..
+ oclint-json-compilation-database --include ../demo/demo/.. -- -max-priority-1 10000 -max-priority-2 10000 -max-priority-3 10000 -report-type pmd -o sonar-reports/oclint.xml
+ returnValue=0
+ set +x
-n Running SonarQube using SonarQube Runner
+ sonar-runner -X
INFO: Scanner configuration file: /usr/local/Cellar/sonar-runner/2.5/libexec/conf/sonar-runner.properties
INFO: Project configuration file: /Users/vikas/Documents/projects/demo/sonar-project.properties
INFO: SonarQube Scanner 2.5
INFO: Java 1.8.0_25 Oracle Corporation (64-bit)
INFO: Mac OS X 10.10.2 x86_64
INFO: Error stacktraces are turned on.
DEBUG: cache: /Users/vikas/.sonar/ws_cache/http%3A%2F%2Flocalhost%3A9000/global
INFO: User cache: /Users/vikas/.sonar/cache
DEBUG: Extract sonar-runner-batch in temp...
DEBUG: Get bootstrap index...
DEBUG: Download: http://localhost:9000/batch_bootstrap/index
DEBUG: Get bootstrap completed
DEBUG: Create isolated classloader...
DEBUG: Start temp cleaning...
DEBUG: Temp cleaning done
DEBUG: Execution getVersion
DEBUG: Execution start
DEBUG: Publish global mode
DEBUG: cache: /Users/vikas/.sonar/ws_cache/http%3A%2F%2Flocalhost%3A9000/global
INFO: Load global repositories
DEBUG: GET 200 http://localhost:9000/batch/global | time=121ms
INFO: Load global repositories (done) | time=532ms
INFO: User cache: /Users/vikas/.sonar/cache
INFO: Load plugins index
DEBUG: GET 200 http://localhost:9000/deploy/plugins/index.txt | time=6ms
INFO: Load plugins index (done) | time=7ms
DEBUG: Load plugins
DEBUG: Load plugins (done) | time=325ms
DEBUG: API compatibility mode is enabled on plugin C# [csharp] (built with API lower than 5.2)
DEBUG: API compatibility mode is enabled on plugin Java [java] (built with API lower than 5.2)
DEBUG: API compatibility mode is enabled on plugin Git [scmgit] (built with API lower than 5.2)
DEBUG: API compatibility mode is enabled on plugin Objective-C (Community) [objectivec] (built with API lower than 5.2)
DEBUG: API compatibility mode is enabled on plugin SVN [scmsvn] (built with API lower than 5.2)
DEBUG: API compatibility mode is enabled on plugin JavaScript [javascript] (built with API lower than 5.2)
DEBUG: Plugins:
DEBUG: * C# 4.4 (csharp)
DEBUG: * Java 3.10 (java)
DEBUG: * Git 1.0 (scmgit)
DEBUG: * Objective-C (Community) 0.5.0-SNAPSHOT (objectivec)
DEBUG: * SVN 1.2 (scmsvn)
DEBUG: * JavaScript 2.10 (javascript)
INFO: Default locale: "en_US", source code encoding: "UTF-8"
DEBUG: Work directory: /Users/vikas/Documents/projects/demo/.sonar
DEBUG: Execution getVersion
DEBUG: Execution execute
INFO: Process project properties
DEBUG: Process project properties (done) | time=3ms
DEBUG: cache: /Users/vikas/.sonar/ws_cache/http%3A%2F%2Flocalhost%3A9000/5.4/projects/OCD1
INFO: Load project repositories
DEBUG: GET 404 http://localhost:9000/batch/project.protobuf?key=OCD1 | time=56ms
DEBUG: Project repository not available - continuing without it
INFO: Load project repositories (done) | time=87ms
INFO: Apply project exclusions
DEBUG: Available languages:
DEBUG: * C# => "cs"
DEBUG: * Java => "java"
DEBUG: * Objective-C (Community) => "objectivec"
DEBUG: * JavaScript => "js"
INFO: Load quality profiles
DEBUG: GET 200 http://localhost:9000/api/qualityprofiles/search.protobuf?defaults=true | time=83ms
INFO: Load quality profiles (done) | time=294ms
INFO: Load active rules
DEBUG: GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives&activation=true&qprofile=cs-sonar-way-37148&p=1&ps=500 | time=43ms
DEBUG: GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives&activation=true&qprofile=java-sonar-way-46287&p=1&ps=500 | time=36ms
DEBUG: GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives&activation=true&qprofile=js-sonar-way-89672&p=1&ps=500 | time=39ms
DEBUG: GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives&activation=true&qprofile=objectivec-oclint-09271&p=1&ps=500 | time=48ms
INFO: Load active rules (done) | time=758ms
INFO: SCM provider autodetection failed. No SCM provider claims to support this project. Please use sonar.scm.provider to define SCM of your project.
INFO: Publish mode
DEBUG: Start recursive analysis of project modules
INFO: ------------- Scan OCDemo
INFO: Language is forced to objectivec
INFO: Load server rules
DEBUG: GET 200 http://localhost:9000/api/rules/list.protobuf | time=361ms
INFO: Load server rules (done) | time=474ms
DEBUG: Initializers :
INFO: Base dir: /Users/vikas/Documents/projects/demo
INFO: Working dir: /Users/vikas/Documents/projects/demo/.sonar
INFO: Source paths: .
INFO: Source encoding: UTF-8, default locale: en_US
INFO: Index files
DEBUG: Declared extensions of language C# were converted to sonar.lang.patterns.cs : **/*.cs
DEBUG: Declared extensions of language Java were converted to sonar.lang.patterns.java : **/*.java,**/*.jav
DEBUG: Declared extensions of language Objective-C (Community) were converted to sonar.lang.patterns.objectivec : **/*.h,**/*.m
DEBUG: Declared extensions of language JavaScript were converted to sonar.lang.patterns.js : **/*.js
DEBUG: Language of file 'demo/AppDelegate.h' is detected to be 'objectivec'
DEBUG: Language of file 'demo/AppDelegate.m' is detected to be 'objectivec'
DEBUG: Language of file 'demo/main.m' is detected to be 'objectivec'
DEBUG: Language of file 'demo/ViewController.m' is detected to be 'objectivec'
DEBUG: Language of file 'demo/ViewController.h' is detected to be 'objectivec'
DEBUG: Language of file 'demoTests/demoTests.m' is detected to be 'objectivec'
INFO: 6 files indexed
INFO: Quality profile for objectivec: OCLint
INFO: JaCoCoSensor: JaCoCo report not found : /Users/vikas/Documents/projects/demo/target/jacoco.exec
INFO: JaCoCoItSensor: JaCoCo IT report not found: /Users/vikas/Documents/projects/demo/target/jacoco-it.exec
DEBUG: Code colorizer, supported languages: cs,objectivec
DEBUG: Sensors : Lines Sensor (wrapped) -> QProfileSensor -> Objective-C Squid Sensor -> SCM Sensor (wrapped) -> Code Colorizer Sensor (wrapped) -> CPD Sensor (wrapped)
INFO: Sensor Lines Sensor (wrapped)
INFO: Sensor Lines Sensor (wrapped) (done) | time=121ms
INFO: Sensor QProfileSensor
INFO: Sensor QProfileSensor (done) | time=5ms
INFO: Sensor Objective-C Squid Sensor
DEBUG: Metric lines is an internal metric computed by SonarQube. Provided value is ignored.
DEBUG: Metric lines is an internal metric computed by SonarQube. Provided value is ignored.
DEBUG: Metric lines is an internal metric computed by SonarQube. Provided value is ignored.
DEBUG: Metric lines is an internal metric computed by SonarQube. Provided value is ignored.
DEBUG: Metric lines is an internal metric computed by SonarQube. Provided value is ignored.
DEBUG: Metric lines is an internal metric computed by SonarQube. Provided value is ignored.
INFO: Sensor Objective-C Squid Sensor (done) | time=256ms
INFO: Sensor SCM Sensor (wrapped)
INFO: No SCM system was detected. You can use the 'sonar.scm.provider' property to explicitly specify it.
INFO: Sensor SCM Sensor (wrapped) (done) | time=0ms
INFO: Sensor Code Colorizer Sensor (wrapped)
INFO: Sensor Code Colorizer Sensor (wrapped) (done) | time=232ms
INFO: Sensor CPD Sensor (wrapped)
INFO: DefaultCpdIndexer is used for objectivec
DEBUG: Populating index from [moduleKey=OCD1, relative=demo/AppDelegate.h, basedir=/Users/vikas/Documents/projects/demo]
DEBUG: Populating index from [moduleKey=OCD1, relative=demo/AppDelegate.m, basedir=/Users/vikas/Documents/projects/demo]
DEBUG: Populating index from [moduleKey=OCD1, relative=demo/ViewController.h, basedir=/Users/vikas/Documents/projects/demo]
DEBUG: Populating index from [moduleKey=OCD1, relative=demo/ViewController.m, basedir=/Users/vikas/Documents/projects/demo]
DEBUG: Populating index from [moduleKey=OCD1, relative=demo/main.m, basedir=/Users/vikas/Documents/projects/demo]
DEBUG: Populating index from [moduleKey=OCD1, relative=demoTests/demoTests.m, basedir=/Users/vikas/Documents/projects/demo]
INFO: Sensor CPD Sensor (wrapped) (done) | time=29ms
DEBUG: Detection of duplications for OCD1:demo/ViewController.m
DEBUG: Detection of duplications for OCD1:demo/AppDelegate.m
DEBUG: Detection of duplications for OCD1:demoTests/demoTests.m
INFO: Analysis report generated in 70ms, dir size=11 KB
INFO: Analysis reports compressed in 54ms, zip size=10 KB
DEBUG: Upload report
DEBUG: POST 200 http://localhost:9000/api/ce/submit?projectKey=OCD1&projectName=OCDemo | time=416ms
INFO: Analysis report uploaded in 436ms
INFO: ANALYSIS SUCCESSFUL, you can browse http://localhost:9000/dashboard/index/OCD1
INFO: Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report
INFO: More about the report processing at http://localhost:9000/api/ce/task?id=AVR6giSDVdsGRifC8N_i
DEBUG: Report metadata written to /Users/vikas/Documents/projects/demo/.sonar/report-task.txt
DEBUG: Post-jobs :
INFO: Analysis report generated in /Users/vikas/Documents/projects/demo/.sonar/batch-report
INFO: ------------------------------------------------------------------------
INFO: EXECUTION SUCCESS
INFO: ------------------------------------------------------------------------
INFO: Total time: 14.414s
INFO: Final Memory: 41M/134M
INFO: ------------------------------------------------------------------------
DEBUG: Execution getVersion
DEBUG: Execution stop
+ returnValue=0
+ set +x
I got the solution.This issues because of older version of OCLint. I download the latest one from git fork. Along with this I Set the Parent of Profile Oclit-> Objective-C and it start working.

Install Apache from Puppetlabs on Vagrant

I'm new to this and I think I'm just missing one thing to grasp what the problem really is.
I understand that I can create my own puppet modules that will install certain packpages to a vagrant instance. There are also some ready-made ones, like this apache. I've run
vagrant ssh and installed it using puppet module install puppetlabs/apache. It now resides under /etc/puppet/modules/apache. But, the apache is not installed.
So, how do I install apache?
In my Vagrantfile I have
config.vm.provision :puppet do |puppet|
puppet.manifests_path = "puppet/manifests"
puppet.module_path = "puppet/modules"
puppet.manifest_file = "init.pp"
puppet.options="--verbose --debug"
end
Plus, in the main vagrant directory, under puppet/modules/apache/manifests/init.pp:
class apache2::install {
package { 'apache2':
ensure => present,
}
}
and yet, after vagrant provision or vagrant reload no apache is being installed, or what I guess, the installation process doesn't even start.
Log from after the vagrant provision, whose messages look totally cryptic to me.
[default] Running provisioner: puppet...
Running Puppet with init.pp...
debug: Creating default schedules
debug: Puppet::Type::User::ProviderDirectoryservice: file /usr/bin/dscl does not exist
debug: Puppet::Type::User::ProviderUser_role_add: file rolemod does not exist
debug: Puppet::Type::User::ProviderLdap: true value when expecting false
debug: Puppet::Type::User::ProviderPw: file pw does not exist
debug: Failed to load library 'ldap' for feature 'ldap'
debug: /File[/var/lib/puppet/ssl/certificate_requests]: Autorequiring File[/var/lib/puppet/ssl]
debug: /File[/var/lib/puppet/state/graphs]: Autorequiring File[/var/lib/puppet/state]
debug: /File[/var/lib/puppet/ssl/public_keys]: Autorequiring File[/var/lib/puppet/ssl]
debug: /File[/var/lib/puppet/facts]: Autorequiring File[/var/lib/puppet]
debug: /File[/var/lib/puppet/ssl/private_keys]: Autorequiring File[/var/lib/puppet/ssl]
debug: /File[/var/lib/puppet/client_yaml]: Autorequiring File[/var/lib/puppet]
debug: /File[/var/lib/puppet/state/last_run_report.yaml]: Autorequiring File[/var/lib/puppet/state]
debug: /File[/var/lib/puppet/client_data]: Autorequiring File[/var/lib/puppet]
debug: /File[/var/lib/puppet/state/state.yaml]: Autorequiring File[/var/lib/puppet/state]
debug: /File[/var/lib/puppet/ssl/certs]: Autorequiring File[/var/lib/puppet/ssl]
debug: /File[/var/lib/puppet/lib]: Autorequiring File[/var/lib/puppet]
debug: /File[/var/lib/puppet/ssl/private]: Autorequiring File[/var/lib/puppet/ssl]
debug: /File[/var/lib/puppet/state/last_run_summary.yaml]: Autorequiring File[/var/lib/puppet/state]
debug: /File[/var/lib/puppet/state]: Autorequiring File[/var/lib/puppet]
debug: /File[/var/lib/puppet/clientbucket]: Autorequiring File[/var/lib/puppet]
debug: /File[/var/lib/puppet/ssl]: Autorequiring File[/var/lib/puppet]
debug: Finishing transaction 70208664910260
debug: Loaded state in 0.00 seconds
debug: Loaded state in 0.00 seconds
info: Applying configuration version '1389652562'
debug: /Schedule[daily]: Skipping device resources because running on a host
debug: /Schedule[monthly]: Skipping device resources because running on a host
debug: /Schedule[hourly]: Skipping device resources because running on a host
debug: /Schedule[never]: Skipping device resources because running on a host
debug: /Schedule[weekly]: Skipping device resources because running on a host
debug: /Schedule[puppet]: Skipping device resources because running on a host
debug: Finishing transaction 70208665347780
debug: Storing state
debug: Stored state in 0.00 seconds
notice: Finished catalog run in 0.05 seconds
debug: Finishing transaction 70208665012580
debug: Received report to process from localhost.localdomain
debug: Processing report from localhost.localdomain with processor Puppet::Reports::Store
You've told Vagrant that it should look for manifests in puppet/manifests (relative to your Vagrant directory), and that it should configure the machine based on whatever is in init.pp, which it will look for in puppet/manifests (as per your instructions). That is, Vagrant will install whatever is in puppet/manifests/init.pp. It will not look at puppet/modules/apache/manifests/init.pp (at least, not at first).
Put something like the following in puppet/manifests/init.pp and it should install properly.
class {'apache':}
In addition to the apache module, make sure you have all dependancies (the stdlib and concat modules from Puppetlabs in this case) installed in your puppet/modules directory, too.
I went with a solution I don't fully like, as it overwrites any settings not provisioned by puppet. But hey, it gets the job done smoothly.
My Vagrantfile:
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "base"
#config.vm.box_url = "http://domain.com/path/to/above.box"
config.vm.network :forwarded_port, guest: 80, host: 5656, auto_correct: true
config.vm.provision :shell do |shell|
shell.inline = "mkdir -p /etc/puppet/modules;
puppet module install puppetlabs-concat --force --modulepath '/vagrant/puppet/modules'
puppet module install puppetlabs-stdlib --force --modulepath '/vagrant/puppet/modules'
puppet module install puppetlabs-apache --force --modulepath '/vagrant/puppet/modules'"
end
config.vm.provision :puppet do |puppet|
puppet.manifests_path = "puppet/manifests"
puppet.module_path = "puppet/modules"
puppet.manifest_file = "init.pp"
puppet.options="--verbose --debug"
end
end
Note: the script may actually also work without --force --modulepath '/vagrant/puppet/modules
My puppet/manifests/init.pp
node default {
class { 'apache': }
}
Thanks to https://stackoverflow.com/a/21105703/2066118 for pointing me into the right direction.
I'm not sure about Vagrant, but in puppet you need to mention what needed to install in a node on '/etc/puppet/manifests/site.pp' file.
So it will be like this.
node 'hosts.fqdn' {
include apache2
}
For more information : http://docs.puppetlabs.com/puppet/2.7/reference/lang_node_definitions.html