Error 500 while uploading manually an IFC

Hi ALL,
I started a server today using docker on a windows pc and deploying using the yml code shared by speckle.
All works fine but I am not able to upload any ifc or obj manually.
When I try to do it i get an error on the frontend ERROR CODE 500.
How can i solve this problem?
Thank to all and good speckle

here a screenshot of the issue

Hi @oscarazzus

This is likely to be an issue with the file import service or perhaps the server you have running with Docker compose.

You should open Docker desktop and view the logs for the file import service container and the speckle server container. These might provide more information as to the exact error.

Iain

Thanks @iainsproat
here you can find the logs

and

I found this error in the import service!
It is maybe that causing the issue?
How can i solve this problem?

@iainsproat and this is the log of the server service

2024-10-03 08:29:55 {“@l”:“Information”,“req”:{“id”:“184fa0dd-d314-4253-b154-ccb80f89ab52”,“method”:“POST”,“path”:“/api/file/autodetect/3b7c0d883a/test”,“headers”:{“host”:“127.0.0.1”,“connection”:“upgrade”,“content-length”:“234218725”,“sec-ch-ua-platform”:“"Windows"”,“user-agent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36”,“sec-ch-ua”:“"Google Chrome";v="129", "Not=A?Brand";v="8", "Chromium";v="129"”,“content-type”:“multipart/form-data; boundary=----WebKitFormBoundaryDp03Mt6ztCo5rNKw”,“sec-ch-ua-mobile”:“?0”,“accept”:“/”,“origin”:“http://127.0.0.1”,“sec-fetch-site”:“same-origin”,“sec-fetch-mode”:“cors”,“sec-fetch-dest”:“empty”,“referer”:“http://127.0.0.1/projects/3b7c0d883a",“accept-encoding”:"gzip, deflate, br, zstd”,“accept-language”:“en-US,en;q=0.9,fr;q=0.8”,“x-request-id”:“184fa0dd-d314-4253-b154-ccb80f89ab52”}},“requestPath”:“/api/file/autodetect/3b7c0d883a/test”,“@t”:“2024-10-03T12:29:55.223Z”,“@mt”:“{requestPath} request received”}
2024-10-03 08:29:55 {“@l”:“Error”,“req”:{“id”:“184fa0dd-d314-4253-b154-ccb80f89ab52”,“method”:“POST”,“path”:“/api/file/autodetect/3b7c0d883a/test”,“headers”:{“host”:“127.0.0.1”,“connection”:“upgrade”,“content-length”:“234218725”,“sec-ch-ua-platform”:“"Windows"”,“user-agent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36”,“sec-ch-ua”:“"Google Chrome";v="129", "Not=A?Brand";v="8", "Chromium";v="129"”,“content-type”:“multipart/form-data; boundary=----WebKitFormBoundaryDp03Mt6ztCo5rNKw”,“sec-ch-ua-mobile”:“?0”,“accept”:“/”,“origin”:“http://127.0.0.1”,“sec-fetch-site”:“same-origin”,“sec-fetch-mode”:“cors”,“sec-fetch-dest”:“empty”,“referer”:“http://127.0.0.1/projects/3b7c0d883a",“accept-encoding”:"gzip, deflate, br, zstd”,“accept-language”:“en-US,en;q=0.9,fr;q=0.8”,“x-request-id”:“184fa0dd-d314-4253-b154-ccb80f89ab52”}},“err”:{“type”:“Error”,“message”:“connect ECONNREFUSED 127.0.0.1:80”,“stack”:“Error: connect ECONNREFUSED 127.0.0.1:80\n at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1555:16)”,“errno”:-111,“code”:“ECONNREFUSED”,“syscall”:“connect”,“address”:“127.0.0.1”,“port”:80},“@t”:“2024-10-03T12:29:55.335Z”,“@x”:“Error: connect ECONNREFUSED 127.0.0.1:80\n at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1555:16)”,“@mt”:“Error while uploading blob.”}
2024-10-03 08:29:55 {“@l”:“Error”,“req”:{“id”:“184fa0dd-d314-4253-b154-ccb80f89ab52”,“method”:“POST”,“path”:“/api/file/autodetect/3b7c0d883a/test”,“headers”:{“host”:“127.0.0.1”,“connection”:“upgrade”,“content-length”:“234218725”,“sec-ch-ua-platform”:“"Windows"”,“user-agent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36”,“sec-ch-ua”:“"Google Chrome";v="129", "Not=A?Brand";v="8", "Chromium";v="129"”,“content-type”:“multipart/form-data; boundary=----WebKitFormBoundaryDp03Mt6ztCo5rNKw”,“sec-ch-ua-mobile”:“?0”,“accept”:“/”,“origin”:“http://127.0.0.1”,“sec-fetch-site”:“same-origin”,“sec-fetch-mode”:“cors”,“sec-fetch-dest”:“empty”,“referer”:“http://127.0.0.1/projects/3b7c0d883a",“accept-encoding”:"gzip, deflate, br, zstd”,“accept-language”:“en-US,en;q=0.9,fr;q=0.8”,“x-request-id”:“184fa0dd-d314-4253-b154-ccb80f89ab52”}},“res”:{“statusCode”:500,“headers”:{“x-request-id”:“184fa0dd-d314-4253-b154-ccb80f89ab52”,“access-control-allow-origin”:“*”,“x-ratelimit-remaining”:499,“content-security-policy”:“frame-ancestors ‘none’”,“content-type”:“text/html; charset=utf-8”,“content-length”:“33”,“etag”:“W/"21-CffU5/wV/MruHj5c5Xlg/AsXIDY"”},“userId”:“c3366f3ec3”},“err”:{“type”:“Error”,“message”:“failed with status code 500”,“stack”:“Error: failed with status code 500\n at onResFinished (/speckle-server/node_modules/pino-http/logger.js:114:39)\n at ServerResponse.onResponseComplete (/speckle-server/node_modules/pino-http/logger.js:177:14)\n at ServerResponse.emit (node:events:529:35)\n at onFinish (node:_http_outgoing:1001:10)\n at callback (node:internal/streams/writable:555:21)\n at afterWrite (node:internal/streams/writable:500:5)\n at afterWriteTick (node:internal/streams/writable:487:10)\n at process.processTicksAndRejections (node:internal/process/task_queues:81:21)”},“responseTime”:113,“requestStatus”:“failed”,“requestPath”:“/api/file/autodetect/3b7c0d883a/test”,“@t”:“2024-10-03T12:29:55.336Z”,“@x”:“Error: failed with status code 500\n at onResFinished (/speckle-server/node_modules/pino-http/logger.js:114:39)\n at ServerResponse.onResponseComplete (/speckle-server/node_modules/pino-http/logger.js:177:14)\n at ServerResponse.emit (node:events:529:35)\n at onFinish (node:_http_outgoing:1001:10)\n at callback (node:internal/streams/writable:555:21)\n at afterWrite (node:internal/streams/writable:500:5)\n at afterWriteTick (node:internal/streams/writable:487:10)\n at process.processTicksAndRejections (node:internal/process/task_queues:81:21)”,“@mt”:“{requestPath} request {requestStatus} in {responseTime} ms”}

Error: connect ECONNREFUSED 127.0.0.1:80 is the cause of the issue, the server is unable to connect to the given port on localhost.

Did you update all the environment variables (indicated with # TODO) in the Docker Compose file before running it?

The vulnerability report is unrelated. The file import service is not directly addressable from the internet, so not applicable.

Iain

Oh ok , i was using my localhost and a local ip to test the server.
So there is no way to fix that using a localhost server?
If I will use the same settings on digitalocean all should be fine?

It should work with localhost, but it does depend on your local configuration.

Hi, I encountered exactly the same problem. I set up a server on a local machine using Docker Compose, and I took the YAML file from https://speckle.guide/dev/server-manualsetup.html. Everything works except for uploading IFC files. The error is exactly the same. What needs to be changed to get this feature working? Help me please

error text:
2024-10-08 22:03:52 speckle-server-1 | {“@l”:“Error”,“req”:{“id”:“1a7340d1-a452-4c6d-a507-799f59bc825d”,“method”:“POST”,“path”:“/api/file/autodetect/db35b49344/123.ifc”,“headers”:{“host”:“127.0.0.1”,“connection”:“upgrade”,“content-length”:“56050”,“sec-ch-ua-platform”:“"Windows"”,“user-agent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36”,“sec-ch-ua”:“"Google Chrome";v="129", "Not=A?Brand";v="8", "Chromium";v="129"”,“content-type”:“multipart/form-data; boundary=----WebKitFormBoundaryCOfM7xWwBKlQwmpV”,“sec-ch-ua-mobile”:“?0”,“accept”:“/”,“origin”:“http://localhost”,“sec-fetch-site”:“cross-site”,“sec-fetch-mode”:“cors”,“sec-fetch-dest”:“empty”,“referer”:“http://localhost/",“accept-encoding”:"gzip, deflate, br, zstd”,“accept-language”:“ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7”,“x-request-id”:“1a7340d1-a452-4c6d-a507-799f59bc825d”}},“err”:{“type”:“Error”,“message”:“connect ECONNREFUSED 127.0.0.1:80”,“stack”:“Error: connect ECONNREFUSED 127.0.0.1:80\n at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1555:16)”,“errno”:-111,“code”:“ECONNREFUSED”,“syscall”:“connect”,“address”:“127.0.0.1”,“port”:80},“@t”:“2024-10-08T19:03:52.003Z”,“@x”:“Error: connect ECONNREFUSED 127.0.0.1:80\n at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1555:16)”,“@mt”:“Error while uploading blob.”}