GithubHelp home page GithubHelp logo

data folder empty about spoolman HOT 15 CLOSED

solo2424 avatar solo2424 commented on August 29, 2024
data folder empty

from spoolman.

Comments (15)

Donkie avatar Donkie commented on August 29, 2024 1

Ah, I was able to reproduce this locally. An empty data directory should exist in the same directory as your docker-compose.yml, do sudo chown 1000:1000 data on that data folder and restart your docker container, and it should now work!

A spoolman.db file should appear in the data folder as well.

from spoolman.

Donkie avatar Donkie commented on August 29, 2024

Can you show me the exact docker-compose you run?

What URL did you put in your browser?

from spoolman.

solo2424 avatar solo2424 commented on August 29, 2024

Here is the docker-compose.yml. I used the exact same file and ran it on my windows PC and it works fine. After creating the docker-compose.yml I run the following command. sudo docker-compose up -d. I now get the following message. But the url still does not work. http://192.168.0.93:7912

spoolman_spoolman_1 is up-to-date

docker-compose.yml

version: '3.8'
services:
spoolman:
image: ghcr.io/donkie/spoolman:latest
restart: unless-stopped
volumes:
- ./data:/home/app/.local/share/spoolman
ports:
- "7912:8000"

from spoolman.

Donkie avatar Donkie commented on August 29, 2024

Everything looks correct from what I can see. Can you show me the output of

sudo docker logs $(sudo docker ps -aqf "name=spoolman_spoolman_1")

from spoolman.

solo2424 avatar solo2424 commented on August 29, 2024

spoolman.log
I appreciate you helping me with this. I really hope to get this off of my desktop and onto my server. Looking at the log (i'm no programmer) it looks like this is a permission issue.

from spoolman.

solo2424 avatar solo2424 commented on August 29, 2024

That did it! thank you so much! Like I said before, this project is so needed! I appreciate your efforts. I would love to donate to this cause if you have a method. Also, Is there a way to submit feature requests? I can submit issues but not sure if that is the best route to go. I have some good suggestions that I think would help alot. Of course, I know you are waiting to see if it gets added to the master branch.

from spoolman.

Donkie avatar Donkie commented on August 29, 2024

Thank you for the nice feedback :) For now you can use https://paypal.me/donkieyo if you want to donate

Please make issues here on github.com if you want to submit any feature requests, it's the best place for it!

from spoolman.

solo2424 avatar solo2424 commented on August 29, 2024

I ran a few prints but the estimated remaining weight has not adusted. I waited quite a while to see if it just takes time to sync but nothing. Here is the command I get that verifies (I believe so) I selected the correct spool.

solo@SoLoServer:/Spoolman$ POST 192.168.0.93:7126/spoolman/set_spool
Please enter content (application/x-www-form-urlencoded) to be POSTed:
{"spool_id": 7}{"result": true}solo@SoLoServer:
/Spoolman$

from spoolman.

Donkie avatar Donkie commented on August 29, 2024

Interesting. Could you show me the logs of Spoolman, and also the logs of Moonraker?

from spoolman.

solo2424 avatar solo2424 commented on August 29, 2024

spoolman2.log
moonraker (1).log

from spoolman.

Donkie avatar Donkie commented on August 29, 2024

Looks like you're not setting the spool correctly:

2023-06-25 10:54:40,202 [spoolman.py:set_active_spool()] - Setting active spool to: None
2023-06-25 10:54:40,202 [database.py:_insert_impl()] - Error inserting key '['spoolman.active_spool_id']' in namespace 'spoolman'

It's interpreting your spool setting request as if you want to un-set the spool_id for some reason. That should work in either case though. I will look into why unsetting the spool_id doesn't work.

Maybe your method of sending a POST request is flawed? Try running this unix curl command on your server, replacing the spool ID and the IP&port for your moonraker instance of course:

curl -X POST -H "Content-Type: application/json" -d '{"spool_id": 123}' http://192.168.0.123:1234/spoolman/set_spool

from spoolman.

solo2424 avatar solo2424 commented on August 29, 2024

That did it! Thanks, and good luck with your PR I am glad to see that Arksine is checking it out.

from spoolman.

Donkie avatar Donkie commented on August 29, 2024

No problem! I have made some updates in the PR now to address the review comments. Would be nice if you fetch the latest changes (using same approach as last time to pull them in) and test it out.

Note that the command to set the spool ID has been updated, the curl command would now be:

curl -X POST -H "Content-Type: application/json" -d '{"spool_id": 123}' http://192.168.0.123:1234/spoolman/spool_id

from spoolman.

solo2424 avatar solo2424 commented on August 29, 2024

So I wentthrough the same process to switch over to your branch but I don't think it is updating. It says "Your branch is up to date" but the new curl command is not working. The old command still appears to work. Here are the commands and responses.

edit: I also ran a git pull command and I got the same result, it says I am already up to date.

Spoolman cmd.txt

from spoolman.

Donkie avatar Donkie commented on August 29, 2024

Strange.
In any case, it seems like the PR will get merged quite soon, so just sit tight for that :)

from spoolman.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.