Skip to content

Instantly share code, notes, and snippets.

@jkutner
jkutner / gist:1644498
Created January 20, 2012 01:52
Vagrant debug output #2
$ VAGRANT_LOG=debug vagrant up
INFO vagrant: `vagrant` invoked: ["up"]
DEBUG vagrant: Creating Vagrant environment
INFO environment: Environment initialized (#<Vagrant::Environment:0x5b4e2266>)
INFO environment: - cwd: ~/workspace/myapp
INFO environment: Home path: ~/.vagrant.d
DEBUG vagrant: Loading environment
INFO environment: Loading configuration...
DEBUG loader: Set :default = "~/.rvm/gems/jruby-1.6.5/gems/vagrant-0.9.1.1/config/default.rb"
DEBUG loader: Populating proc cache for "~/.rvm/gems/jruby-1.6.5/gems/vagrant-0.9.1.1/config/default.rb"
@jkutner
jkutner / output.log
Created January 20, 2012 12:56
The Subprocess from Vagrant
$ uname -a
Darwin largo.local 11.2.0 Darwin Kernel Version 11.2.0: Tue Aug 9 20:54:00 PDT 2011; root:xnu-1699.24.8~1/RELEASE_X86_64 x86_64
$ ruby -v
jruby 1.6.5 (ruby-1.8.7-p330) (2011-10-25 9dcd388) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_29) [darwin-x86_64-java]
$ ruby subprocess.rb
INFO subprocess: Starting process: ["VBoxManage", "--version"]
DEBUG subprocess: Selecting on IO
DEBUG subprocess: stdout: 4.1.8r75467
DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 32000
[Host Controller] 09:01:34,227 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) JBAS014612: Operation ("parallel-extension-add") failed - address: ([]): java.lang.RuntimeException: JBAS014670: Failed initializing module org.torquebox.core
[Host Controller] at org.jboss.as.controller.operations.common.ParallelExtensionAddHandler$1.execute(ParallelExtensionAddHandler.java:100) [jboss-as-controller-7.1.0.CR1b.jar:7.1.0.CR1b]
[Host Controller] at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:359) [jboss-as-controller-7.1.0.CR1b.jar:7.1.0.CR1b]
[Host Controller] at org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:254) [jboss-as-controller-7.1.0.CR1b.jar:7.1.0.CR1b]
[Host Controller] at org.jboss.as.controller.AbstractOperationContext.completeStep(AbstractOperationContext.java:190) [jboss-as-controller-7.1.0.CR1b.jar:7.1.0.CR1b]
[Host Controller] at org.jboss.as.controller.ModelControllerImpl.
@jkutner
jkutner / torquebox-node1.log
Created January 22, 2012 22:26
log from the second node in a torquebox cluster
16:24:09,870 INFO [org.jboss.as.clustering.CoreGroupCommunicationService.lifecycle.web] (Incoming-4,null) JBAS010267: New cluster view for partition web (id: 1, delta: 1, merge: false) : [largo/web, largo/web]
16:24:09,873 INFO [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (Incoming-4,null) ISPN000094: Received new cluster view: [largo/web|1] [largo/web, largo/web]
16:24:10,014 INFO [org.jboss.as.clustering.CoreGroupCommunicationService.lifecycle.twitalytics-knob.yml] (Incoming-9,null) JBAS010267: New cluster view for partition twitalytics-knob.yml (id: 1, delta: 1, merge: false) : [largo/twitalytics-knob.yml, largo/twitalytics-knob.yml]
16:24:10,014 INFO [org.projectodd.polyglot.hasingleton] (AsynchViewChangeHandler Thread) inquire if we should be master
16:24:10,015 INFO [org.projectodd.polyglot.hasingleton] (AsynchViewChangeHandler Thread) Becoming HASingleton master.
@jkutner
jkutner / torquebox.log
Created January 25, 2012 18:20
error when deploying backstage to 2.0.0-beta3
12:17:12,586 INFO [org.jboss.as.server.deployment] (MSC service thread 1-8) Starting deployment of "torquebox-backstage-knob.yml"
12:17:12,740 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC00001: Failed to start service jboss.deployment.unit."torquebox-backstage-knob.yml".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."torquebox-backstage-knob.yml".INSTALL: Failed to process phase INSTALL of deployment "torquebox-backstage-knob.yml"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121) [jboss-as-server-7.x.incremental.260.jar:7.x.incremental.260]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_29]
at
@jkutner
jkutner / console.log
Created February 5, 2012 23:04
childprocess bug with long output
$ uname -a
Darwin largo.local 11.2.0 Darwin Kernel Version 11.2.0: Tue Aug 9 20:54:00 PDT 2011; root:xnu-1699.24.8~1/RELEASE_X86_64 x86_64
$ ruby -v
jruby 1.6.5 (ruby-1.8.7-p330) (2011-10-25 9dcd388) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_29) [darwin-x86_64-java]
$ ruby temp.rb
INFO subprocess: Starting process: ["cat", "temp.rb"]
DEBUG subprocess: Selecting on IO
NativeException: java.lang.IndexOutOfBoundsException: null
pump at ~/.rvm/gems/jruby-1.6.5/gems/childprocess-0.3.0/lib/childprocess/jruby/pump.rb:33
run at ~/.rvm/gems/jruby-1.6.5/gems/childprocess-0.3.0/lib/childprocess/jruby/pump.rb:18
@jkutner
jkutner / example.rb
Created February 8, 2012 03:56
Is there a way to catch the :my_val method inside the Local class without defining it?
class Local
def method_missing(*args)
"hello world"
end
end
def my_val
raise "goodbye cruel world"
end
@jkutner
jkutner / trinidad.log
Created February 17, 2012 16:27
Error when running trinidad_resque_extension with trinidad_init_services
set_caps: failed to set capabilities
check that your kernel supports capabilities
set_caps: failed to set capabilities
check that your kernel supports capabilities
NOTE: Gem::GemPathSearcher#initialize is deprecated with no replacement. It will be removed on or after 2011-10-01.
Gem::GemPathSearcher#initialize called from /opt/jruby-1.6.5/lib/ruby/gems/1.8/gems/trinidad_resque_extension-0.1.1/lib/trinidad_resque_extension.rb:51.
NOTE: Gem::GemPathSearcher#find is deprecated with no replacement. It will be removed on or after 2011-10-01.
Gem::GemPathSearcher#find called from /opt/jruby-1.6.5/lib/ruby/gems/1.8/gems/trinidad_resque_extension-0.1.1/lib/trinidad_resque_extension.rb:51.
Feb 17, 2012 8:23:11 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-3000"]
@jkutner
jkutner / vagrant.log
Created February 23, 2012 15:06
log of vagrant reload on jruby
$ VAGRANT_LOG=debug vagrant reload
INFO vagrant: `vagrant` invoked: ["reload"]
DEBUG vagrant: Creating Vagrant environment
INFO environment: Environment initialized (#<Vagrant::Environment:0x1753d79c>)
INFO environment: - cwd: /Users/jkutner/workspace/twitalytics
INFO environment: Home path: /Users/jkutner/.vagrant.d
DEBUG vagrant: Loading environment
INFO environment: Loading configuration...
DEBUG loader: Set :default = "/Users/jkutner/.rvm/gems/jruby-1.6.7/gems/vagrant-0.9.7/config/default.rb"
DEBUG loader: Populating proc cache for "/Users/jkutner/.rvm/gems/jruby-1.6.7/gems/vagrant-0.9.7/config/default.rb"
@jkutner
jkutner / deploy.sh
Created March 11, 2012 18:40
Jruby, Trinidad, Heroku
$ git push heroku master