Forums | Admin

Discussion Forums: open-discussion

Start New Thread Start New Thread

 

By: kyle buttress
RE: tried to use new version today [ reply ]  
2007-10-17 09:38
I think it was the editor I was using, textpad.. I replace my version with your original and hen just changed the words I needed and used a different editor jEdit.

All working well

By: Erlend Simonsen
RE: tried to use new version today [ reply ]  
2007-10-17 07:03
Hidden characters? Where'd they come from?

-- Erlend

By: kyle buttress
RE: tried to use new version today [ reply ]  
2007-10-16 21:35
I found that if there are some hidden chars in the yaml file then. it crases like you say. It took a few experiments to find a way to remove the hidden chars. Other than that I'm not sure what causes the issue with yaml.

By: kyle buttress
RE: tried to use new version today [ reply ]  
2007-10-16 21:28
Here is the trace without the if referrer line

C:\ruby\gl_tail-0.06>gl_tail.rb
Connecting to xxx.xxxx.xxxxxxxx.xxx.au...
Channel opened on xxx.xxxx.xxxxxxxx.xxx.au...
Pushing xxx.xxxx.xxxxxxxx.xxx.au
Connecting to xxx.xxxx.xxxxxxxx.xxx.au...
Channel opened on xxx.xxxx.xxxxxxxx.xxx.au...
Pushing xxx.xxxx.xxxxxxxx.xxx.au
Connecting to xxx.xxxx.xxxxxxxx.xxx.au...
Channel opened on xxx.xxxx.xxxxxxxx.xxx.au...
Pushing xxx.xxxx.xxxxxxxx.xxx.au
Connecting to xxx.xxxx.xxxxxxxx.xxx.au...
Channel opened on xxx.xxxx.xxxxxxxx.xxx.au...
Pushing xxx.xxxx.xxxxxxxx.xxx.au
Connecting to xxx.xxxx.xxxxxxxx.xxx.au...
Channel opened on xxx.xxxx.xxxxxxxx.xxx.au...
Pushing xxx.xxxx.xxxxxxxx.xxx.au
Connecting to xxx.xxxx.xxxxxxxx.xxx.au...
Channel opened on xxx.xxxx.xxxxxxxx.xxx.au...
Pushing xxx.xxxx.xxxxxxxx.xxx.au
Reshape: 1200x700 = 0.583333333333333
1 frames in 6.400 seconds = 0.156 FPS
Elements[0], Activities[0]
./lib/parsers/apache.rb:22:in `parse': private method `gsub!' called for nil:NilClass (NoMethodError)
from ./lib/gl_tail.rb:266:in `parse_line'
from ./lib/gl_tail.rb:252:in `each'
from ./lib/gl_tail.rb:252:in `parse_line'
from ./lib/gl_tail.rb:282:in `do_tail'
from c:/ruby/lib/ruby/gems/1.8/gems/net-ssh-1.1.2/lib/net/ssh/connection/channel.rb:496:in `call'
from c:/ruby/lib/ruby/gems/1.8/gems/net-ssh-1.1.2/lib/net/ssh/connection/channel.rb:496:in `callback'
from c:/ruby/lib/ruby/gems/1.8/gems/net-ssh-1.1.2/lib/net/ssh/connection/channel.rb:447:in `do_data'
from c:/ruby/lib/ruby/gems/1.8/gems/net-ssh-1.1.2/lib/net/ssh/connection/driver.rb:323:in `do_channel_data'

... 7 levels...
from ./lib/gl_tail.rb:248:in `call'
from ./lib/gl_tail.rb:248:in `glutMainLoop'
from ./lib/gl_tail.rb:248:in `start'
from C:/ruby/gl_tail-0.06/gl_tail.rb:150

and when I add the if referrer line in the apache.rb it works fine

By: Barrett Little
RE: tried to use new version today [ reply ]  
2007-10-16 14:15
Erlend,

Updating my source from r50 to r52 did the trick.

========================================
- def initialize file = 'config.yaml'
+ def initialize file
+ file ||= "config.yaml"
----------------------------------------

~ Barrett

By: Erlend Simonsen
RE: tried to use new version today [ reply ]  
2007-10-16 12:37
Could you have a look at the config.yaml and make sure it's not malformed due to Subversion trying to merge in some changes?

(And possibly, anonymize your server/login information and mail the whole thing to mr@fudgie.org?) />
-- Erlend

By: Barrett Little
RE: tried to use new version today [ reply ]  
2007-10-16 12:33
Erlend,

As of r46 through r50 I am receiving the same error noted by Kyle:

/usr/local/lib/ruby/1.8/yaml.rb:143:in `initialize': can't convert nil into String (TypeError)
from /usr/local/lib/ruby/1.8/yaml.rb:143:in `load_file'
from ./gl_tail.rb:57:in `initialize'
from ./gl_tail.rb:172

~ Barrett

-------------
OS X 10.4.10
Ruby 1.8.4 [powerpc-darwin8.7.0]
RubyGems 0.9.4
ruby-opengl 0.40.1
net-ssh 1.1.2
-------------

By: kyle buttress
RE: tried to use new version today [ reply ]  
2007-10-16 11:22
I'll recreate the error when I return to work in the morning, I'll post the response then.

Though I now have it working it is very impressive.

If I could figure out the colour scheme it will be very nice.

