Rush/Zoom/Strobe - Mac/VM/Ahhhhhhhh!

A special forum dedicated to our PT4 for Mac OS X users

Moderators: WhiteRider, kraada, Flag_Hippo, morny, Moderators

Re: Rush/Zoom/Strobe - Mac/VM/Ahhhhhhhh!

Postby Herr_Someone » Sun Sep 22, 2013 3:17 pm

The relevant bit looks lke this :

# TYPE DATABASE USER CIDR-ADDRESS METHOD

# "local" is for Unix domain socket connections only
local all all md5
# IPv4 local connections:
host all all 127.0.0.1/32 md5
# IPv6 local connections:
host all all ::1/128 md5
host all all 192.168.1.0/24 md5

Sorry for the poor formatting.
Herr_Someone
 
Posts: 62
Joined: Sun Aug 14, 2011 12:40 pm

Re: Rush/Zoom/Strobe - Mac/VM/Ahhhhhhhh!

Postby kraada » Mon Sep 23, 2013 8:33 am

Are you sure that the VM uses that same 192.168.1.x subnet? Often VMs create their own dedicated subnets for contacting the host and then you'd want to set up a line for that as well.
kraada
Moderator
 
Posts: 54431
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Rush/Zoom/Strobe - Mac/VM/Ahhhhhhhh!

Postby Herr_Someone » Mon Sep 23, 2013 10:25 am

Ah now that's not something I know. How can I find that out? By ipconfig in my guest? If its different would I then need to set up a new connection as I did from host to guest?
Herr_Someone
 
Posts: 62
Joined: Sun Aug 14, 2011 12:40 pm

Re: Rush/Zoom/Strobe - Mac/VM/Ahhhhhhhh!

Postby kraada » Mon Sep 23, 2013 11:10 am

ipconfig within the guest is normally sufficient to figure it out. Just add another line to pg_hba.conf to account for that subnet, restart the server, and then you'll likely be able to connect.
kraada
Moderator
 
Posts: 54431
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Rush/Zoom/Strobe - Mac/VM/Ahhhhhhhh!

Postby Herr_Someone » Mon Sep 23, 2013 1:52 pm

So after going into ipconig and finding the IP address, my pg_hbs.conf file now looks like this:

# TYPE DATABASE USER CIDR-ADDRESS METHOD

# "local" is for Unix domain socket connections only
local all all md5
# IPv4 local connections:
host all all 127.0.0.1/32 md5
# IPv6 local connections:
host all all ::1/128 md5
host all all 192.168.1.0/24 md5
host all all 10.0.2.15/24 md5

I'm still getting cant connect to database errors. If it helps, I did just experience my guest not connecting to the 192.168.1.xx server. I had to restart a couple of times and it then connected.
Herr_Someone
 
Posts: 62
Joined: Sun Aug 14, 2011 12:40 pm

Re: Rush/Zoom/Strobe - Mac/VM/Ahhhhhhhh!

Postby kraada » Mon Sep 23, 2013 2:50 pm

Try making it:
host all all 10.0.2.0/24 md5

just to be on the safe side, restart everything and try one more time.
kraada
Moderator
 
Posts: 54431
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Rush/Zoom/Strobe - Mac/VM/Ahhhhhhhh!

Postby Herr_Someone » Mon Sep 23, 2013 3:17 pm

So I've tried that, still got the cant connect to database error, and reverted back to how the file was previously; and now I'm getting the error attached on my original PT4 installation. This shouldn't have happened surely? Have I now lost my original database?
Attachments
Screen Shot 2013-09-23 at 20.10.56.png
Error Message OSX PT4
Herr_Someone
 
Posts: 62
Joined: Sun Aug 14, 2011 12:40 pm

Re: Rush/Zoom/Strobe - Mac/VM/Ahhhhhhhh!

Postby kraada » Mon Sep 23, 2013 4:48 pm

At a Terminal run ps aux | grep -i postgres and paste your output here.
kraada
Moderator
 
Posts: 54431
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Rush/Zoom/Strobe - Mac/VM/Ahhhhhhhh!

Postby Herr_Someone » Mon Sep 23, 2013 5:23 pm

Here you go:

postgres 363 0.0 0.0 2497484 1264 ?? S 8:13pm 0:00.02 /usr/sbin/cfprefsd agent
postgres 362 0.0 0.0 2524780 1720 ?? S 8:13pm 0:00.02 /usr/sbin/distnoted agent
postgres 353 0.0 0.0 2508236 972 ?? Ss 8:13pm 0:00.02 /sbin/launchd
tomrankin 1072 0.0 0.0 2432768 632 s000 R+ 10:22pm 0:00.00 grep -i postgres
postgres 463 0.0 0.2 2512804 8612 ?? SN 8:14pm 0:00.67 /System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework/Versions/A/Support/mdworker -s mdworker -c MDSImporterWorker -m com.apple.mdworker.shared
Herr_Someone
 
Posts: 62
Joined: Sun Aug 14, 2011 12:40 pm

Re: Rush/Zoom/Strobe - Mac/VM/Ahhhhhhhh!

Postby kraada » Mon Sep 23, 2013 5:26 pm

PostgreSQL is definitely not running. Look in Console - do you see errors relating to PostgreSQL? If so, what do they say?
kraada
Moderator
 
Posts: 54431
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

PreviousNext

Return to PT4 for macOS

Who is online

Users browsing this forum: No registered users and 9 guests

cron