XKNX / xknxproject

ETS project parser written in python
GNU General Public License v2.0
84 stars 17 forks source link

Unable to upload/parse ETS project file #444

Closed WebFactoryLtd closed 2 months ago

WebFactoryLtd commented 2 months ago

Hi, I'm having problems uploading/parsing my ETS project file. Fresh installation on HAOS 13 and HA core 2024.8.1.

All my projects are ETS6. I've tried several, from tiny to big - results are the same. Click browse, find file, hit submit - blue line starts going left/right, and everything stays like that for +30min. No error, no response, no nothing. Chrome console shows that http://homeassistant.local:8123/api/file_upload was called, but after that nothing. Didn't find anything in log either.

I tried downgrading HAOS to 12.4 - no change. Rebooted several times, emptied cache, tried another browsers - all the usual stuff, and still nothing.

Any guidance is highly appreciated. Thank you!

marvin-w commented 2 months ago

Hey, did the request finish or does it stay pending?

Can you post the response, status code etc. please?

I'm not using HAOS myself, but I uploaded my ETS6 successfully yesterday with HA Container - so probably it's related to the setup variant somehow.

farmio commented 2 months ago

Hi 👋! Are you able to upload other files via HAs file_upload api? Eg. media files. Context: https://community.home-assistant.io/t/unable-to-upload-knx-ets-file-or-any-media-file/760326/1

WebFactoryLtd commented 2 months ago

@farmio no :( Same issue. I select a small MP4 and uploader just spins ... So it's not an ETS issue. It's a file upload issue. Do you have any idea where to start digging? I never got any file privilege errors. HA seems to work fine. I can install add-ons. And edit config via file editor. Running VMware on Win10 .

@marvin-w I now left it for about an hour and finally got a response! Msg box says "Upload failed Failed to fetch"

image

farmio commented 2 months ago

Unfortunately I can't seem to be able to reproduce this problem... and also don't know where to start looking.

Unless Marvin has an idea, I'd suggest to open an issue at https://github.com/home-assistant/core tagging the "file_upload" integration to see if there is anyone more knowledgeable.

marvin-w commented 2 months ago

Can you do another upload and before uploading open the DevTools and open the Network Tab and check what you get as a response or if it is stuck pending for an hour?

WebFactoryLtd commented 2 months ago

@farmio will do, thank you!

@marvin-w took 21min this time, here's what I got. And I got the same "failed to fetch" response

image image

farmio commented 2 months ago

🤔 the other report (linked above) also runs Win10/VMWare. Is there something special about this? Would you have a different host to test (Raspberry or something)?

It works fine on a fresh macOS/UTM arm image.

sotatech commented 2 months ago

My HA test system runs 2024.8.2 under Hyper-V. I just tried uploading my project file from ETS 6.2.2 and it loaded fine.

WebFactoryLtd commented 2 months ago

Still on Windows, but switched to VirtualBox and everything works fine. So it's a VMware bug :(