[Snort-users] Snorby Setup help - ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'

Matthew White on3moda at ...11827...
Wed Feb 3 12:38:58 EST 2016


Hello,

I am getting the following error and would like some feedback.

rake snorby:setup
No time_zone specified in snorby_config.yml; detected time_zone: US/Central
[Hash Here]
ERROR 2002 (HY000): Can't connect to local MySQL server through socket
'/var/lib/mysql/mysql.sock' (2)
[datamapper] Finished auto_upgrade! for :default repository '[Name_Of_Repo]'
* Removing old jobs
* Starting the Snorby worker process.
[X] Error: Unable to start the Snorby worker process.

1. I am not running a MySQL Database locally.
2. I had to make development.log and production.log with touch because they
didn't exist.
3. I ran the following to get rid of PDF errors.

sed -i 's/\(^.*\)\(Mime::Type.register.*application\/pdf.*$\)/\1if
Mime::Type.lookup_by_extension(:pdf) != "application\/pdf"\n\1
\2\n\1end/' vendor/cache/ruby/*.*.*/bundler/gems/ezprint-*/lib/ezprint/railtie.rb
sed -i 's/\(^.*\)\(Mime::Type.register.*application\/pdf.*$\)/\1if
Mime::Type.lookup_by_extension(:pdf) != "application\/pdf"\n\1
\2\n\1end/' vendor/cache/ruby/*.*.*/gems/actionpack-*/lib/action_dispatch/http/mime_types.rb
sed -i 's/\(^.*\)\(Mime::Type.register.*application\/pdf.*$\)/\1if
Mime::Type.lookup_by_extension(:pdf) != "application\/pdf"\n\1
\2\n\1end/' vendor/cache/ruby/*.*.*/gems/railties-*/guides/source/action_controller_overview.textile
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.snort.org/pipermail/snort-users/attachments/20160203/6d2f0918/attachment.html>


More information about the Snort-users mailing list