Comments (10)
did the file had the right permissions? Did you try reaching stash on localhost:9998 or 9999?
from stash.
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.
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.
I haven't actually tried running the app on Linux yet. Is anyone else seeing this issue?
from stash.
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.
@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.
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.
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.
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.
This looks dated and likely solved.
from stash.
Related Issues (20)
- [Bug Report] Movies are filtered for uniqueness based on title alone HOT 2
- [Bug Report] Custom Locales not working HOT 3
- [Bug Report] Import via CSV does not currently work due to change in height variable HOT 1
- [Bug Report] Log messages before config is initialized are swallowed. HOT 1
- [Issue] Database is locked HOT 2
- [Feature] add documentation related to the "serve funscripts directly" option HOT 4
- [Feature] Ability to use the O-Counter on entire galleries
- Stash will not recognise Python install/path HOT 3
- [Bug Report] stash-win.exe not refreshing python path on first boot HOT 2
- [Feature] Identify Task : Add collapsible elements
- [Feature] Add ability to filter by tags using not HOT 1
- [Bug Report] Using domain in external_host causing data not to load when using local ip address HOT 3
- [RFC] playing is very slow in the mobile device. It's normal when playing in PC. HOT 1
- [Bug Report] Notification does not dissapear (When shown) HOT 1
- Gallery.dl integration / metadata with stashapp
- [Feature] GQL mutation to set gallery cover
- [Feature] Add PerformerDetailsPanel to PluginAPI.components HOT 2
- Connecting Individual Images to Scenes
- Play Icon for the Card
- [Bug Report] Stash fails to install when database path is selected
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stash.