# Invalid datasource when trying to get postgis layer in qfield cloud

**URL:** <https://community.qfield.org/t/invalid-datasource-when-trying-to-get-postgis-layer-in-qfield-cloud/849>\
**Category:** Ask the Community\
**Tags:** gh-import\
**Created:** [14 May 2025 03:05 UTC](https://community.qfield.org/t/invalid-datasource-when-trying-to-get-postgis-layer-in-qfield-cloud/849 "2025-05-14T03:05:47Z")\
**Posts on this page:** 4\
**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 03:05 UTC](https://community.qfield.org/t/invalid-datasource-when-trying-to-get-postgis-layer-in-qfield-cloud/849/1 "2025-05-14T03:05:47Z")

</div>

Hi,  
I am having this error. Please provide me a solution  
INFO:root:QGIS project layer checks  
Layer Name Layer Id Is Valid Status Error Summary Provider Summary

* * *

KEast\_roads …aea30c True no\_error  
P73\_boundary …4ea8df True no\_error  
P73\_buildings …4cefe8 False invalid\_dataprovider  
Ward\_KEast …bb5259 True no\_error  
Generate Thumbnail Image  
INFO:root:Generate project thumbnail image…  
WARNING:QGIS\_MSGLOG:Connection to database failed  
fe\_sendauth: no password supplied  
WARNING:QGIS\_MSGLOG:1 unavailable layer(s) found:  
WARNING:QGIS\_MSGLOG: \* dbname=‘prabhag122’ host= port=5432 sslmode=disable key=‘uuid’ type=MultiPoint checkPrimaryKeyUnicity=‘1’ table=“public”.“P73\_buildings” (geom)  
INFO:QGIS\_STDERR:Stopping QGIS app…

* * *

_Imported from [GitHub discussion](https://github.com/opengisch/qfield/discussions/3115) by @MonikaShah on 2022-07-26T07:44:09Z_

---

<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 03:05 UTC](https://community.qfield.org/t/invalid-datasource-when-trying-to-get-postgis-layer-in-qfield-cloud/849/2 "2025-05-14T03:05:48Z")

</div>

Hi,  
It seems QFieldCloud can not connect to your database.  
Here you have an explanation how to do it [Postgis](https://docs.qfield.org/get-started/tutorials/advanced-setup-qfc/#postgis)

1. Is your database visible from internet
2. Did you set up the [secrets](https://docs.qfield.org/reference/qfieldcloud/secrets/)

* * *

_Imported from [GitHub comment](https://github.com/opengisch/QField/discussions/3115#discussioncomment-3229481) by @lucienicolier on 2022-07-26T09:27:12Z_

---

<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 03:05 UTC](https://community.qfield.org/t/invalid-datasource-when-trying-to-get-postgis-layer-in-qfield-cloud/849/3 "2025-05-14T03:05:50Z")

</div>

Hello,  
I tried adding the configs to secrets. But still I coudnt access it from  
qfield on my mobile.  
error that it has is  
WARNING:QGIS\_MSGLOG:Connection to database failed  
fe\_sendauth: no password supplied  
WARNING:QGIS\_MSGLOG:1 unavailable layer(s) found:  
WARNING:QGIS\_MSGLOG: \* dbname=‘prabhag122’ host=162.55.169.58 port=5432  
sslmode=disable key=‘uuid’ type=MultiPoint checkPrimaryKeyUnicity=‘1’  
table=“public”.“P73\_buildings” (geom)  
INFO:QGIS\_STDERR:Stopping QGIS app.

On Tue, Jul 26, 2022 at 2:57 PM Lucie Nicolier _ **@** _.\*\*\*\>  
wrote:

> Hi,  
> It seems QFieldCloud can not connect to your database.  
> Here you have an explanation how to do it Postgis  
> [https://docs.qfield.org/get-started/tutorials/advanced-setup-qfc/#postgis](https://docs.qfield.org/get-started/tutorials/advanced-setup-qfc/#postgis)
> 
> 1. Is your database visible from internet
> 2. Did you set up the secrets  
> [https://docs.qfield.org/reference/qfieldcloud/secrets/](https://docs.qfield.org/reference/qfieldcloud/secrets/)
> 
> —  
> Reply to this email directly, view it on GitHub  
> [https://github.com/opengisch/QField/discussions/3115#discussioncomment-3229481](https://github.com/opengisch/QField/discussions/3115#discussioncomment-3229481),  
> or unsubscribe  
> [https://github.com/notifications/unsubscribe-auth/AA76P5PEP4A54NOTPMFBIY3VV6VPVANCNFSM54U4SYUQ](https://github.com/notifications/unsubscribe-auth/AA76P5PEP4A54NOTPMFBIY3VV6VPVANCNFSM54U4SYUQ)  
> .  
> You are receiving this because you authored the thread.Message ID:  
> _ **@** _.\*\*\*\>

–  
With Regards,  
Monika Shah

* * *

_Imported from [GitHub comment](https://github.com/opengisch/QField/discussions/3115#discussioncomment-3257905) by @MonikaShah on 2022-07-27T06:33:29Z_

---

<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 03:05 UTC](https://community.qfield.org/t/invalid-datasource-when-trying-to-get-postgis-layer-in-qfield-cloud/849/4 "2025-05-14T03:05:51Z")

</div>

MonikaShah seems you have configured you PostGIS layer improperly. Are you sure you configured your layer to require a service with specific name?

* * *

_Imported from [GitHub comment](https://github.com/opengisch/QField/discussions/3115#discussioncomment-3380397) by @suricactus on 2022-08-12T01:50:45Z_
