Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DB Path #655

Closed
sfreek76 opened this issue Jan 15, 2025 · 4 comments
Closed

DB Path #655

sfreek76 opened this issue Jan 15, 2025 · 4 comments

Comments

@sfreek76
Copy link

Hello

Not a bug, but having issue installing picoshare: Trying to install picoshare on Docker Desktop on MacOS Monterey. Install works but since I have a very small system partition i would like the database to be located on a bigger, external volume. So I tought I will change the data path but all it does is to create a folder in my users folder on my system partition, not on my designated volume. What I am doing wrong? Thanks in advance!

My docker run looks like this:

docker run \
  --env "PORT=4001" \
  --env "PS_SHARED_SECRET=somesecretpass" \
  --publish 4001:4001/tcp \
  --volume "${PWD}/Volumes/Shadowfax HD 2/picoshare/data:/data" \
  --name picoshare \
  mtlynch/picoshare
@sfreek76
Copy link
Author

Got it to work! Had to go with docker compose and now it works with my designated path to an external volume...

In case anyone has the same issue, here's how my Docker-Compose.yml looks like:

version: "3.2"
services:
  picoshare:
    image: mtlynch/picoshare
    environment:
      - PORT=4001
      - PS_SHARED_SECRET=mypassword # Change to any password
    ports:
      - 4001:4001
    command: -db /data/store.db
    volumes:
      - /Your/Pathto/picoshare/data:/data

@mtlynch
Copy link
Owner

mtlynch commented Jan 15, 2025

Glad you got it working! I think in the docker run example, the "PWD" (shows the current directory) wasn't what you wanted, so I think this might have worked:

docker run \
  --env "PORT=4001" \
  --env "PS_SHARED_SECRET=somesecretpass" \
  --publish 4001:4001/tcp \
  --volume "/Volumes/Shadowfax HD 2/picoshare/data:/data" \
  --name picoshare \
  mtlynch/picoshare

@sfreek76
Copy link
Author

Hello @mtlynch Many thanks for your reply! Now all works fine and the db is now on a large drive with 7TB of free space. Unfortunately this does not reflect in System > Information. How can I increase the limit and why is it showing TB instead of GB? Thanks in advance for any input!

Bildschirmfoto 2025-01-15 um 19 46 54

@sfreek76 sfreek76 reopened this Jan 15, 2025
@mtlynch
Copy link
Owner

mtlynch commented Jan 15, 2025

Now all works fine and the db is now on a large drive with 7TB of free space. Unfortunately this does not reflect in System > Information.

What are you seeing that shows the volume has 7 TB free?

In the screenshot, PicoShare thinks it's a 57 TB volume with 27 TB free (30 TB used).

If you run docker exec picoshare df -h /data, what do you see?

How can I increase the limit and why is it showing TB instead of GB?

PicoShare chooses the largest size unit that produces a number greater than 1. So it will always say 7 TB rather than 7000 GB, but if it were only 900 GB, it would say 900 GB rather than 0.9 GB.

I'm closing this issue because it's about the DB path rather than free space, but if you're still seeing issues with free space, feel free to open another issue with the above output.

@mtlynch mtlynch closed this as completed Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants