Setting up a PostgreSQL Database Server Resolve 14.3.1

Get answers to your questions about color grading, editing and finishing with DaVinci Resolve.
  • Author
  • Message
Offline

Brent Marginet

  • Posts: 166
  • Joined: Sat Jan 19, 2013 4:37 pm

Setting up a PostgreSQL Database Server Resolve 14.3.1

PostWed Aug 01, 2018 8:53 pm

I've been at this for hours and it's driving me insane, has anyone actually successfully setup a PostgreSQL Server that works. So Resolve 14.3.1 on a clean install of Sierra, installed PostgreSQL with 14.3.1 but nothing is the same as it states in the manual or as I can find on the internet.

1 - sudo su - postgres throws back an "su: unknown login: postgres" error.
2 - There is no Postgres folder in my Applications folder which many websites say should exist.
3 - In /Library/PostgreSQL/9.5 there is not "data" folder.
4 - And it goes on and on and on and on and on and on with no bloody success.

Why the hell does this have to be so complicated and why does nothing match whats written in the manual.
Offline

Reynaud Venter

  • Posts: 6442
  • Joined: Sun May 28, 2017 9:34 am

Re: Setting up a PostgreSQL Database Server Resolve 14.3.1

PostWed Aug 01, 2018 9:07 pm

In the Resolve installer ensure that the PostgreSQL option is enabled.
On OS X, in the Resolve installer select "Customise" to access this option.

Image

This creates a "PostgreSQL 9.5" folder in Applications
[which contains the Application Stack Builder application, a Documentation folder, pgAdmin III, Reload Configuration and SQL Shell (sql)].

If this is folder is not present once installation has completed, navigate to the following directory:
System Drive > Library > Application Support > BlackMagic Design > DaVinci Resolve > Upgrade PostgreSQL

and run the "Upgrade to PostgreSQL 9.5" script in that folder.
The script automatically opens Terminal. Type in your Admin password and run the script.
This should then create the "PostgreSQL 9.5" folder in Applications.
Offline

Seth Goldin

  • Posts: 668
  • Joined: Wed Nov 04, 2015 7:43 pm

Re: Setting up a PostgreSQL Database Server Resolve 14.3.1

PostWed Aug 01, 2018 9:13 pm

Yeah, unfortunately the documentation is still a bit spotty.

When you run through the Resolve 14.3.1 Studio installer on macOS, look for the little “Customize” button, and be sure to have the PostgreSQL item checked. It’s very easy to fly through and miss it.

Then the DaVinci Resolve Project Server app should work fine.

I recommend my script for macOS for backups.

https://github.com/sethgoldin/davinci-r ... flow-tools


Sent from my iPhone using Tapatalk
https://www.sethgoldin.com
Offline

Seth Goldin

  • Posts: 668
  • Joined: Wed Nov 04, 2015 7:43 pm

Setting up a PostgreSQL Database Server Resolve 14.3.1

PostWed Aug 01, 2018 9:14 pm

Reynaud beat me to it! With pictures!


Sent from my iPhone using Tapatalk
https://www.sethgoldin.com
Offline

Brent Marginet

  • Posts: 166
  • Joined: Sat Jan 19, 2013 4:37 pm

Re: Setting up a PostgreSQL Database Server Resolve 14.3.1

PostWed Aug 01, 2018 9:24 pm

Thank you.

I did do the custom install but I was afraid to run the "Upgrade to PostgreSQL" script because I thought it might affect my current database. I made a backup of it ran the script as you said and I now seem to be getting somewhere. Hopefully I can get this to work.

I appreciate your help.
Offline

Brent Marginet

  • Posts: 166
  • Joined: Sat Jan 19, 2013 4:37 pm

Re: Setting up a PostgreSQL Database Server Resolve 14.3.1

PostWed Aug 01, 2018 9:48 pm

Ok it all seems to be installed but now it seems like the version 14 manual refers to an older version of Resolve. There is no + sign so I clicked on "New Database" but I am unable to create a Database. I keep getting the same error. I don't see anything anywhere about selecting a QPSQL Driver and I keep getting the error that's in my screenshot.

I can't seem to add the screenshot.
Offline

Brent Marginet

  • Posts: 166
  • Joined: Sat Jan 19, 2013 4:37 pm

Re: Setting up a PostgreSQL Database Server Resolve 14.3.1

PostWed Aug 01, 2018 9:50 pm

Here it is.
Attachments
Screen Shot 2018-08-01 at 4.45.15 PM.png
Screen Shot 2018-08-01 at 4.45.15 PM.png (25.53 KiB) Viewed 28135 times
Offline

Brent Marginet

  • Posts: 166
  • Joined: Sat Jan 19, 2013 4:37 pm

Re: Setting up a PostgreSQL Database Server Resolve 14.3.1

PostWed Aug 01, 2018 9:57 pm

What would be the next step.
I can't seem to create a Database or Connect to one.

Please BM update your manual so dummies like me don't have to go through this pain and suffering.
This has been an absolutely unproductive day all for something that should take 5 minutes to set up.
Offline

Brent Marginet

  • Posts: 166
  • Joined: Sat Jan 19, 2013 4:37 pm

Re: Setting up a PostgreSQL Database Server Resolve 14.3.1

PostWed Aug 01, 2018 9:58 pm

Here's what I'm trying to Create.
Attachments
Screen Shot 2018-08-01 at 4.57.53 PM.png
Screen Shot 2018-08-01 at 4.57.53 PM.png (29 KiB) Viewed 28127 times
Offline

Seth Goldin

  • Posts: 668
  • Joined: Wed Nov 04, 2015 7:43 pm

Re: Setting up a PostgreSQL Database Server Resolve 14.3.1

PostWed Aug 01, 2018 10:00 pm

Hop over into the Project Server app and enable sharing on the particular database. Also, switch your local network connection from “DHCP” to DHCP with manual address” so that you have a static IP.


Sent from my iPhone using Tapatalk
https://www.sethgoldin.com
Offline

Brent Marginet

  • Posts: 166
  • Joined: Sat Jan 19, 2013 4:37 pm

Re: Setting up a PostgreSQL Database Server Resolve 14.3.1

PostWed Aug 01, 2018 10:03 pm

I don't know where the Project Server app is or what your mean by "Project Server app".
My system IP is locked to an IP by its MAC address.

Thanks
Offline

Seth Goldin

  • Posts: 668
  • Joined: Wed Nov 04, 2015 7:43 pm

Re: Setting up a PostgreSQL Database Server Resolve 14.3.1

PostWed Aug 01, 2018 10:08 pm

It’s called “DaVinci Resolve Project Server.” It should be on whatever computer you set PostgreSQL up on.

The server itself must have a static IP address, and then you must enable sharing on that database.

This can be done in the command line by modifying the `pg_hba.conf` file, but that’s complicated if you’ve never done it before. The Project Server app is a quick and easy way to do it with a nice GUI.


Sent from my iPhone using Tapatalk
https://www.sethgoldin.com
Offline

Brent Marginet

  • Posts: 166
  • Joined: Sat Jan 19, 2013 4:37 pm

Re: Setting up a PostgreSQL Database Server Resolve 14.3.1

PostWed Aug 01, 2018 10:09 pm

It seems like the pg_hba.conf file that should be in the /Library/PostgreSQL/9.5/data Folder is nonexistent based on the error message that pops up.
Offline

Seth Goldin

  • Posts: 668
  • Joined: Wed Nov 04, 2015 7:43 pm

Re: Setting up a PostgreSQL Database Server Resolve 14.3.1

PostWed Aug 01, 2018 10:12 pm

If you’ve installed PostgreSQL, it’s there. The file is a config file that needs a particular line written out to specify that that database can be shared i.e. accessed by other workstations on the network.

However, this is complicated to do, so the easier way to do it is just to enable sharing via the GUI by using the “DaVinci Resolve Project Server” app on the computer that has PostgreSQL installed.


Sent from my iPhone using Tapatalk
https://www.sethgoldin.com
Offline

Brent Marginet

  • Posts: 166
  • Joined: Sat Jan 19, 2013 4:37 pm

Re: Setting up a PostgreSQL Database Server Resolve 14.3.1

PostWed Aug 01, 2018 10:17 pm

