lightspeedretail / castor Goto Github PK
View Code? Open in Web Editor NEWMySQL/RDS log processor and collector
License: MIT License
MySQL/RDS log processor and collector
License: MIT License
/opt/castor/1.0.2/lib/castor/parser.rb:57:in `block in general': undefined method `downcase' for nil:NilClass (NoMethodError)
from /opt/castor/1.0.2/lib/castor/parser.rb:39:in `each'
from /opt/castor/1.0.2/lib/castor/parser.rb:39:in `general'
from /opt/castor/1.0.2/lib/castor/core.rb:93:in `processing'
from /opt/castor/1.0.2/lib/castor/core.rb:53:in `run'
from /usr/bin/castor:4:in `<main>'
When this condition happens, it should print the message and exit 0. Otherwise, that triggers a CRON mail.
/opt/castor/1.0.2/lib/castor/cli.rb:84:in `locked?': Found a lock. Exiting. (RuntimeError)
from /opt/castor/1.0.2/lib/castor/core.rb:33:in `run'
Shouldn't raise, as it triggers a CRON mail.
Should check how old the lock is, and remove it if it's older than 15 mins.
/opt/castor/1.0.2/lib/castor/fetcher.rb:17:in `file_size': undefined method `[]' for nil:NilClass (NoMethodError)
from /opt/castor/1.0.2/lib/castor/core.rb:31:in `run'
from /usr/bin/castor:4:in `<main>'
Possibly version related. I have been unable to get your code to execute against a test RDS.
I know my IAM role is correct, as I can test with the command line tools:
aws rds download-db-log-file-portion --db-instance-identifier testdb --log-file-name general/mysql-general.log.22 --max-items 1000 --output text
However executing your tool seems to have an authentication issue, with or without the temporary credentials, I always get this error.
./castor -n testdb -r us-west-2 -t general -a -p rdsadmrole
/home/testguy/.rvm/gems/ruby-2.2.3/gems/aws-sdk-core-2.2.35/lib/aws-sdk-core/signers/v4.rb:233:in `digest': no implicit conversion of true into String (TypeError)
from /home/testguy/.rvm/gems/ruby-2.2.3/gems/aws-sdk-core-2.2.35/lib/aws-sdk-core/signers/v4.rb:233:in `hmac'
from /home/testguy/.rvm/gems/ruby-2.2.3/gems/aws-sdk-core-2.2.35/lib/aws-sdk-core/signers/v4.rb:117:in `signature'
from /home/testguy/.rvm/gems/ruby-2.2.3/gems/aws-sdk-core-2.2.35/lib/aws-sdk-core/signers/v4.rb:106:in `authorization'
from /home/testguy/.rvm/gems/ruby-2.2.3/gems/aws-sdk-core-2.2.35/lib/aws-sdk-core/signers/v4.rb:58:in `sign'
from /home/testguy/.rvm/gems/ruby-2.2.3/gems/aws-sdk-core-2.2.35/lib/aws-sdk-core/signers/v4.rb:33:in `sign'
from /home/testguy/.rvm/gems/ruby-2.2.3/gems/aws-sdk-core-2.2.35/lib/aws-sdk-core/plugins/request_signer.rb:93:in `sign_authenticated_requests'
from /home/testguy/.rvm/gems/ruby-2.2.3/gems/aws-sdk-core-2.2.35/lib/aws-sdk-core/plugins/request_signer.rb:83:in `call'
from /home/testguy/.rvm/gems/ruby-2.2.3/gems/aws-sdk-core-2.2.35/lib/aws-sdk-core/plugins/retry_errors.rb:87:in `call'
from /home/testguy/.rvm/gems/ruby-2.2.3/gems/aws-sdk-core-2.2.35/lib/aws-sdk-core/query/handler.rb:27:in `call'
from /home/testguy/.rvm/gems/ruby-2.2.3/gems/aws-sdk-core-2.2.35/lib/aws-sdk-core/plugins/user_agent.rb:12:in `call'
from /home/testguy/.rvm/gems/ruby-2.2.3/gems/aws-sdk-core-2.2.35/lib/seahorse/client/plugins/endpoint.rb:41:in `call'
from /home/testguy/.rvm/gems/ruby-2.2.3/gems/aws-sdk-core-2.2.35/lib/aws-sdk-core/plugins/param_validator.rb:21:in `call'
from /home/testguy/.rvm/gems/ruby-2.2.3/gems/aws-sdk-core-2.2.35/lib/seahorse/client/plugins/raise_response_errors.rb:14:in `call'
from /home/testguy/.rvm/gems/ruby-2.2.3/gems/aws-sdk-core-2.2.35/lib/aws-sdk-core/plugins/param_converter.rb:20:in `call'
from /home/testguy/.rvm/gems/ruby-2.2.3/gems/aws-sdk-core-2.2.35/lib/aws-sdk-core/plugins/response_paging.rb:26:in `call'
from /home/testguy/.rvm/gems/ruby-2.2.3/gems/aws-sdk-core-2.2.35/lib/seahorse/client/plugins/response_target.rb:21:in `call'
from /home/testguy/.rvm/gems/ruby-2.2.3/gems/aws-sdk-core-2.2.35/lib/seahorse/client/request.rb:70:in `send_request'
from /home/testguy/.rvm/gems/ruby-2.2.3/gems/aws-sdk-core-2.2.35/lib/seahorse/client/base.rb:207:in `block (2 levels) in define_operation_methods'
from /home/testguy/castor/lib/castor/fetcher.rb:16:in `file_size'
from /home/testguy/castor/lib/castor/core.rb:31:in `run'
from ./castor:4:in `<main>'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.