Invalid datasource when trying to get postgis layer in qfield cloud

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 by @MonikaShah on 2022-07-26T07:44:09Z

Hi,
It seems QFieldCloud can not connect to your database.
Here you have an explanation how to do it Postgis

  1. Is your database visible from internet
  2. Did you set up the secrets

Imported from GitHub comment by @lucienicolier on 2022-07-26T09:27:12Z

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

  1. Is your database visible from internet
  2. Did you set up the 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,
or unsubscribe
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 by @MonikaShah on 2022-07-27T06:33:29Z

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 by @suricactus on 2022-08-12T01:50:45Z