-
Notifications
You must be signed in to change notification settings - Fork 25
Unknown error occurred while uploading file #2254
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
Comments
Alternatively, this is the code to run the same PyMAPDL code: from ansys.mapdl.core import launch_mapdl
mapdl = launch_mapdl(port=50052)
mapdl.prep7()
mapdl.et(1, "SOLID5")
mapdl.block(0, 10, 0, 20, 0, 30)
mapdl.esize(10)
mapdl.vmesh("ALL")
mapdl.units("SI") # SI - International system (m, kg, s, K).
# Define a material (nominal steel in SI)
mapdl.mp("EX", 1, 210e9) # Elastic moduli in Pa (kg/(m*s**2))
mapdl.mp("DENS", 1, 7800) # Density in kg/m3
mapdl.mp("PRXY", 1, 0.3) # Poisson's Ratio
# Fix the left-hand side.
mapdl.nsel("S", "LOC", "Z", 0)
mapdl.d("ALL", "UX")
mapdl.d("ALL", "UY")
mapdl.d("ALL", "UZ")
mapdl.nsel("S", "LOC", "Z", 30)
mapdl.f("ALL", "FX", 1000)
mapdl.run("/SOLU")
mapdl.antype("STATIC")
mapdl.solve()
mapdl.finish()
rst_path = mapdl.download_result()
from ansys.dpf import core as dpf
DPF_PORT=50058
dpf_server = dpf.connect_to_server(port=DPF_PORT)
# Upload RST
if not dpf_server.local_server:
rst_path = dpf.upload_file_in_tmp_folder(rst_path, server=dpf_server) # it fails here
model = dpf.Model(rst_path) |
Using the old DPF docker container fix it... but of course, this is 22.2. I would love some guidance regarding how to make sure we are running DPF properly on the server side on a container.
|
the docker image is created from this: https://github.com/ansys/pydpf-actions/blob/refs/tags/v2.2/install-dpf-server/action.yml |
I realise that on MacOS, I am forced to use the Probably that is creating the problem? Since it seems the problem comes from the gRPC configuration. |
I believe the problem is related to ubuntu.. since similar procedure works with Rocky. Do you have any instructions to build DPF docker images based on ubuntu? |
Ok the problem seems to be in the gRPC interface when running DPF in an Ubuntu container. The pydpf client on the host fails to upload the file to the container. Reference for building the docker image: https://github.com/ansys-dpf/dpf-standalone/blob/linux_release-25.2/Dockerfile |
Uh oh!
There was an error while loading. Please reload this page.
Before submitting the issue
Description of the bug
So I did created a DPF-standalone image and I am now trying to use it in PyMAPDL CICD.
However I am getting the following error:
DPF debug
Steps To Reproduce
Code to replicate
Which Operating System causes the issue?
MacOS
Which DPF/Ansys version are you using?
DPF Server 2025.2.pre0
Which Python version causes the issue?
3.12
Installed packages
The text was updated successfully, but these errors were encountered: