{"action":"created","issue":{"url":"https://api.github.com/repos/abh/rt-docker/issues/1","repository_url":"https://api.github.com/repos/abh/rt-docker","labels_url":"https://api.github.com/repos/abh/rt-docker/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/abh/rt-docker/issues/1/comments","events_url":"https://api.github.com/repos/abh/rt-docker/issues/1/events","html_url":"https://github.com/abh/rt-docker/issues/1","id":393091445,"node_id":"MDU6SXNzdWUzOTMwOTE0NDU=","number":1,"title":"Can´t connect to database","user":{"login":"pacosta","id":456403,"node_id":"MDQ6VXNlcjQ1NjQwMw==","avatar_url":"https://avatars2.githubusercontent.com/u/456403?v=4","gravatar_id":"","url":"https://api.github.com/users/pacosta","html_url":"https://github.com/pacosta","followers_url":"https://api.github.com/users/pacosta/followers","following_url":"https://api.github.com/users/pacosta/following{/other_user}","gists_url":"https://api.github.com/users/pacosta/gists{/gist_id}","starred_url":"https://api.github.com/users/pacosta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pacosta/subscriptions","organizations_url":"https://api.github.com/users/pacosta/orgs","repos_url":"https://api.github.com/users/pacosta/repos","events_url":"https://api.github.com/users/pacosta/events{/privacy}","received_events_url":"https://api.github.com/users/pacosta/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-20T15:21:29Z","updated_at":"2018-12-20T15:58:18Z","closed_at":null,"author_association":"NONE","body":"I have the following error when i run the container with the command that you provide.\r\nAny sugestions?\r\n\r\n```docker run -i --rm \\                                                                                                                                                                                 SIGINT(2) ↵  ⚙  11052  15:19:05\r\n    -v `pwd`/RT_SiteConfig.d:/opt/rt/etc/RT_SiteConfig.d/ \\\r\n    -p 8000:8000 \\\r\n    quay.io/abh/rt:latest\r\n[7] [Thu Dec 20 15:19:11 2018] [warning]: DBI connect('dbname=rt4;host=localhost','rt_user',...) failed: Can't connect to local MySQL server through socket '/run/mysqld/mysqld.sock' (2 \"No such file or directory\") at /usr/local/share/perl5/site_perl/DBIx/SearchBuilder/Handle.pm line 106. (/usr/share/perl5/core_perl/Carp.pm:169)\r\n\r\nRT couldn't connect to the database where tickets are stored.\r\nIf this is a new installation of RT, you should visit the URL below\r\nto configure RT and initialize your database.\r\n\r\nIf this is an existing RT installation, this may indicate a database\r\nconnectivity problem.\r\n\r\nThe error RT got back when trying to connect to your database was:\r\n\r\nConnect Failed Can't connect to local MySQL server through socket '/run/mysqld/mysqld.sock' (2 \"No such file or directory\")\r\n at /opt/rt/sbin/../lib/RT.pm line 221.\r\n\r\n\r\n[7] [Thu Dec 20 15:19:11 2018] [warning]: DBI connect('dbname=rt4;host=localhost','rt_user',...) failed: Can't connect to local MySQL server through socket '/run/mysqld/mysqld.sock' (2 \"No such file or directory\") at /usr/local/share/perl5/site_perl/DBIx/SearchBuilder/Handle.pm line 106. (/usr/share/perl5/core_perl/Carp.pm:169)\r\n[7] [Thu Dec 20 15:19:12 2018] [critical]: Can't call method \"AddRight\" on an undefined value at /opt/rt/local/plugins/RT-Authen-Token/lib/RT/Authen/Token.pm line 7.\r\nCompilation failed in require at /opt/rt/sbin/../lib/RT.pm line 775. (/opt/rt/sbin/../lib/RT.pm:408)\r\nCan't call method \"AddRight\" on an undefined value at /opt/rt/local/plugins/RT-Authen-Token/lib/RT/Authen/Token.pm line 7.\r\nCompilation failed in require at /opt/rt/sbin/../lib/RT.pm line 775```"},"comment":{"url":"https://api.github.com/repos/abh/rt-docker/issues/comments/449045873","html_url":"https://github.com/abh/rt-docker/issues/1#issuecomment-449045873","issue_url":"https://api.github.com/repos/abh/rt-docker/issues/1","id":449045873,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0OTA0NTg3Mw==","user":{"login":"abh","id":16861,"node_id":"MDQ6VXNlcjE2ODYx","avatar_url":"https://avatars0.githubusercontent.com/u/16861?v=4","gravatar_id":"","url":"https://api.github.com/users/abh","html_url":"https://github.com/abh","followers_url":"https://api.github.com/users/abh/followers","following_url":"https://api.github.com/users/abh/following{/other_user}","gists_url":"https://api.github.com/users/abh/gists{/gist_id}","starred_url":"https://api.github.com/users/abh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abh/subscriptions","organizations_url":"https://api.github.com/users/abh/orgs","repos_url":"https://api.github.com/users/abh/repos","events_url":"https://api.github.com/users/abh/events{/privacy}","received_events_url":"https://api.github.com/users/abh/received_events","type":"User","site_admin":false},"created_at":"2018-12-20T15:58:18Z","updated_at":"2018-12-20T15:58:18Z","author_association":"OWNER","body":"Did you provide a configuration file? It has to be mounted into the container.\n\nIf so use 127.0.0.1 instead of localhost (or even the proper IP of your database server).\n"}}
{"actor":{"display_login":"abh"}}