# Are you sure you configured your project correctly so it uses a the pgservice configuration

**URL:** <https://community.qfield.org/t/are-you-sure-you-configured-your-project-correctly-so-it-uses-a-the-pgservice-configuration/658>\
**Category:** Ask the Community\
**Tags:** gh-import\
**Created:** [14 May 2025 02:44 UTC](https://community.qfield.org/t/are-you-sure-you-configured-your-project-correctly-so-it-uses-a-the-pgservice-configuration/658 "2025-05-14T02:44:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/flex018/uploads/qfield/original/1X/7d3726da0ef5099a1e135505c03d2f125d527aae.png) [@system](https://community.qfield.org/u/system)\
**Post date:** [14 May 2025 02:44 UTC](https://community.qfield.org/t/are-you-sure-you-configured-your-project-correctly-so-it-uses-a-the-pgservice-configuration/658/1 "2025-05-14T02:44:51Z")

</div>

Hello ,

I am quite sorry but looking a the tutorials it is hard for me to understand what am i supposed to do with pgservice configuration thingy.

Let s say i am creating and uploading a project on qfieldcloud using a direct database connection with multiple users.  
-\>‘if your QField users will not have a reliable internet connection in the field or Direct database access’

Ok i can do all that what i can’t figure out is what do i do with this mysterious pg\_config file , do I just create a secret or do i need to do something physically with a text files what is going on . I have managed to have project on qfield cloud working directly from the postgres database without doing this but other time i get errors.

If somebody kind enough could lay out the steps in details for a novice to undertake it would be greatly appreciated .

1.create QGIS project  
2.Add postgres layer  
3.Set up direct database connection  
4.upload project to qfield cloud  
5. ???  
6. ???

Kind regards ,

Hugo

* * *

_Imported from [GitHub discussion](https://github.com/opengisch/qfield/discussions/3016) by @Duckrichard on 2022-06-27T15:35:16Z_

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/flex018/uploads/qfield/original/1X/7d3726da0ef5099a1e135505c03d2f125d527aae.png) [@system](https://community.qfield.org/u/system)\
**Post date:** [14 May 2025 02:44 UTC](https://community.qfield.org/t/are-you-sure-you-configured-your-project-correctly-so-it-uses-a-the-pgservice-configuration/658/2 "2025-05-14T02:44:52Z")

</div>

Hello Hugo,

Did you have a look to this part of the docs?

[PostGIS](https://docs.qfield.org/get-started/tutorials/advanced-setup-qfc/#postgis)

Best regards,

Lucie

* * *

_Imported from [GitHub comment](https://github.com/opengisch/QField/discussions/3016#discussioncomment-3048772) by @lucienicolier on 2022-06-29T14:03:35Z_

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/flex018/uploads/qfield/original/1X/7d3726da0ef5099a1e135505c03d2f125d527aae.png) [@system](https://community.qfield.org/u/system)\
**Post date:** [14 May 2025 02:44 UTC](https://community.qfield.org/t/are-you-sure-you-configured-your-project-correctly-so-it-uses-a-the-pgservice-configuration/658/3 "2025-05-14T02:44:53Z")

</div>

Bonjour Lucien,

Thanks for your reply, Yes I read those tutorial carefully .  
So I did multiple projects with direct connection it was working great for me with the layer updating in real time etc …

Then i added a collaborator and he got the project using qfieldcloud on his android . So it should be the exact same project that i ve got on my phone .  
But he got the following error message

 ![image](https://europe1.discourse-cdn.com/flex018/uploads/qfield/original/1X/2b2ab1d0d5c25a2f97917f177e8387b767a5af52.png)

I deleted the project on my phone redownload it through qfield cloud and got the same error msg . the project on the laptop is still using the postgis layer , I dont get it .

Regards,

Hugo

* * *

_Imported from [GitHub comment](https://github.com/opengisch/QField/discussions/3016#discussioncomment-3049467) by @Duckrichard on 2022-06-29T15:28:41Z_

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/flex018/uploads/qfield/original/1X/7d3726da0ef5099a1e135505c03d2f125d527aae.png) [@system](https://community.qfield.org/u/system)\
**Post date:** [14 May 2025 02:44 UTC](https://community.qfield.org/t/are-you-sure-you-configured-your-project-correctly-so-it-uses-a-the-pgservice-configuration/658/4 "2025-05-14T02:44:55Z")

</div>

suricactus do you have an idea what is wrong? Thanks

* * *

_Imported from [GitHub comment](https://github.com/opengisch/QField/discussions/3016#discussioncomment-3063804) by @lucienicolier on 2022-07-01T12:29:47Z_

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/flex018/uploads/qfield/original/1X/7d3726da0ef5099a1e135505c03d2f125d527aae.png) [@system](https://community.qfield.org/u/system)\
**Post date:** [14 May 2025 02:44 UTC](https://community.qfield.org/t/are-you-sure-you-configured-your-project-correctly-so-it-uses-a-the-pgservice-configuration/658/5 "2025-05-14T02:44:56Z")

</div>

I got the same problem yesrterday.  
And then I tried to make the version of QField and QGIS on PC or laptop same.  
(I installed latest QGIS version 3.30.1-'s-Hertogenbosch)  
Finally, upload project again and it works.

* * *

_Imported from [GitHub comment](https://github.com/opengisch/QField/discussions/3016#discussioncomment-5610911) by @GaryHsiao88 on 2023-04-14T02:09:35Z_
