-
-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Entity Too Large" when downloading a project using qfield. #872
Comments
Can you try with a smaller offline layer if it works fine for you? Seems the offlined version of your data in Do you have a large postgis layer? If you revert back to the previous QFC version, does it work as expected? |
I used a different project as a test. In this project, the data.gpkg file went through without errors. Then the process got stuck on a file called "Luftbild RLP.tif" with the same error. This is a geo-tiff with a size of 93 MB. I then excluded this tif file from the project. Then the project was downloaded from qfield without errors. The process was error-free according to qfc-log. There are still crazy things that happen. In qfield the project is displayed as "locally available". But I can't call it up in qfield. Whenever I tap on the project, it is downloaded again and not started locally. -- snip --
Feedback pre:
-- snap -- |
One more important piece of information about the previously mentioned test project. If the project is set to :
|
Thanks for the input. So it seems the "Optimized packager" produces bigger offline package. It would be interesting to know a bit more about your vector layers? Is it single data source but multiple layers? Is it a pg behind it? Anything that will help us to identify the issue is welcomed. If you can share the data with me, would be even better. |
This is important bit would help me to identify the regression, is it working flawlessly, or you still get:
|
Can you please try one more thing for me? In the latest QFieldCloud version, please replace the nginx image from |
Hi, the change of image from nginx:stable to nginx.1.23.4-bullseye did not change the errors in either packaging mode. |
How can I send you the test project as a zip file? It doesn't seem to work in github.
|
ivan at opengis.ch |
I have sent you a test project. And yes, almost all layers have pg behind them. |
I have now tested the qfield download of the test project with qfieldcloud 0.23.2 and 0.23.0. The error "Request Entity Too Large" now also occurs with the previous versions. However, I have not reversed the database migration. |
I had now set up the following test scenario: I used the test project from QGis to create a completely new qfc project via the qfc-extension. This worked flawlessly. The qfc-extension now creates its own directory locally. The qfc-extension then transferred exactly this directory to the qfc-server. Everything went smoothly and without errors. Apparently the qfc-extension creates separate gpkg files for each pg-layer. Incidentally, there is no longer a file called data.gpkg in the directory. Now I do a project downlaod from qfield (qfield is updated and the project is created from scratch with the qfc-extension of qgis). And that doesn't work again. The error situation is the same as already described. Depending on the packager, the process gets stuck either at data.gpkg or at the tif file according to the log. Interestingly, as I said, there is no data.gpkg file in the project at all. What's going wrong? |
It's not because of the DB migration. Most probably some of the underlying docker images is casuing this. |
I have now reached the point where I can download a test project consisting exclusively of pg layers with the old packager mode (deprecated) locally via qfield without errors. It is very strange that I cannot open a project downloaded locally from qfc without errors in qfield either. Tapping on it only starts the download again and again. But this phenomenon is possibly a topic for the qfield app area. What is really annoying is the very spartan frontend introduced with qfc version 0.24.0. For example, if you want to add collaborators to a project, you can only create NEW users. It is not possible to select existing users, the userlist-dropdown field is empty. I continue to look for a solution and a way out of this confused situation. My qfc server is currently unusable. |
My images, containers, volumes are fine.
Test:
I am also attaching the log file from qfc regarding the download of the qfield test project. For qfc the process was error-free. And nothing in the log suggests to me a reason why qfield thinks there is an error and the project does not start. Based on the test results, I assume that either an error with qfc, libqfieldsync or qfield or a combination of all of these is the cause of the malfunction. In any case, it is not my docker. |
Hi, The suspicion you expressed that my Docker image was not in order has already turned out to be wrong. I have already regenerated the images countless times. Everything is fine on my self-hosted qfc server, including the Docker images, containers and volumes. Regards, 19:51:46.436 /usr/local/lib/python3.10/dist-packages/qfieldcloud_sdk/sdk.py INFO Uploading file "data.gpkg"… Feedback pre { 413 Request Entity Too Large\r\nnginx/1.24.0\r\n\r\n\r\n'", "error_class": "QfcRequestException", "error_origin": "container", "error_stack": [ " File "/usr/src/app/qfc_worker/utils.py", line 556, in run_workflow\n return_values = step.method(**arguments)\n", " File "/usr/src/app/qfc_worker/utils.py", line 255, in upload_package\n client.upload_files(\n", " File "/usr/local/lib/python3.10/dist-packages/qfieldcloud_sdk/sdk.py", line 246, in upload_files\n raise err\n", " File "/usr/local/lib/python3.10/dist-packages/qfieldcloud_sdk/sdk.py", line 232, in upload_files\n self.upload_file(\n", " File "/usr/local/lib/python3.10/dist-packages/qfieldcloud_sdk/sdk.py", line 288, in upload_file\n return self._request(\n", " File "/usr/local/lib/python3.10/dist-packages/qfieldcloud_sdk/sdk.py", line 811, in _request\n raise QfcRequestException(response) from err\n" ], "error_type": "API_OTHER", "feedback_version": "2.0", |
Hi @suricactus I have now completely reinstalled qfc on a server. I then transferred the 2 QGIS test projects (one with pg layers, the other a simple gpkg) to qfc. The result:
Overall, despite reinstallation, qfc has been unusable for me as a self-hoster since version 0.24.x. |
Hi,
Since the update to 0.24.0, when I try to download a project locally with qfield, I get the following error message (excerpt) during the process.
It is interesting to note that a directory with the ID 7b0ea8e2-c788-4d04-ac21-24196879a2f9 does not exist at all in the project file system. Even if I pretend to the system that there is no (last) package by deleting the last package ID and the timestamp in the project table and also removing the package directory in the file system. I still get the same error message.
Does anyone know what is going wrong here?
Thanks.
Feedback pre:
The text was updated successfully, but these errors were encountered: