ai-republic / bms-to-inverter

Use, monitor and control any battery brand with any inverter! Application to read and monitor data from BMSes and write data to an inverter using any protocol (e.g. UART, RS485, ModBus or CAN)
https://github.com/ai-republic/bms-to-inverter
Other
69 stars 10 forks source link

Error: Unable to access jarfile bms-to-inverter-main-0.0.1-SNAPSHOT.jar #41

Closed wire67 closed 1 week ago

wire67 commented 1 month ago

Hello! Thanks for making this promising project :) Running ./start from the script subdirectory (?) outputs this error Error: Unable to access jarfile bms-to-inverter-main-0.0.1-SNAPSHOT.jar, I do not see this jar to be available in the repo, or am I doing this wrong?

OS: Ubuntu.

ai-republic commented 1 month ago

Ah, this startscipt from the scripts folder is outdated. Please use the Configurator application to configure your system (see Wiki - How to use). Once you have executed the Clean install you will have a start script generated in your installation folder. Please use that to start the Bms-to-Inverter application (and - if configured - the webserver) :)

wire67 commented 1 month ago

I did followed this wiki and did run the configurator on windows, the generated folder contains:

there is no installation folder though

ai-republic commented 1 month ago

Hi, if you ran the Clean install on Windows then you should have the following folders/files generated in the folder that you set as Installation path in the Configurator General tab: image

Which Java JDK is installled? You should have a JDK 21 to run this successfully. If not, then you can download it here.

After you have the proper installation you will need to copy it to you PI via WinSCP or something similar. Please also make sure you have JDK 21 installed and set as default there.

wire67 commented 1 month ago

I run jdk 22 "C:\Program Files\Java\jdk-22.0.2\bin\java" -jar configurator.jar

and clean install

Configuration in: P:\Prog\bms-to-inverter-installer\config
Temp directory is: P:\Prog\bms-to-inverter-installer\temp
Downloading application...done
Building application...

Application was successfully built!

then a message

image

and folder contains

image

ai-republic commented 1 month ago

Could you please download the latest Configurator application and try again? Please let me know if it solved your issue :)

ai-republic commented 1 month ago

@wire67 did it resolve your issue?

wire67 commented 1 month ago

Thanks for the help! The new configurator didn't work better, I also then tried JDK 21 with no success. Next I will run the configurator from another platform. image

ai-republic commented 1 month ago

Is the P: drive an external USB drive? Could you try to run it on a local drive like C: please? I tested it and have it running on Windows and also on my PI so I believe your external drive might cut out (I/O chip on/off) shortly during the build

wire67 commented 1 month ago

P is a virtual disk of C, I have tried on C as well. That error message, it's looking for a zip file in the downloaded repo, but that zip doesn't exit in the repo...

wire67 commented 1 month ago

image

ai-republic commented 1 month ago

The zip File is downloaded from GitHub. That contains the complete BMS-to-Inverter repository. Maybe you have the URL blocked by a firewall? It tries this URL: https://github.com/ai-republic/bms-to-inverter/archive/master.zip Can you open that link?

ai-republic commented 4 weeks ago

Did you solve your problem? Or have you tried running it on your PI?

wire67 commented 4 weeks ago

URL works fine, no firewall. Apologies I am now busy with other aspects of the system, will be back on this later.

ai-republic commented 2 weeks ago

@wire67 I just updated the Configurator application. You might want to try with the latest Configurator application

ai-republic commented 1 week ago

I will close this issue as I believe it has been resolved. Feel free to open another issue if you encounter any issues :)