java.nio.file.AccessDeniedException: /root/.filebot/cache
Posted: 28 Jul 2018, 10:36
Hello y'all, Linux noob here. Thanks to the developer for the app. I am running Filebot on a NAS inside a Docker container along with Deluge (dockerfile below, it's based on linuxserver image). Here's what I get by clicking "dry run" in a Deluge plugin:
I see the problem has to do with the fact that Deluge and Filebot are being run by user "abc" (running top in console reveals that), yet Filebot tries to put some cache into /root. I have no idea how to fix it, searched the forum but didn't understand much, would appreciate any help. Maybe the install should be done differently? Dockerfile taken from here and changed a bit (took sources from here) to run on armhf.
Code: Select all
FilebotRuntimeError error on torrent f07e0b0584745b7bcb35e98097488d34e68623d0:
FILEBOT OUTPUT DUMP:
stderr:
Error during startup: java.nio.file.AccessDeniedException: /root/.filebot/cache
java.lang.ExceptionInInitializerError
at net.filebot.Main.main(Main.java:107)
Caused by: net.sf.ehcache.CacheException: java.nio.file.AccessDeniedException: /root/.filebot/cache
at net.filebot.CacheManager.<init>(CacheManager.java:36)
at net.filebot.CacheManager.<clinit>(CacheManager.java:22)
... 1 more
Caused by: java.nio.file.AccessDeniedException: /root/.filebot/cache
at net.filebot.util.FileUtilities.createFolders(FileUtilities.java:183)
at net.filebot.CacheManager.acquireDiskStore(CacheManager.java:73)
at net.filebot.CacheManager.<init>(CacheManager.java:33)
... 2 more
Code: Select all
FROM lsiobase/xenial.armhf
MAINTAINER edifus <[email protected]>
# environment variables
ENV \
HOME="/config" \
JAVA_HOME="/usr/lib/jvm/java-8-oracle" \
PYTHON_EGG_CACHE="/config/plugins/.python-eggs"
ARG JAVA_VERSION="8"
ARG FILEBOT_VERSION="4.7.9"
ARG FILEBOT_SHA256="d7aa3f8d9af9a784853cd935e9a0770d743156991c1d9538b3b5f25b2a20b11d"
ARG FILEBOT_PACKAGE="filebot_${FILEBOT_VERSION}_armhf.deb"
# copy sources
COPY sources.list /etc/apt/
RUN \
echo "**** configure apt repos ****" && \
echo 'deb http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main' >> /etc/apt/sources.list && \
echo 'deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main' >> /etc/apt/sources.list && \
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys C2518248EEA14886 && \
apt-get update && \
apt-get -y install --no-install-recommends software-properties-common && \
add-apt-repository ppa:deluge-team/ppa && \
apt-get update && \
# install deluge
echo "**** install deluge ****" && \
apt-get -y install --no-install-recommends deluged deluge-web deluge-console mediainfo libchromaprint-tools inotify-tools && \
# install filebot
echo "**** install filebot ****" && \
curl -L -O https://downloads.sourceforge.net/project/filebot/filebot/FileBot_${FILEBOT_VERSION}/${FILEBOT_PACKAGE} && \
echo "${FILEBOT_SHA256} *${FILEBOT_PACKAGE}" | sha256sum --check --strict && \
dpkg -i ${FILEBOT_PACKAGE} && \
rm ${FILEBOT_PACKAGE} && \
# install java
echo "**** install java8 ****" && \
echo oracle-java${JAVA_VERSION}-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections && \
apt-get install -y --no-install-recommends oracle-java${JAVA_VERSION}-installer oracle-java${JAVA_VERSION}-set-default && \
update-java-alternatives -s java-8-oracle && \
echo "export JAVA_HOME=/usr/lib/jvm/java-8-oracle" >> /etc/bash.bashrc && \
# cleanup
echo "**** cleanup ****" && \
apt-get clean && \
rm -rf /tmp/* /var/lib/apt/lists/* /var/tmp/* /var/cache/oracle-jdk${JAVA_VERSION}-installer
# add linuxserver.io files
COPY root/ /
# ports and volumes
EXPOSE 8112 58846 58946 58946/udp
VOLUME /config
# init
ENTRYPOINT ["/init"]