Donkie / Spoolman

Keep track of your inventory of 3D-printer filament spools.
MIT License
997 stars 93 forks source link

no port in URL after standard install #483

Closed Stooovie closed 1 month ago

Stooovie commented 1 month ago

Describe the bug Standard install on Debian (Raspberry OS Lite 64bit), using the provided commands.

Install finishes, but no port is given: Screenshot 2024-09-15 at 9 47 50

Spoolman Host (please complete the following information):

I copied the .env sample, pasted in in /Spoolman/.env and reinstalled but that's not in the instructions. The port should be filled in automatically, and it wasn't. Tried twice manually and once with KIAUH.

erwinf commented 1 month ago

I also got the same issue when I reinstalled spoolman on a new rpi4

AlexTheGreat1971 commented 1 month ago

So did I. Installation type: Standalone Installed version: 0.20 OS and Distro: Armbian-unofficial 24.2.0-trunk bookworm / OpenNept4une Database type: SQLite

DicyRoll commented 1 month ago

The install.sh script checks if a .env file exists, if it doesn't it copies .env.example renaming it to .env (link). In the latest release (v0.20.0) .env.example is missing from the spoolman.zip asset that is downloaded using the standalone installation instructions.

Maybe something changed in the release workflows?

As a temporary fix I suggest omitting the execution of install.sh right away, so:

sudo apt-get update && \
sudo apt-get install -y curl jq && \
mkdir -p ./Spoolman && \
source_url=$(curl -s https://api.github.com/repos/Donkie/Spoolman/releases/latest | jq -r '.assets[] | select(.name == "spoolman.zip").browser_download_url') && \
curl -sSL $source_url -o temp.zip && unzip temp.zip -d ./Spoolman && rm temp.zip && \
cd ./Spoolman

then copying .env.example from the repo in your downloaded directory and finally running:

bash ./scripts/install.sh
Romano26 commented 1 month ago

same issus https://github.com/Donkie/Spoolman/issues/483

przemeku6 commented 1 month ago

same here. on proxmox vm with mint.

AlexTheGreat1971 commented 1 month ago

then copying .env.example from the repo in your downloaded directory and finally running: bash ./scripts/install.sh

Yes! It works. Thanks a lot

CREEPERGAMER138 commented 1 month ago

I have not been able to make it work. I downloaded the mentioned file env.example and put it in the root of the program folder and it does not read it. Did I do it wrong or am I missing something or is it just me that is not working? Installation from scratch first time I use the program

Donkie commented 1 month ago

I will take a look at the installation script, see if something broke.

In the meantime, the port is read from a ".env" file located in the Spoolman folder. So if you don't have that file, download the .env.example and rename it to .env, then restart and try again.

CREEPERGAMER138 commented 1 month ago

Echaré un vistazo al script de instalación, veré si algo se rompió.

Mientras tanto, el puerto se lee desde un archivo ".env" ubicado en la alfombra Spoolman. Entonces, si no tiene ese archivo, descarga el .env.example y cambia el nombre a .env, juego reinicie e intención nuevo.

Captura de pantalla 2024-09-19 022517 I have the same error

mkevenaar commented 1 month ago

Echaré un vistazo al script de instalación, veré si algo se rompió. Mientras tanto, el puerto se lee desde un archivo ".env" ubicado en la alfombra Spoolman. Entonces, si no tiene ese archivo, descarga el .env.example y cambia el nombre a .env, juego reinicie e intención nuevo.

Captura de pantalla 2024-09-19 022517 I have the same error

It needs to be .env. Notice the dot (.) at the beginning of the file

CREEPERGAMER138 commented 1 month ago

Echaré un vistazo al script de instalación, veré si algo se rompió. Mientras tanto, el puerto se lee desde un archivo ".env" ubicado en la alfombra Spoolman. Entonces, si no tiene ese archivo, descarga el .env.example y cambia el nombre a .env, juego reinicie e intención nuevo.

Captura de pantalla 2024-09-19 022517 I have the same error

It needs to be .env. Notice the dot (.) at the beginning of the file

Thanks a lot

fran6p commented 1 month ago

I have a same issue : no .env.example so no .env. Once that file present and Spoolman.service restarted, all is OK. When I compare the spoolman.zip from prevoius 0.19 and latest 0.20 version, the later (0.20) has none hidden files / folder in the archive. :-)

Donkie commented 1 month ago

Yup seems to be a change in the CI. I have fixed the issue so the next release will include dot-files like .env.example again. For now, manually download the .env.example and rename it to .env