{"action":"created","issue":{"url":"https://api.github.com/repos/darkoperator/MSF-Installer/issues/43","labels_url":"https://api.github.com/repos/darkoperator/MSF-Installer/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/darkoperator/MSF-Installer/issues/43/comments","events_url":"https://api.github.com/repos/darkoperator/MSF-Installer/issues/43/events","html_url":"https://github.com/darkoperator/MSF-Installer/issues/43","id":56924429,"number":43,"title":"failed to create msf role when installing msf using script on mac","user":{"login":"Drewshg312","id":10493450,"avatar_url":"https://avatars.githubusercontent.com/u/10493450?v=3","gravatar_id":"","url":"https://api.github.com/users/Drewshg312","html_url":"https://github.com/Drewshg312","followers_url":"https://api.github.com/users/Drewshg312/followers","following_url":"https://api.github.com/users/Drewshg312/following{/other_user}","gists_url":"https://api.github.com/users/Drewshg312/gists{/gist_id}","starred_url":"https://api.github.com/users/Drewshg312/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Drewshg312/subscriptions","organizations_url":"https://api.github.com/users/Drewshg312/orgs","repos_url":"https://api.github.com/users/Drewshg312/repos","events_url":"https://api.github.com/users/Drewshg312/events{/privacy}","received_events_url":"https://api.github.com/users/Drewshg312/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-02-07T20:19:14Z","updated_at":"2015-02-07T22:30:49Z","closed_at":null,"body":"Using OSX 10.10.2.\r\nWhen executing msf_install getting problems with postgresql.\r\n```    ...\r\n[*] Checking if PostgreSQL is installed, using Homebrew to install it if not.\r\n[*] Installing PostgreSQL\r\n[*] Installation of PostgreSQL was successful\r\n[*] Initiating postgres\r\n[*] Configuring the database engine to start at logon\r\n/Users/myAwesomeUser/Library/LaunchAgents/homebrew.mxcl.postgresql.plist -> /usr/local/opt/postgresql/homebrew.mxcl.postgresql.plist\r\n[*] Creating the MSF Database user msf with the password provided\r\n[*] Failed to create the msf role\r\n[*] Creating msf database and setting the owner to msf user\r\n[*] Failed to create the msf database.\r\n...    ```\r\n\r\nThe logfile:\r\n\r\n```     ...\r\n#### POSTGRESQL INSTALLATION ####\r\n---- Installing PostgreSQL ----\r\n==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/postgresql-9.4.1.yosemite.bottle.tar.gz\r\nAlready downloaded: /Library/Caches/Homebrew/postgresql-9.4.1.yosemite.bottle.tar.gz\r\n==> Pouring postgresql-9.4.1.yosemite.bottle.tar.gz\r\n==> Caveats\r\nIf builds of PostgreSQL 9 are failing and you have version 8.x installed,\r\nyou may need to remove the previous version first. See:\r\n  https://github.com/Homebrew/homebrew/issues/2510\r\n\r\nTo migrate existing data from a previous major version (pre-9.4) of PostgreSQL, see:\r\n  http://www.postgresql.org/docs/9.4/static/upgrading.html\r\n\r\nTo have launchd start postgresql at login:\r\n    ln -sfv /usr/local/opt/postgresql/*.plist ~/Library/LaunchAgents\r\nThen to load postgresql now:\r\n    launchctl load ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist\r\nOr, if you don't want/need launchctl, you can just run:\r\n    postgres -D /usr/local/var/postgres\r\n==> Summary\r\n🍺  /usr/local/Cellar/postgresql/9.4.1: 2989 files, 40M\r\n---- Installation of PostgreSQL successful----\r\n---- Initiating the PostgreSQL Database ----\r\nThe files belonging to this database system will be owned by user \"myAwesomeUser\".\r\nThis user must also own the server process.\r\n\r\nThe database cluster will be initialized with locale \"C\".\r\nThe default database encoding has accordingly been set to \"SQL_ASCII\".\r\nThe default text search configuration will be set to \"english\".\r\n\r\nData page checksums are disabled.\r\n\r\nfixing permissions on existing directory /usr/local/var/postgres ... initdb: could not change permissions of directory \"/usr/local/var/postgres\": Operation not permitted\r\n---- Postgres Version 9.4.1 ----\r\n---- Starting PostgreSQL Server ----\r\npg_ctl: could not open PID file \"/usr/local/var/postgres/postmaster.pid\": Permission denied\r\n---- Postgres Version 9.4.1 ----\r\n---- Creating Metasploit DB user ----\r\npsql: could not connect to server: No such file or directory\r\n\tIs the server running locally and accepting\r\n\tconnections on Unix domain socket \"/tmp/.s.PGSQL.5432\"?\r\n---- Creation of Metasploit user failed ----\r\n---- Creating Metasploit Database and assigning the role ----\r\ncreatedb: could not connect to database template1: could not connect to server: Connection refused\r\n\tIs the server running on host \"localhost\" (127.0.0.1) and accepting\r\n\tTCP/IP connections on port 5432?\r\ncould not connect to server: Connection refused\r\n\tIs the server running on host \"localhost\" (::1) and accepting\r\n\tTCP/IP connections on port 5432?\r\ncould not connect to server: Connection refused\r\n\tIs the server running on host \"localhost\" (fe80::1) and accepting\r\n\tTCP/IP connections on port 5432?\r\n---- Database creation failed ----\r\nCloning into '/usr/local/share/metasploit-framework'...\r\nChecking out files:  21% (1639/7486)   \r\nChecking out files:  22% (1647/7486)   \r\nChecking out files:  23% (1722/7486)   \r\nChecking out files:  24% (1797/7486)   \r\nChecking out files:  25% (1872/7486)   \r\nChecking out files:  26% (1947/7486)   \r\nChecking out files:  27% (2022/7486)   \r\nChecking out files:  28% (2097/7486)   \r\nChecking out files:  29% (2171/7486)   \r\nChecking out files:  30% (2246/7486)   \r\nChecking out files:  31% (2321/7486)   \r\nChecking out files:  32% (2396/7486)   \r\nChecking out files:  33% (2471/7486)   \r\nChecking out files:  34% (2546/7486)   \r\nChecking out files:  35% (2621/7486)   \r\nChecking out files:  36% (2695/7486)   \r\nChecking out files:  37% (2770/7486)   \r\nChecking out files:  38% (2845/7486)   \r\nChecking out files:  39% (2920/7486)   \r\nChecking out files:  40% (2995/7486)   \r\nChecking out files:  41% (3070/7486)   \r\nChecking out files:  42% (3145/7486)   \r\nChecking out files:  43% (3219/7486)   \r\nChecking out files:  44% (3294/7486)   \r\nChecking out files:  45% (3369/7486)   \r\nChecking out files:  46% (3444/7486)   \r\nChecking out files:  47% (3519/7486)   \r\nChecking out files:  48% (3594/7486)   \r\nChecking out files:  49% (3669/7486)   \r\nChecking out files:  50% (3743/7486)   \r\nChecking out files:  51% (3818/7486)   \r\nChecking out files:  52% (3893/7486)   \r\nChecking out files:  53% (3968/7486)   \r\nChecking out files:  54% (4043/7486)   \r\nChecking out files:  55% (4118/7486)   \r\nChecking out files:  56% (4193/7486)   \r\nChecking out files:  57% (4268/7486)   \r\nChecking out files:  58% (4342/7486)   \r\nChecking out files:  59% (4417/7486)   \r\nChecking out files:  60% (4492/7486)   \r\nChecking out files:  61% (4567/7486)   \r\nChecking out files:  62% (4642/7486)   \r\nChecking out files:  63% (4717/7486)   \r\nChecking out files:  64% (4792/7486)   \r\nChecking out files:  65% (4866/7486)   \r\nChecking out files:  66% (4941/7486)   \r\nChecking out files:  67% (5016/7486)   \r\nChecking out files:  68% (5091/7486)   \r\nChecking out files:  69% (5166/7486)   \r\nChecking out files:  69% (5227/7486)   \r\nChecking out files:  70% (5241/7486)   \r\nChecking out files:  71% (5316/7486)   \r\nChecking out files:  72% (5390/7486)   \r\nChecking out files:  73% (5465/7486)   \r\nChecking out files:  74% (5540/7486)   \r\nChecking out files:  75% (5615/7486)   \r\nChecking out files:  76% (5690/7486)   \r\nChecking out files:  77% (5765/7486)   \r\nChecking out files:  78% (5840/7486)   \r\nChecking out files:  79% (5914/7486)   \r\nChecking out files:  80% (5989/7486)   \r\nChecking out files:  81% (6064/7486)   \r\nChecking out files:  82% (6139/7486)   \r\nChecking out files:  83% (6214/7486)   \r\nChecking out files:  84% (6289/7486)   \r\nChecking out files:  85% (6364/7486)   \r\nChecking out files:  86% (6438/7486)   \r\nChecking out files:  87% (6513/7486)   \r\nChecking out files:  88% (6588/7486)   \r\nChecking out files:  89% (6663/7486)   \r\nChecking out files:  90% (6738/7486)   \r\nChecking out files:  91% (6813/7486)   \r\nChecking out files:  92% (6888/7486)   \r\nChecking out files:  93% (6962/7486)   \r\nChecking out files:  94% (7037/7486)   \r\nChecking out files:  95% (7112/7486)   \r\nChecking out files:  96% (7187/7486)   \r\nChecking out files:  97% (7262/7486)   \r\nChecking out files:  98% (7337/7486)   \r\nChecking out files:  99% (7412/7486)   \r\nChecking out files: 100% (7486/7486)   \r\nChecking out files: 100% (7486/7486), done.\r\n---- Downloading the latest version of Armitage ---\r\n---- Decompressing the latest version of Armitage ----\r\nx armitage/\r\nx armitage/armitage\r\nx armitage/armitage.jar\r\nx armitage/teamserver\r\nx armitage/readme.txt\r\nx armitage/armitage-logo.png\r\nx armitage/whatsnew.txt\r\nx armitage/cortana.jar    ```"},"comment":{"url":"https://api.github.com/repos/darkoperator/MSF-Installer/issues/comments/73386470","html_url":"https://github.com/darkoperator/MSF-Installer/issues/43#issuecomment-73386470","issue_url":"https://api.github.com/repos/darkoperator/MSF-Installer/issues/43","id":73386470,"user":{"login":"Drewshg312","id":10493450,"avatar_url":"https://avatars.githubusercontent.com/u/10493450?v=3","gravatar_id":"","url":"https://api.github.com/users/Drewshg312","html_url":"https://github.com/Drewshg312","followers_url":"https://api.github.com/users/Drewshg312/followers","following_url":"https://api.github.com/users/Drewshg312/following{/other_user}","gists_url":"https://api.github.com/users/Drewshg312/gists{/gist_id}","starred_url":"https://api.github.com/users/Drewshg312/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Drewshg312/subscriptions","organizations_url":"https://api.github.com/users/Drewshg312/orgs","repos_url":"https://api.github.com/users/Drewshg312/repos","events_url":"https://api.github.com/users/Drewshg312/events{/privacy}","received_events_url":"https://api.github.com/users/Drewshg312/received_events","type":"User","site_admin":false},"created_at":"2015-02-07T22:30:49Z","updated_at":"2015-02-07T22:30:49Z","body":"I know - that's how I've checked that my homebrew executable isn't owned by root...\r\n```brew info postgresql```\r\nit says:\r\n```- Conflicts with: postgres-xc``` (which is not installed anyways)\r\n```    If builds of PostgreSQL 9 are failing and you have version 8.x installed,\r\nyou may need to remove the previous version first. See:\r\n  https://github.com/Homebrew/homebrew/issues/2510   ```\r\nbut I'm doing it as well:\r\n```    brew remove postgresql    ```\r\nand\r\n```    rm -rf /usr/local/var/postgres    ```\r\nI just run out of ideas.. I'm in dispare that's why I'm writing here((("}}