Code: Select all
OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x00007f65d882b000, 2555904, 1) failed; error='Operation not permitted' (errno=1)
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 2555904 bytes for committing reserved memory.
# An error report file with more information is saved as:
# /tmp/hs_err_pid884134.log
I can run the exact same invocation of the amc as root with no issues. I'll paste the script I use to invoke amc from transmission below. I'm not aware of any permissions java needs to create memory, so I'm very confused about what could be going on here.
Code: Select all
#!/bin/sh
# Input Parameters
ARG_PATH="$TR_TORRENT_DIR/$TR_TORRENT_NAME"
ARG_NAME="$TR_TORRENT_NAME"
ARG_LABEL="N/A"
# Configuration
CONFIG_OUTPUT="/mnt/array/data"
if [[ "$TR_TORRENT_DIR" == "$CONFIG_OUTPUT/Downloads/Movies" ]]; then
ARG_LABEL="Movie"
elif [[ "$TR_TORRENT_DIR" == "$CONFIG_OUTPUT/Downloads/Music" ]]; then
ARG_LABEL="Music"
fi
if [[ "$ARG_LABEL" == "Music" ]]; then
#beet import /mnt/array/data/Downloads/Music
true
elif [[ "$ARG_LABEL" != "N/A" ]]; then
/usr/bin/filebot -script fn:amc --output "$CONFIG_OUTPUT" --action clone --conflict override -non-strict --log-file /tmp/amc.log --def unsorted=y music=y artwork=y subtitles="en" plex="redacted" kodi="redacted" ut_dir="$ARG_PATH" ut_kind="multi" ut_title="$ARG_NAME" ut_label="$ARG_LABEL" "exec=chmod -R 755 '{folder}'" "seriesFormat=TV/{n}/Season {s.pad(2)}/{n} - {s}x{e.pad(2)} - {t}{'.'+lang}" "movieFormat=Movies/{n} ({y})/{n} ({y}){'.'+lang}" "musicFormat=Music/{n}/{album+'/'}{pi.pad(2)+' '}{t}"
fi