Coder Social home page Coder Social logo

Linux install about stash HOT 10 CLOSED

stashapp avatar stashapp commented on July 21, 2024 1
Linux install

from stash.

Comments (10)

seducingbits avatar seducingbits commented on July 21, 2024 2

did the file had the right permissions? Did you try reaching stash on localhost:9998 or 9999?

from stash.

brauler avatar brauler commented on July 21, 2024 2

I was runing a 32 bits arquitecture debianπŸ˜…πŸ˜…πŸ˜…, I'm sorry, I tried it on 64-bit and it works perfectly!!! 🀣🀣🀣
Thx a lot!!

from stash.

iwiwdt avatar iwiwdt commented on July 21, 2024 2

This is a dockerfile I use

FROM ubuntu:18.04

RUN apt-get update && apt-get install -y wget xz-utils && \
    wget https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz && \
    mkdir /ffmpeg && tar xf ffmpeg-release-amd64-static.tar.xz -C /ffmpeg && \
    mkdir -p /root/.stash && \
    cp -R ffmpeg/*/* /root/.stash/ && \
    rm -rf ffmpeg*

RUN wget https://github.com/stashapp/stash/releases/download/v0.0.0-alpha/stash-linux && \
    chmod +x stash-linux && \
    echo '{\n  "stash": "/mnt/data",\n  "metadata": "/mnt/metadata",\n  "cache": "/mnt/cache",\n  "downloads": "/mnt/metadata/downloads"\n}' > $HOME/.stash/config.json

CMD [ "/stash-linux" ]

from stash.

StashAppDev avatar StashAppDev commented on July 21, 2024 1

I haven't actually tried running the app on Linux yet. Is anyone else seeing this issue?

from stash.

seducingbits avatar seducingbits commented on July 21, 2024 1

Works for me. I run stash in a docker container based on ubuntu. Hadn't luck with the often recommended alpine base image. As a host I am using unraid/slackware linux.

from stash.

tarchive avatar tarchive commented on July 21, 2024

@seducingbits
Unraid user here too. I'm trying to keep my dockers tidy and consistent so I was wondering if you had mapped this stash app's config files to your unraid appdata directory? If so how?

Using iwiwdt dockerfile as an example, the config files will be located in /root/.stash

Docker allows me to mount it as

-v '/mnt/user/appdata/StashApp':'/root/.stash':'rw'

but the stash app wont start due to missing files.

Docker log:
time="2019-03-23T18:11:35Z" level=error msg="open /root/.stash/config.json: no such file or directory" time="2019-03-23T18:11:35Z" level=error msg="config file parse error (ignore on first launch): invalid argument" time="2019-03-23T18:11:35Z" level=info msg="couldn't find FFMPEG, attempting to download it" time="2019-03-23T18:11:35Z" level=fatal msg="Unable to locate / automatically download FFMPEG\n\nCheck the readme for download links.\nThe FFMPEG and FFProbe binaries should be placed in /root/.stash\n\nThe error was: no ffmpeg url for this platform\n"

I would expect it to create the missing files on startup but it doesn't. Permission issue maybe?

Thanks

from stash.

StashAppDev avatar StashAppDev commented on July 21, 2024

Most of the time when people have issues with docker it is a permission issue. I'd check to see what the permissions for that folder are on the host.

from stash.

tarchive avatar tarchive commented on July 21, 2024

The host folder permissions are nobody:users 99:100

For some reason i cannot reproduce the first error where config.json is missing.

The next issue is missing the FFMPEG files. I was not aware when a empty host folder is mounted it will overwrite the existing contents of the container folder as an empty folder too. I had though that the folders contents would merge so the existing FFMPEG files that were grabbed in the dockerfile would be put into the hosts folder automatically

With that known now if i manually extract the FFMPEG files to the host directory and start the container it appears to run normally.

I could accomplish this automatically in the future by putting a line in the dockerfile to copy in a script that will check for FFMPEG files at startup, grabbing them in not found.
Is this the right way to go about this?

Thanks

from stash.

seducingbits avatar seducingbits commented on July 21, 2024

Hey,
sry for the late reply. My Dockerfile:

FROM ubuntu:latest

WORKDIR /root/.stash

RUN apt-get update && apt-get install -y \
    curl xz-utils \
    && curl -s https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz -o ffmpeg.tar.xz \
        && tar -xvf ffmpeg.tar.xz \
        && mv ffmpeg-*/ffmpeg ./ffmpeg \
        && mv ffmpeg-*/ffprobe ./ffprobe \
        && rm ffmpeg.tar.xz \
        && rm -r ffmpeg-*

COPY . .

EXPOSE 9998
EXPOSE 9999

VOLUME /porn /config

CMD ["./stash-linux"]

The copy . . line copies the stash-linux file and a config.json with the following content

{
    "stash" : "/porn",
    "metadata" : "/config/metadata",
    "cache" : "/config/cache",
    "downloads" : "/config/metadata/downloads"
}

and my Unraid config: https://imgur.com/a/A2kO6Oy

I hope that helps!

from stash.

Leopere avatar Leopere commented on July 21, 2024

This looks dated and likely solved.

from stash.

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.