Trying to get Project Server to work

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

Kevin Good

  • Posts: 50
  • Joined: Thu Feb 06, 2014 10:52 pm
  • Location: DC/Maryland/Los Angeles

Trying to get Project Server to work

PostTue Jan 08, 2019 6:41 pm

I'm new to the project server and the collaboration features. But I am interested, so I bought a 2nd license of Studio for a 2nd machine. I've installed [non-Studio] Resolve on a 3rd machine on the local net to act as the Project Server. I fire it up, make a new PostgresQL database, activate sharing, and create access key.

But when I try to use that Access Key from one of the other two machines on the network (that have Studio 15.2.2.007) I get:

Error: Failed to connect to the database. Please check log file for more details.

The machines can ping each other. So the network seems to be working and not firewalled or something. I don't know where in the log to find any meaningful information. So I'm at a bit of a loss.

Anyone have experience with this? Thanks!

Edit: I'm on all-Windows environment. The machines are on the same subnet: 192.168.0
Offline
User avatar

GregAusina

  • Posts: 188
  • Joined: Thu Aug 23, 2012 7:30 pm
  • Location: Paris - France

Re: Trying to get Project Server to work

PostTue Jan 08, 2019 8:28 pm

Pay attention to open the the right port in you firewall. I don’t remember the number but it is specified in the manual.
Grégoire AUSINA / Gisèle productions
Davinci 19 on Windows 10 / latest Nvidia studio driver / Dual Xeon E-2650v4 / supermicro X10DRG-Q / 128 Go RAM / GUI GTX 1070 / Cuda GTX 3090 - FSI CM250 - Tangent Elements - Accusys A12S3-p+
Offline

Kevin Good

  • Posts: 50
  • Joined: Thu Feb 06, 2014 10:52 pm
  • Location: DC/Maryland/Los Angeles

Re: Trying to get Project Server to work

PostTue Jan 08, 2019 9:42 pm

GregAusina wrote:Pay attention to open the the right port in you firewall. I don’t remember the number but it is specified in the manual.


I don't see it anywhere in the manual. :( I just looked again through chapter 147 "Managing Databases and Project Servers" and don't see anything about opening ports. Do you know where it is?
Offline
User avatar

roger.magnusson

  • Posts: 3802
  • Joined: Wed Sep 23, 2015 4:58 pm

Re: Trying to get Project Server to work

PostTue Jan 08, 2019 11:17 pm

The default port for a PostgreSQL server is 5432 (TCP). That's not something that is specific to Davinci Resolve so perhaps it's not in the manual.
Offline
User avatar

Jed Mitchell

  • Posts: 165
  • Joined: Tue Nov 03, 2015 11:04 pm
  • Location: New York, NY

Re: Trying to get Project Server to work

PostTue Jan 08, 2019 11:23 pm

Kevin Good wrote:I'm new to the project server and the collaboration features. But I am interested, so I bought a 2nd license of Studio for a 2nd machine. I've installed [non-Studio] Resolve on a 3rd machine on the local net to act as the Project Server. I fire it up, make a new PostgresQL database, activate sharing, and create access key.

But when I try to use that Access Key from one of the other two machines on the network (that have Studio 15.2.2.007) I get:

Error: Failed to connect to the database. Please check log file for more details.


Just finished building out a collaborative setup at my office -- first reaction to your problem makes me think it's a pg_hba.conf issue:

viewtopic.php?f=21&t=60954


On most network setups I've tested you have to manually add the IP and subnet of clients that are going to connect to the database, and if they are on different subnets you need to alter the key generated by Resolve's Project Server too (doesn't sound like that matters in your situation).

I doubt it's firewall related but some ports you might try opening up related to postgresql (credit to Chip Murphy over on LGG):

-1500
-4000
-8000
-29001
-56789


Most of this stuff is not in the manual, which is too bad but I guess it's relatively niche and can't easily be generalized.


Edit: oh just noticed you said you installed non-studio on the Project Server machine -- I'm not sure that mixing versions is supported. You do not need a license on the Project Server machine but I'm pretty sure you do need to be running Studio on all machines.
"It's amazing what you can do when you don't know you can't do it."


Systems:
R16.2.3 | Win10 | i9 7940X | 128GB RAM | 1x RTX Titan | 960Pro cache disk
R16.2.3 | Win10 | i9 7940X | 128GB RAM | 1x 2080 Ti | 660p cache disk
Offline
User avatar

roger.magnusson

  • Posts: 3802
  • Joined: Wed Sep 23, 2015 4:58 pm

Re: Trying to get Project Server to work

PostWed Jan 09, 2019 12:06 am

Jed Mitchell wrote:first reaction to your problem makes me think it's a pg_hba.conf issue

Thankfully with recent versions of Resolve, if you use the included PostgreSQL setup and use project server to create the access key you should no longer need to make manual changes to pg_hba.conf.
Offline
User avatar

Jed Mitchell

  • Posts: 165
  • Joined: Tue Nov 03, 2015 11:04 pm
  • Location: New York, NY

Re: Trying to get Project Server to work

PostWed Jan 09, 2019 1:23 am

roger.magnusson wrote:Thankfully with recent versions of Resolve, if you use the included PostgreSQL setup and use project server to create the access key you should no longer need to make manual changes to pg_hba.conf.


Yes, that's the theory -- in practice I've never seen it behave automatically when hosted from an independent server, either in 14.3 or any flavor of 15. Point-to-point shared databases with a simple router between two desktop OS workstations have functioned out of the box for me but never a dedicated server. Since modifying the hba file is such an easy fix I'd still give it a try when you see that error in the logs.

Oh, the other thing is to see if the access key is pointing at 127.0.0.1 or at the correct server IP address -- it's just a plain text file so easy to poke inside and see what was generated. This isn't usually an issue unless you're running multiple subnets but worth a look.
"It's amazing what you can do when you don't know you can't do it."


Systems:
R16.2.3 | Win10 | i9 7940X | 128GB RAM | 1x RTX Titan | 960Pro cache disk
R16.2.3 | Win10 | i9 7940X | 128GB RAM | 1x 2080 Ti | 660p cache disk
Offline

Kevin Good

  • Posts: 50
  • Joined: Thu Feb 06, 2014 10:52 pm
  • Location: DC/Maryland/Los Angeles

Re: Trying to get Project Server to work

PostWed Jan 09, 2019 8:13 pm

Thank you Jed! I opened the firewall for the postgresql.exe, and I added the link to the config file and it seems to be working. Searching around the forum before I asked the question I had actually read that thread you linked to. But people were saying that was already a resolved issue in the newer release, so I didn't think it applied and I was continuing my hunt.

I got it working. And for the record the Project Server doesn't have to be a Studio install (that, it does specifically say in the manual. Either version will work.) Since I don't have a license for that machine I figured non-studio is better because then there's a chance someone still could work (independently) on something from the 'server' machine.

Thanks again all! Frustrating stuff. Glad to have it... Resolve-d. :)
Offline
User avatar

Jed Mitchell

  • Posts: 165
  • Joined: Tue Nov 03, 2015 11:04 pm
  • Location: New York, NY

Re: Trying to get Project Server to work

PostThu Jan 10, 2019 2:32 am

Kevin Good wrote:And for the record the Project Server doesn't have to be a Studio install (that, it does specifically say in the manual. Either version will work.)


Oh, that's good to know -- our servers are tucked away in a rack so I've never even bothered to launch Resolve on them, just the Project Server. Thanks for pointing that out and glad the .conf fix helped.
"It's amazing what you can do when you don't know you can't do it."


Systems:
R16.2.3 | Win10 | i9 7940X | 128GB RAM | 1x RTX Titan | 960Pro cache disk
R16.2.3 | Win10 | i9 7940X | 128GB RAM | 1x 2080 Ti | 660p cache disk
Offline
User avatar

SimplSam

  • Posts: 153
  • Joined: Fri Jan 04, 2019 11:36 pm
  • Location: London, UK
  • Real Name: Sam Cogheil

Re: Trying to get Project Server to work

PostMon Feb 04, 2019 2:18 pm

Kevin Good wrote:I'm new to the project server and the collaboration features. But I am interested, so I bought a 2nd license of Studio for a 2nd machine.

I am slightly confused why you purchased a 2nd license, as you can license 2 machines with a single Studio activation license?
Resolve Studio 18.6 » Win 11 Pro 64GB » NVIDIA GTX 1080ti 11GB

Sam
Offline
User avatar

Igor Riđanović

  • Posts: 1630
  • Joined: Thu Jul 02, 2015 5:11 am
  • Location: Los Angeles, Calif.

Re: Trying to get Project Server to work

PostThu Feb 07, 2019 3:04 am

The server does not have to have Resolve on the machine at all. All that's required is the PostgreSQL server, it's a free third party software. Resolve just installs the PostgreSQL as an option.
www.metafide.com - DaVinci Resolve™ Apps
Offline

Noel Froger

  • Posts: 68
  • Joined: Thu Sep 15, 2016 10:31 am

Re: Trying to get Project Server to work

PostFri Feb 22, 2019 2:46 pm

hi, how to connect to a db NOT on the 5432 port ?
using 127.0.0.1:9999 doesn't work
5432 seems to be hard locked
Offline

mirceabanu

  • Posts: 5
  • Joined: Tue Sep 24, 2019 2:39 pm
  • Real Name: MIRCEA BANU

Re: Trying to get Project Server to work

PostFri Sep 27, 2019 2:08 am

Jed Mitchell wrote: if they are on different subnets you need to alter the key generated by Resolve's Project Server too (doesn't sound like that matters in your situation).


Any hints on how to connect multiple machines with davinci to a non-local postgresql server ?
All functions good, but when the second user connects, it gets an error after ~10-20 seconds (I believe it is trying to communicate with the other user):

"Unable to load the project in collaboration mode as Resolve was unable to establish a connection to communicate with other users.
Please ensure that the machines are not connected using a VPN and that davinci is not being blocked by the system firewall."


Is Resolve limited only to local, same subnet collaboration? Thank you very much !
(Postgresql 11.5 on Ubuntu 18.04, ports 5432 and 56789 open, pg_hba.conf and postgresql.conf modified to accept all connections, 2x Resolve Studio licenses, connect from iMac and PC)
Offline
User avatar

Jed Mitchell

  • Posts: 165
  • Joined: Tue Nov 03, 2015 11:04 pm
  • Location: New York, NY

Re: Trying to get Project Server to work

PostWed Oct 02, 2019 7:34 am

mirceabanu wrote:All functions good, but when the second user connects, it gets an error after ~10-20 seconds (I believe it is trying to communicate with the other user):

Yeah that bit I put in bold from your quote is the important part, from what I can tell.

I have (for now at least) "solved" our issues -- it had to do with subnet priority on the different workstations, because our machines all run on several connections for different purposes:

1.) 10GbE for direct (unswitched) access to shared storage
2.) 1GbE for (switched) communication with the server (Resolve, FlexLM, etc), renderfarm, intranet
3.) WiFi for internet (completely separate gateway)

It's not well documented so I'll just lay out my best understanding of the current Resolve 16 Project Server architecture:

**Reading database for project access**

Machine1 ==>> Project Server <<== Machine2

For simple access to the project, the machines can be on whatever subnet they want. So:

Machine1: WiFi, connected to server via router on 192.168.1.0/24
Machine2: Ethernet, connected to server via switch on 172.16.85.0/24

Machine1: server has the static address 192.168.1.50
Machine2: server has the static address 172.16.85.50

Both server addresses are valid: access keys just need to use the correct one for each workstation.

**Communicating user activity/bin locks/status**

........>> Project Server <<..........
........^^.....................^^...........
........^^.....................^^...........
Machine1 <<=====>> Machine2

For the second part of the equation, machine-to-machine communication, the Project Server doesn't negotiate communication at all (as far as I can tell), the two machines need to resolve an IP address for each other, tell each other what they are doing, then report that back to the Project Server independently for committing writes to the database (which might be why Live Save is so slow in collaboration?).

So let's say Machine1 is parked at 192.168.1.101 and Machine2 is 172.16.85.102 and... WAIT!

They're on different subnets! So even though they can both see the server, they can't see each other!

What I realized was that each workstation was prioritizing a different NIC in our setup. So when one pair of machines was in the same project it might be fine because they were both prioritizing the 1GbE network, but if one machine was favoring the WiFi we'd get that generic error message.

As of Resolve 16 that shouldn't be an issue anymore -- on page 2941 of the manual there's a passage alluding to the new Project Server ability to negotiate different subnets. So if Resolve 16 can collaborate across multiple subnets, why are we still getting an error? Well... I'm sure there are complications with machines running on multiple subnets, but it might also be a slightly "unfinished" feature.

My solution was fixing the NIC priorities to be the same everywhere, keeping everyone on a single subnet for Resolve traffic. Since then we haven't see the error message.

Plenty of other collaboration bugs and crashes though... and really, there is like half of one page devoted to this whole topic in the manual, and a single error message to cover all possible issues. I think this is one place where the documentation & logging could stand to be a bit more verbose!

So people like me can stop trying to guess about it on the forums...

~~

This may not be quite the solution to your problem, but hopefully it helps with your search -- I think if you can't get all the collaborating machines onto a subnet together (doesn't matter which one) you're going to have issues, regardless of what the manual says.
"It's amazing what you can do when you don't know you can't do it."


Systems:
R16.2.3 | Win10 | i9 7940X | 128GB RAM | 1x RTX Titan | 960Pro cache disk
R16.2.3 | Win10 | i9 7940X | 128GB RAM | 1x 2080 Ti | 660p cache disk
Offline

henriko

  • Posts: 18
  • Joined: Tue Feb 04, 2020 10:38 am
  • Real Name: Henrik Olsen

Re: Trying to get Project Server to work

PostWed Jun 17, 2020 6:29 pm

mirceabanu wrote:"Unable to load the project in collaboration mode as Resolve was unable to establish a connection to communicate with other users.
Please ensure that the machines are not connected using a VPN and that davinci is not being blocked by the system firewall."


I have the same issue, trying to get this working across WAN/fiber-internet. Would love to hear if anyone has a solution. I have opened for port 5432 and connect fine to server, but when trying to start collaboration mode I get the quoted message also, and it won't work.
Offline

Kevin Good

  • Posts: 50
  • Joined: Thu Feb 06, 2014 10:52 pm
  • Location: DC/Maryland/Los Angeles

Re: Trying to get Project Server to work

PostSat Jan 09, 2021 12:13 am

Hey gang-- thanks for the prior advice. I am trying to get Project Server working on a new system, and having trouble.

Machine 1) Windows, running postgresql database, as well as Resolve Studio 17 beta.
Machine 2) Windows, Client for running Resolve Studio 17 beta

If ONE of the machines connects to the database and opens the project, everything works fine. If the 2nd machine connects, then Machine 1 gives this error "Cannot Enable Collaboration":
Image

I've confirmed both are on the same subnet. I've tried disabling Windows Firewall. I've tried changing NIC priority as per Jed Mitchell's suggestion. I tried disabling IPv6.

Clearly the machines can talk to each other, because machine 2 can work off of the machine 1 database just fine. But both can't work together at the same time.

Thanks for any suggestions/insight!
Offline
User avatar

Dwaine Maggart

Blackmagic Design

  • Posts: 12763
  • Joined: Wed Aug 22, 2012 2:53 pm

Re: Trying to get Project Server to work

PostSat Jan 09, 2021 8:53 am

Send Resolve logs and System Information NFO files from both systems.
Dwaine Maggart
Blackmagic Design DaVinci Support
Offline

danielpanev

  • Posts: 204
  • Joined: Sat May 25, 2019 11:59 am
  • Location: Sofia, Bulgaria
  • Real Name: Daniel Panev

Re: Trying to get Project Server to work

PostSat Jan 09, 2021 12:50 pm

Dwaine Maggart wrote:Send Resolve logs and System Information NFO files from both systems.

Hi Dwaine,

I've posted that you cannot enable collaboration between 17b6 and 17.1b6 here.
Could you please comment if this in intentional (i.e. implementations are incompatible) or just a glitch in the Beta?
Offline
User avatar

Dwaine Maggart

Blackmagic Design

  • Posts: 12763
  • Joined: Wed Aug 22, 2012 2:53 pm

Re: Trying to get Project Server to work

PostSun Jan 10, 2021 7:53 am

Answered in your other thread.
Dwaine Maggart
Blackmagic Design DaVinci Support

Return to DaVinci Resolve

Who is online

Users browsing this forum: Bing [Bot], dirk-pel, Google [Bot], KrunoSmithy, panos_mts, qsipher and 272 guests