Syncing from QGIS to QFieldCloud ends up with a status of failed

(Windows 11, QGIS 3.44.5, QField Sync v4.18.0 (same now with 4.18.1))

I tried to sync my new project (first time) to QField Cloud using QField Sync. Locally in QGIS I don’t face any errors. The cloud status was on “busy” for some seconds and then switched to “failed”.

In QField Cloud I see my project, also status failed:

Warning! Your QGIS project may not work as expected on QField.

  • Failed to parse metadata from project. Re-upload the QGIS project file (.qgs/.qgz).

Re-Syncing does not change anything.

In “Jobs” I find the failed job with this details:

Now I am not sure what I can do. Is there maybe a problem in the qgs-project? When I package it for QField and put it on a mobile device manually, everything works fine. Or is it maybe a problem on QField Cloud Server similar to this one: Project no longer syncing with QField Cloud ?

Thanks in advance

Eike

Hi,

As a fellow user I have no insight in any server issues, so let’s assume the server is working fine for now.

Could you post a screenshot of the QFieldCloud Packaging tab from the Configure Current Project button?

And to get some insight in your workflow:
Is the folder you chose as Local Directory to store your project different from the folder of the actual QGIS project? This is a setting when Converting your currently open project project to cloud project.

Did you create a project in QGIS and then convert it to QField or did you create a new QField project directly?

You say it does work with cable packaging. Did you choose to Package for QField first and then created the QFieldCloud project, or the other way around?

Thanks for taking on my problem! I try to answer your questions:

Could you post a screenshot of the QFieldCloud Packaging tab from the Configure Current Project button?

A screenshot is a bit difficult as it is quite some layers and the dialog has a big scollbar… but I can try to some it up: I have vectortiles-layer, WMS-layers and virtual layers which are all on “Directly access data source” and I have vectorlayers (locally stored in one GPKG) that are on “Offline editing”.

Is the folder you chose as Local Directory to store your project different from the folder of the actual QGIS project?

I created an empty folder next to the actual qgs-file and the gpkg and chose this new folder as the local directory.

Did you create a project in QGIS and then convert it to QField or did you create a new QField project directly?

I created the project in QGIS first and then converted the currently opened project to a QField-cloud project.

You say it does work with cable packaging. Did you choose to Package for QField first and then created the QFieldCloud project, or the other way around?

Actually both. I packaged it already for QField before I decided to use the Cloud and I can also package it now and it still works.

Did you maybe convert the packaged project into a QField_cloud project?
This is just an idea I have, because packaging for QField creates additional files and if you were to convert the packaged project, it might error out?
I have just tested this with a very simple project, and it did NOT error out, so this is just a long shot.

Would you mind trying to copy the original qgis project file and the original data to a new folder. Then create an empty folder next to it and convert the copied project into a new qfield_cloud project. So making sure that you are not converting an already packaged qfield project?

I don’t think I uploaded the packaged project as e.g. the gpkg of packaged projects are being renamed to data.gpkg, but in QField Cloud in my files-list I see the correct name.

Anyway, to be sure, I just did what you suggested, copied the project and corresponding files to a new folder, created the empty folder for the QField-local-copy next to the oroginal project, opened this project and uploaded it. Result: unfortunately the same errors, also in “Jobs”.

Another attempt: created the QField-local-copy far away from the original project - on another local drive :wink: and uploaded again. Got the same errors again.