Jump to content


  • Content Count

  • Joined

  • Last visited

Everything posted by alturismo

  1. Perfect, thanks for the Info Gesendet von meinem SM-G950F mit Tapatalk
  2. i upgraded from 32 to 64 DDR Ram. Plex using alot of RAM here and i wanted a 3rd VM Ubuntu for xrdp remote chrome etc. may a question, is the /tmp from host autpmatically usable as RAM disk ? so when i mount /transcode from Plex to /tmp in host should it be all in RAM or do i have to mount something special for RAM ?
  3. may another question with a different approach i tried now an startup script (entrypoint.sh) to get my execution(s) customizable my goal is a config file wich then is used for executions my problem seems to be the loop and detaching the app from terminal so it ll kill the app after the loop is done, while if theres no config file its working ... thanks ahead for an tip sample config.txt -port="34400" -debug="0" -config="/root/.xteve/test/" -port="34401" -debug="2" entrypoint.sh #!/bin/sh if [ -f "/root/.xteve/custom.txt" ]; then echo "Custom config found" file="/root/.xteve/custom.txt" while read -r line do if ! [[ ${line:0:1} = \# ]] ; then echo "Starting xteve with "$line"" ./xteve/xteve "$line" ### << NOT working, gets executedm then stops ... docker dead fi done <"$file" echo "all custom started" else echo "no custom config, starting default" ./xteve/xteve -port="34400" -debug="0" ### << working fi
  4. thanks for the reply, i thought thats the init stage (variables to the app run command) i tried to figure it by taking a look at some dockers around, but actually didnt come further, nvm, i ll take another attempt some day thanks again
  5. OK, thanks for the Info, means a simple download folder is not possible. Gesendet von meinem SM-G950F mit Tapatalk
  6. ok, so 1st it has to be an unknown host when i read correctly, makes sense. tried and ended always up like this with adding /config/www Setting Browser when using http://ip/blabla <- while blabla is located at /config/www For an Tipp thanks ahead
  7. g morning, well, this was just an sample with a port in this case this docker runs in host mode so port setting is obsolete next step would be to config a subdirectory etc ... thats why i would like to know if i can set a variable to the CMD argue, or is this always hardcoded ? cause when i add dockers from apps here i also often can add variables etc wich are then used on docker run
  8. sure pretty simple, i try learning a little about building docker sample https://github.com/alturismo/xTeveTest/blob/master/Dockerfile <- working nuttom command port 34400 as you see i run the app and the port in docker hardcoded, now i d like to make the port configurable through the webgui, so my start was to make it variable so i could set something in unraid gui ... sample as mentioned, 1st docker, 1st tests ... i tried some stiff with ENV and ARG but never came to an result
  9. Hi, as i started to create a own docker may some basic questions as i didnt came further yet ... sample, if i want to use a variable in the run command wich i then can configure, how would that look like in the dockerfile sample from Dockerfile # port command CMD ["-port=34400"] now i tried with entries like ENV webport CMD ["-port=$webport"] or ARG ... i guess its pretty basic but after reading several things i really dont get a clue ... next step would be to add stuff like if, then ... but first it would be nice for this basic help thanks ahead
  10. may a question about a default www folder, sample, put something there for web downloads ... for an tip, thanks ahead
  11. ok, tested again out of interest and its working fine here with vlc and m3u playlist through reverse proxy, just as note.
  12. may just as start and final as its offtopic ... yellow /Media <-- the path in plex; red /mnt/user/Media <-- Host Path so inside Plex u look into Media ... Docker Edit add path ... for more help herefore, goto the proper subforum, Docker startup etc ... not related to unassigned devices ...
  13. you are using /mnt/disks/... in Plex, wich is the host path, not the docker path ... and its a "relative weird" setup anyway ... 1st u need to add a mountpoint in your plex docker (check faqs), or as these are external sources anyway why not use them directly in Plex as network shares ?
  14. as the 8GB from the 16 should be fine for this 1 VM, really may start posting your configurations ... i have 32 GB Ram and running 2 win10 VM´s with each 8 GB Ram and 0 issues. 1 VM is my main working desktop, 2nd VM is a Media and Gaming mashine connected to the main TV (either win10 or libreelec as test) they both are installed on an unassigned device, they both have their cores assigned, both have a dedicated gpu assigned. parallel there are some dockers running ... and memory is fine ... i once had an out of mem issue when my vm´s quitted, but when i looked at it it is a current plex issue here with dvr and using xml epg, plex will increase its ram usage each day here by 1 gig ... so after some days ... until plex solves its issue i make a daily restart of that docker (cron). since then my RAM stays fine and this system is 24/7 with its vm´s up ... and the vm´s are in use (im currently sitting here on my main one). so just as tipp, when you have it running its a real nice peace of software ... but for getting help its pretty hard to see what is going on in your user case without the proper infos, specially for the devs etc here wich are also really helpful.
  15. Hi, may someone has a hint how to get the xteve site working behind reverse proxy when i curl the sitenames (local 192.168...../web or my.domain/web) the result is exactly the same, so there are no differences. the symptom when using the external domain is an endless loading spinner on the site here a respond from curl in case that could help ... <!doctype html> <html> <head> <meta charset="utf-8"> <!--- <meta name="viewport" content="width=device-width, initial-scale=1.0" /> --> <title>xTeVe</title> <link rel="stylesheet" href="css/screen.css" type="text/css"> <link rel="stylesheet" href="css/base.css" type="text/css"> <script language="javascript" type="text/javascript" src="js/base.js"></script> <script language="javascript" type="text/javascript" src="js/menu.js"></script> <script language="javascript" type="text/javascript" src="js/data.js"></script> <script language="javascript" type="text/javascript" src="js/log.js"></script> <script language="javascript" type="text/javascript" src="js/users.js"></script> <script language="javascript" type="text/javascript" src="js/files.js"></script> <script language="javascript" type="text/javascript" src="js/mapping-editor.js"></script> </head> <body onload="javascript: pageReady();"> <div id="loading" class="block"> <div class="loader"> </div> </div> ............ screenshot from spinner (site started loading but doesnt go further) and here the reverse proxy conf part yet (it was simpler, but i tried adding all kinda things i readed across the web. server { listen 443 ssl; root /config/www; index index.html index.htm index.php; server_name web.*; ssl_certificate /config/keys/letsencrypt/fullchain.pem; ssl_certificate_key /config/keys/letsencrypt/privkey.pem; ssl_dhparam /config/nginx/dhparams.pem; ssl_ciphers 'ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA'; ssl_prefer_server_ciphers on; client_max_body_size 0; location / { auth_basic off; allow all; # Allow all to see content # auth_basic "Restricted"; # auth_basic_user_file /config/nginx/.htpasswd; include /config/nginx/proxy.conf; proxy_pass; proxy_buffering off; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection $http_connection; access_log off; } } in case someone has a idea, thanks ahead
  16. its the latest docker updates, every 2nd is working ... the last one 9 hours ago is working again. you can also just use a tag wich works for you ... just as note
  17. i just tried here also, with and without reverse proxy .. so, using directly external links as described it works, through reverse proxy here also not, but i guess thats a "stream" thing to add to reverse proxy ... in case u figure it, let me know
  18. as those tickets are only valid for a few minutes afaik ... may just create your m3u with user:pass once by editing ... if its only for your personal usage etc ...
  19. i also have this behavior in the official plex docker, i could narrow it down here due using xml based epg and not the PMS epg. i already made some posts about it there ... may its the same in your setup ... for now i made a cron to restart daily in the night.
  20. yes, thats correct. always worked here out of the box wipe /appdata/guacamole and uninstall docker, reinstall docker with default settings (removing the .xml may before) ... in case u havent done so yet
  21. you using the correct repo (there are 2, one with and without database) ?
  22. Hi, before u move to look if file is busy, i updated my tvheadend move and update script now a little and dont use the loop as described, i use now if file is busy do nothing, next cron will come so i dont touch anything while there is any actions running. i look for new records from tvheadend (.ts files), if there is one and NOT in use i start avidemux to read the file (prepare for my com cut, creating idx2), if .ts and .idx2 is there i look for the .mkv (after i did my work cutting and remuxing), if the .mkv is there and NOT in use i move it now to a proper folder (sample, season 02 instead season 2, 2 digit ...), update TVHeadend record path, remove the "old" .ts and .idx2 and empty season 2, update emby and plex. the if ! [ -n "$(lsof "$sourcefile")" ]; then ... will trigger if NOT in use else ... i went away from the while loop cause it could take longer then my cron job and i dont want to run multiply instances now, so like this i can run the cron like every 5 minutes and im good. sample from log echo Hawaii Five-0 - S09E09 - Das letzte Kapitel.ts.idx2 already there... Hawaii Five-0 - S09E09 - Das letzte Kapitel.mkv found, processing ... File Hawaii Five-0 - S09E09 - Das letzte Kapitel.mkv free ... in the end its like i want it actually, i hope i didnt mess anything up im sure it could be done more simple, but as my scripting skills are very old ... my suggestion was to check if files are busy in case handbrake is still running ... #!/bin/bash startpath="/mnt/cache/Media/" ### main place where to look for searchpattern="*.ts" ### what type of files to look for matchpattern=".mkv" ### compare if exist - work done ? extradelpattern=".idx2" ### extra delete type - here, avidemux file seasonnaming="Season " ### Naming to check for season folders mediafolder="/Media" ### add to path beginning for TVHeadend update waittime=3 ### time to wait if file is in use embyapikey="embyapikeyhere" ### api key to update emby library tvhuser="username" tvhpass="password" tvhip="" cd $startpath find . -mindepth 2 -iname $searchpattern|sed "s|^\./||"|while read fname; do echo "$fname" sourcefile=$(basename "$fname") filenameonly="${sourcefile%.*}" endfile="$filenameonly$matchpattern" extrafile="$sourcefile$extradelpattern" filepath=$(dirname "$fname") seasonpath=$(basename "$filepath") if [[ $seasonpath == "$seasonnaming"* ]]; then seasonpathnew=$(echo "$seasonpath" | sed -E 's/\<[0-9]\>/0&/') seriespath=$(dirname "$filepath") tvhfinalpath="$mediafolder/$seriespath/$seasonpathnew/$endfile" else tvhfinalpath="$mediafolder/$filepath/$endfile" fi echo "output path is: $tvhfinalpath" cd "$startpath/$filepath" if ! [ -n "$(lsof "$sourcefile")" ]; then if ! [ -f "$extrafile" ]; then docker exec Avidemux /usr/bin/avidemux3_cli --load /storage/"$fname" --quit > /dev/null echo echo "$sourcefile loading in avidemux ..." else echo echo "$extrafile already there..." fi else echo echo "$sourcefile in use ..." fi if [ -f "$endfile" ]; then echo "$endfile found, processing ..." if ! [ -n "$(lsof "$endfile")" ]; then echo "File $endfile free" if [[ $seasonpath == "$seasonnaming"* ]]; then cd .. mkdir "$seasonpathnew" mv "$seasonpath/$endfile" "$seasonpathnew/" fi curl -s "http://"$tvhuser":"$tvhpass"@"$tvhip":9981/api/dvr/entry/filemoved" --data-urlencode "src=$mediafolder/$filepath/$sourcefile" --data-urlencode "dst=$tvhfinalpath" cd "$startpath/$filepath" rm "$sourcefile" rm "$extrafile" if [[ ! $seasonpath == "$seasonpathnew" ]]; then cd .. rmdir "$seasonpath" fi curl -s "" curl -s "$embyapikey" -H "accept: */*" -d "" else echo "$endfile in use" fi else echo "$endfile not found." fi done
  23. name it guide.xml and drop it into /data folder, enable the xml file grabber. that should be it.
  24. @zacharyd3 may add something like this for his script i added this to my tvheadend script in case my file is in progress writing ... in case of handbrake i would set the seconds pretty high, only an idea in case the script runs while handbrake is in progress ... instead using a static value with sleep ... endfile=<file to move> waittime=<seconds to wait in loop if busy> while [ -n "$(lsof "$endfile")" ] do sleep $waittime echo "$endfile in use" done echo "File $endfile free"
  25. @zacharyd3 nice, may include inotify watch so he wont move files while in progress ? or is triggered by handbrake ?