By: Erlend Simonsen
RE: tried to use new version today [ reply ]  
2007-10-16 06:59
Do you have the stacktrace still? It's not supposed to die on different log formats, but rather ignore them.

By: kyle buttress
RE: tried to use new version today [ reply ]  
2007-10-16 06:17
used the if referrer at the end of the line and now working just fine.

Thanks

By: kyle buttress
RE: tried to use new version today [ reply ]  
2007-10-16 00:55
I got it working however I think my logs are a bit different, because when I go to look at some of the servers It crashes.

thanks

By: kyle buttress
RE: tried to use new version today [ reply ]  
2007-10-16 00:28
I must have the worst ruby install ever...

I have revision 46 from svn however I edit the config.yaml file and then try to run it I get the following errror.

C:\Documents and Settings\s2194575\Desktop\fudgie\gl_16102007>ruby gl_tail.rb
c:/ruby/lib/ruby/1.8/yaml.rb:143:in `initialize': can't convert nil into String
(TypeError)
from c:/ruby/lib/ruby/1.8/yaml.rb:143:in `open'
from c:/ruby/lib/ruby/1.8/yaml.rb:143:in `load_file'
from gl_tail.rb:58:in `initialize'
from gl_tail.rb:173:in `new'
from gl_tail.rb:173

What am I doint wrong?


By: Erlend Simonsen
RE: tried to use new version today [ reply ]  
2007-10-15 19:23
Should be 'fixed' in subversion, meaning it won't crash, but it won't understand any more of your logs as they're in a different format than the Squid parser I got contributed handles.

By: Erlend Simonsen
RE: tried to use new version today [ reply ]  
2007-10-15 08:40
Something is returning a nil name for an activity. Which parsers are you using? Could you run with --debug and mail me (mr@fudgie.org) the last line printed before the stacktrace?


By: urs meier
RE: tried to use new version today [ reply ]  
2007-10-15 08:12
i've been using macosx and since the last update i get the following error:

./gl_tail.rb
Connecting to xxx...
Channel opened on xxx...
Pushing xxx
Connecting to yyy...
Channel opened on yyy...
Pushing yyy
Connecting to zzz...
Channel opened on zzz...
Pushing zzz
Reshape: 1200x600 = 0.5
./lib/element.rb:144:in `render': undefined method `+' for nil:NilClass (NoMethodError)
from ./lib/block.rb:47:in `render'
from ./lib/block.rb:45:in `each'
from ./lib/block.rb:45:in `render'
from ./lib/gl_tail.rb:101:in `draw'
from ./lib/gl_tail.rb:100:in `each'
from ./lib/gl_tail.rb:100:in `draw'
from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in `to_proc'
from ./lib/gl_tail.rb:248:in `call'
from ./lib/gl_tail.rb:248:in `glutMainLoop'
from ./lib/gl_tail.rb:248:in `start'
from ./gl_tail.rb:150

btw. thanks for this really cool project


By: Erlend Simonsen
RE: tried to use new version today [ reply ]  
2007-10-15 07:46
Could you paste a small example of what breaks?

By: Erlend Simonsen
RE: tried to use new version today [ reply ]  
2007-10-15 07:02
Just comment out that line, or add an "if referrer" to the end of it.

By: kyle buttress
RE: tried to use new version today [ reply ]  
2007-10-15 01:25
found that config.yaml does not like spaces or tabs in the servers area?

however it then displays the following error.

C:\ruby\gl_tail-0.06>gl_tail6.rb
C:/ruby/gl_tail-0.06/gl_tail6.rb:56: undefined method `each' for nil:NilClass (NoMethodError)

By: kyle buttress
tried to use new version today [ reply ]  
2007-10-14 23:15
Hi,

I have been using the older setup for a week or so and found it very useful.

I downloaded the new version 0.06 today and set it up, to test.

and received the following error.

C:\ruby\gl_tail-0.06>gl_tail.rb
Connecting to webaddress.au...
Channel opened on awebaddress.au...
Pushing webaddress.au
Reshape: 1200x600 = 0.5
./lib/parsers/apache.rb:22:in `parse': private method `gsub!' called for nil:NilClass (NoMethodError)
from ./lib/gl_tail.rb:266:in `parse_line'
from ./lib/gl_tail.rb:252:in `each'
from ./lib/gl_tail.rb:252:in `parse_line'
from ./lib/gl_tail.rb:282:in `do_tail'
from c:/ruby/lib/ruby/gems/1.8/gems/net-ssh-1.1.2/lib/net/ssh/connection/channel.rb:496:in `call'
from c:/ruby/lib/ruby/gems/1.8/gems/net-ssh-1.1.2/lib/net/ssh/connection/channel.rb:496:in `callback'
from c:/ruby/lib/ruby/gems/1.8/gems/net-ssh-1.1.2/lib/net/ssh/connection/channel.rb:447:in `do_data'
from c:/ruby/lib/ruby/gems/1.8/gems/net-ssh-1.1.2/lib/net/ssh/connection/driver.rb:323:in `do_channel_data'

... 7 levels...
from ./lib/gl_tail.rb:248:in `call'
from ./lib/gl_tail.rb:248:in `glutMainLoop'
from ./lib/gl_tail.rb:248:in `start'
from C:/ruby/gl_tail-0.06/gl_tail.rb:150