zorglube / freenas-iocage-movienight

FreeNAS MovieNight Plugin
GNU General Public License v3.0
1 stars 0 forks source link

Script fails - 12.2-RC3 was not found!, not running after install #8

Closed csjjpm closed 3 years ago

csjjpm commented 3 years ago

Hi, I have TrueNAS-12.0-RELEASE and in the shell it says it is FreeBSD 12.2-RC3 7c4ec6ff02c(HEAD) TRUENAS

When try to run the setup script I get an error and it fails. Any ideas how I fix this?

root@freenas:/mnt/WD20EARS/iocage/jails/freenas-iocage-movienight # ./movienight-jail.sh
jail 'movienight' not found!
JAIL_INTERFACES not set, defaulting to: vnet0:bridge0
12.2-RC3 was not found!
Failed to create jail
root@freenas:/mnt/WD20EARS/iocage/jails/freenas-iocage-movienight #

Thank you Paul

csjjpm commented 3 years ago

Is it something to do with line 51? RELEASE=$(freebsd-version | sed "s/STABLE/RELEASE/g" | sed "s/-p[0-9]*//")

csjjpm commented 3 years ago

I've commented out the check and used the defined var

#RELEASE=$(freebsd-version | sed "s/STABLE/RELEASE/g" | sed "s/-p[0-9]*//")
# Arbitrary selection of an version of the `iocage`
RELEASE=12.2-RELEASE
csjjpm commented 3 years ago

It has installed a JAIL and I can scan it on my network but there is no service running, I've restarted the JAIL but when I go to x.x.x.x:8089 the browser cant connect

csjjpm commented 3 years ago

Sorry to keep spamming this. I've tried a service restart in the jail and it says the service is running but there is a warning

root@movienight:/usr/local/movienight # service movienight start
/usr/local/etc/rc.d/movienight: WARNING: no shebang line in /usr/local/movienight/MovieNight
daemon: process already running, pid: 27722
zorglube commented 3 years ago

No problems, I'll check your comments this evening.

csjjpm commented 3 years ago

I'll be online tonight (GMT) so I'll try and catch up with you then. Thank you

zorglube commented 3 years ago

Ok, I'm into GMT+1.

zorglube commented 3 years ago

Hello,

The Script ins still in progress. As answer for your questions :

By the way the servicecommand have many options : [fast|force|one|quiet](start|stop|restart|rcvar|enable|disable|delete|enabled|describe|extracommands|reload|configtest|upgrade|gracefulstop|status|poll) it may be usefull.

Please tell me if I helped you or how I can improve my script. See ya, Z

csjjpm commented 3 years ago

Hi, sorry I'm not the best on BSD. I used top and it listed processes. MovieNight wasn't listed but then appeared for a second and went again. I waited but it didnt come back. I quit top and ran top again and it did the same thing. Maybe after 30 seconds MovieNight appeared and then went. There is only one daemon called nanslp (it is also a cron)

csjjpm commented 3 years ago

The log file has this

Log file: thelog.log
Error loading settings: Unable to load settings: Unable to setup logger: Unable>
csjjpm commented 3 years ago

I can't stop movienight as I get this error

root@movienight:~ # service movienight stop
/usr/local/etc/rc.d/movienight: WARNING: no shebang line in /usr/local/movienight/MovieNight
zorglube commented 3 years ago

Hi, sorry I'm not the best on BSD. I used top and it listed processes. MovieNight wasn't listed but then appeared for a second and went again. I waited but it didnt come back. I quit top and ran top again and it did the same thing. Maybe after 30 seconds MovieNight appeared and then went. There is only one daemon called nanslp (it is also a cron)

Ok, the mean MovieNight have some problems to start and the deamon witch is the manager try to restart it.

Try :

zorglube commented 3 years ago

The log file has this

Log file: thelog.log
Error loading settings: Unable to load settings: Unable to setup logger: Unable>

Instead of thelog.log is advise you to put the log file at an standard log position like /var/log/movienight.log

zorglube commented 3 years ago

I can't stop movienight as I get this error

root@movienight:~ # service movienight stop
/usr/local/etc/rc.d/movienight: WARNING: no shebang line in /usr/local/movienight/MovieNight

Try kill -9 PROCESS_PID with deamon PID and MovieNight PID if available.

csjjpm commented 3 years ago

Looks like it is a permissions issue

Log file: thelog.log Error loading settings: Unable to load settings: Unable to setup logger: Unable to open log file for writing: open thelog.log: permission denied

zorglube commented 3 years ago

Looks like it is a permissions issue

Log file: thelog.log Error loading settings: Unable to load settings: Unable to setup logger: Unable to open log file for writing: open thelog.log: permission denied

Yes you're right check here

csjjpm commented 3 years ago

I've amended the settings.json file and restarted the jail but the log file hasn't been created in /var/log

{
        "LogFile": "/var/log/thelog.log",
zorglube commented 3 years ago

Maybe, create it manually.

csjjpm commented 3 years ago

New issue (weird?)

Log file: /var/log/thelog.log
Error loading settings: Unable to load settings: Unable to setup logger: Unable to open log file for writing: open /var/log/thelog.log: permission denied
csjjpm commented 3 years ago

Have created it manually and chmod 777

[INFO] 2021/02/07 22:01:13 RateLimitChat: 1ns [INFO] 2021/02/07 22:01:13 RateLimitNick: 300ns [INFO] 2021/02/07 22:01:13 RateLimitColor: 60ns [INFO] 2021/02/07 22:01:13 RateLimitAuth: 5ns [DEBUG] 2021/02/07 22:01:13 finding emotes in "/usr/local/movienight/static/emo> [INFO] 2021/02/07 22:01:13 Found 0 emotePNGs [INFO] 2021/02/07 22:01:13 Found 0 emoteGIFs [INFO] 2021/02/07 22:01:13 processEmoteDir: 0 [INFO] 2021/02/07 22:01:13 Loaded 0 emotes [INFO] 2021/02/07 22:01:13 Stream key: ALongStreamKey [INFO] 2021/02/07 22:01:13 Admin passw [INFO] 2021/02/07 22:01:13 HTTP server listening on: :8089 [INFO] 2021/02/07 22:01:13 RTMP server listening on: :1935 [I

csjjpm commented 3 years ago

Server is running NOW!! whoop whoop

csjjpm commented 3 years ago

Now have to work out how to use the server :-) thank you for your help

zorglube commented 3 years ago

Now have to work out how to use the server :-) thank you for your help

you're welcome !