Ok so I found that in the Resolve folder which is inside of the Applications folder and I've set my IP manually to a Static IP but I'm seeing 127.0.0.1 as in the next screenshot.
Attachments
Screen Shot 2018-08-01 at 5.14.44 PM.png
Screen Shot 2018-08-01 at 5.14.44 PM.png (16.28 KiB) Viewed 28116 times
Offline

Seth Goldin

  • Posts: 668
  • Joined: Wed Nov 04, 2015 7:43 pm

Re: Setting up a PostgreSQL Database Server Resolve 14.3.1

PostWed Aug 01, 2018 10:18 pm

Do you have the free version or the $300 Studio version?


Sent from my iPhone using Tapatalk
https://www.sethgoldin.com
Offline

Brent Marginet

  • Posts: 166
  • Joined: Sat Jan 19, 2013 4:37 pm

Re: Setting up a PostgreSQL Database Server Resolve 14.3.1

PostWed Aug 01, 2018 10:19 pm

I'm running the Studio Version.
Actually I own three Studio Licenses.
Offline

Seth Goldin

  • Posts: 668
  • Joined: Wed Nov 04, 2015 7:43 pm

Re: Setting up a PostgreSQL Database Server Resolve 14.3.1

PostWed Aug 01, 2018 10:40 pm

So the app is showing that you’re only sharing locally. 127.0.0.1 is the machine itself. You need to share with a static IP set up.


Sent from my iPhone using Tapatalk
https://www.sethgoldin.com
Offline

Brent Marginet

  • Posts: 166
  • Joined: Sat Jan 19, 2013 4:37 pm

Re: Setting up a PostgreSQL Database Server Resolve 14.3.1

PostWed Aug 01, 2018 10:44 pm

I've discovered that the pg_hba.conf file doesn't exist and I have no idea how to create and configure it.
Offline

Brent Marginet

  • Posts: 166
  • Joined: Sat Jan 19, 2013 4:37 pm

Re: Setting up a PostgreSQL Database Server Resolve 14.3.1

PostThu Aug 02, 2018 4:44 am

I want to thank everyone who tried to help me solve this issue, I really appreciate all of your efforts. I also want to apologize for coming off so harsh in my posts. After a few hours of frustration I found it difficult to type a post without sounding like I wanted to kill or blow something up.

Anyway, after a "calm" phone call to BM I found out that the manual I was using isn't current enough and contains some errors. Unfortunately I may have really screwed things up because now the "DaVinci Resolve Project Server" always gives me the error in the attached screen shot and then I'm only able to exit out of it.

I think the PostgreSQL Server is no longer running but since I'm not very good in terminal and nothing it spews out matches whats in the manuals I'm clueless as to what the problem is. Hopefully I can get someone at BM to remote in and fix this because I'm more than likely just going to make things even worse.

For anyone who attempts this almost impossible feat just know that the latest manual is pretty much useless as well. It has no installation info and states nothing about what to do when the installer doesn't install everything it's supposed to like it did for me. Like I'm just supposed to know that I have to navigate to /Library/Application Support/Blackmagic Design/DaVinci Resolve/Upgrade PostgreSQL and run the "Upgrade to PostgreSQL 9.5" Script the very first time I attempt to get it working.
Attachments
Screen Shot 2018-08-01 at 7.22.37 PM.png
Screen Shot 2018-08-01 at 7.22.37 PM.png (19.28 KiB) Viewed 28081 times
Offline

Reynaud Venter

  • Posts: 6442
  • Joined: Sun May 28, 2017 9:34 am

Re: Setting up a PostgreSQL Database Server Resolve 14.3.1

PostThu Aug 02, 2018 8:31 am

To check if Postgres is running open Activity Monitor (Applications > Utilities), ensure all Processes are currently monitored (View menu > All Processes ticked) and search for "Postgres".

Activity monitor.png
Activity monitor.png (65.49 KiB) Viewed 28073 times

The same may be achieved via Terminal by typing:
ps auxwww | grep postgres

Terminal.png
Terminal.png (79.79 KiB) Viewed 28073 times

Return to DaVinci Resolve

Who is online

Users browsing this forum: avicci, Bing [Bot], carloslagekhrm, Enrico Budianto and 243 guests