Skip to main content
14-Alexandrite
March 3, 2023
Solved

Docker install Build Postgres DB: Failed.

  • March 3, 2023
  • 1 reply
  • 1997 views

Hello,

 

I am trying to build image of thingworx 9.1 on docker.

this is the tuto i am folowing:

https://support.ptc.com/help/thingworx/platform/r9/en/index.html?_gl=1*76uyjh*_ga*MTQyMTY0MzUwOS4xNjczMjU5Mjcz*_ga_1QBT6P6HR1*MTY3Nzg2NDM4My40OC4xLjE2Nzc4NjQ0NzEuMC4wLjA.#page/ThingWorx/Help/Installation/ThingWorxDockerGuide/thingworx_docker_getting_started.html#

 

failed to compute cache key: "/staging/Thingworx-Platform-Postgres-9-1-14.zip" not found: not found
Build Postgres DB: Failed.

 

More detail on attached file.

 

Any idea to resolve this is welcome.

 

Thank you

 

 

 

 

 

 

Best answer by AliBenBelgacem

Resolved.

It seems to be a dns issue.

I put 8.8.8.8 DNS and it worked.

1 reply

18-Opal
March 6, 2023

Hello,

 

You should have "Thingworx-Platform-Postgres-9-1-14.zip" file in the "staging" directory. You need to download this file from the "Software Downloads" section of the PTC Support portal. Your correct folder structure should look like this (ignore the specific versions in this example):

 

.
├── build.env
├── build.sh
├── conf
├── docker-compose-azuresql-clustered
├── docker-compose-azuresql.yml
├── docker-compose-h2.yml
├── docker-compose-mssql-clustered
├── docker-compose-mssql.yml
├── docker-compose-postgres-clustered
├── docker-compose-postgres.yml
├── dockerfiles
├── LICENSE.txt
├── README.md
├── staging
│ ├── amazon-corretto-11.0.10.9.1-linux-x64.tar.gz
│ ├── apache-tomcat-9.0.55.tar.gz
│ ├── platform-settings.json
│ ├── security-common-cli-1.3.1.68-application.tar.gz
│ ├── template-processor-12.1.0.13-application.tar.gz
│ └── Thingworx-Platform-Postgres-9.2.3.zip

 

/ Constantine

14-Alexandrite
March 6, 2023

Thank you for your answer. 

I already have those files on my staging folder.

I restarted my docker and the error disappear.

Now i have another error  :

 

#13 31.71 Err:2 http://archive.ubuntu.com/ubuntu focal-updates InRelease
#13 31.71 Unable to connect to archive.ubuntu.com:http:
#13 31.71 Err:3 http://archive.ubuntu.com/ubuntu focal-backports InRelease

 

see attached file.

 

Thank you

 

18-Opal
March 7, 2023

Looks like a network issue. Try to turn off your system firewall temporarily and see if it helps. Make sure you are not behind a proxy, not on VPN, etc.