#Truenas Scale?

1 messages · Page 1 of 1 (latest)

stiff torrentBOT
#

@magic edge
Automoderator:
directly mentioning devs is not allowed - please open a #1006572433039433830 thread to receive help

magic edge
#

I'd like to possibly move my install of ersatz to truenas scale. Given your software can be containerized is this a possible migration? I'm trying to migrate as many services off my server 2012 before upgrading it to a less.... problematic version

drifting ridge
#

If you mean windows to Linux that should be fine for media server libraries; local libraries will not like that as the paths will have changed/no longer be accessible

magic edge
#

So question... updated my 2012 R2 to 2016... I start ersatz now and it loads a new database alltogether. I noticed that the data is in my windows.old so I was able to snag a copy of my old database. I was able to view its contents using db browser for sqlite. Is there any way I can at a bare minimum salvage my channel lineup and possibly my smart searches or will i need to rebuild it from the ground up?

drifting ridge
#

if you upgraded the same machine, you would just need to restore the ersatztv appdata (config) folder in its entirety from wherever the original user is. kind of surprised it ended up under the windows folder

#

but i guess i haven't specifically tried running on windows server

#

you can find the config folder by opening the logs folder (using tray icon) and going up one

magic edge
#

C:\Users\Administrator\AppData\Local is where it was hiding

#

When you do an in place upgrade it does a "windows.old"

#

so C:\Windows.old\users\appdata\etc\etc

#

Ok so update... i restored the file and attempted to launch it. The application launches fine but the listener port doesn't show up (ran a netstat -a) and exported to text to validate

drifting ridge
#

restored the folder, you mean?

#

there's more than just the sqlite db

magic edge
#

Correct the entire folder

#

C:\Users\Administrator\AppData\Local\ersatztv

#

C:\Windows.old\Users\anonymous.domain.000\AppData\Local\ersatztv

#

the windows.old is the old one

drifting ridge
#

what do you see in the logs

magic edge
#

standbye

#

ok if i pass to you in an im?

drifting ridge
#

what do you see in the logs, by looking at the bottom of them

magic edge
#

thats just a portion of it

#

Whats bizarre is it is referencing a D:\ drive... i don't have a D drive

#

and never have

drifting ridge
#

thats just the drive letter on github where the exe was built

#

you exited before replacing the folder?

#

can you confirm permissions on the folder?

magic edge
#

Lets try this again standbye

#

i'll take ownership of the directory and try again

#

ok ersatz and appdata for ersatz has had ownership taken.. lets see what happens

#

2024-03-19 23:38:47.233 -04:00 [INF] ErsatzTV version v0.8.5-56988be5-win-x64
2024-03-19 23:38:47.397 -04:00 [WRN] This is beta software and may be unstable
2024-03-19 23:38:47.398 -04:00 [WRN] Give feedback at https://github.com/ErsatzTV/ErsatzTV or https://discord.gg/hHaJm3yGy6
2024-03-19 23:38:47.409 -04:00 [INF] Database is at C:\Users\Administrator\AppData\Local\ersatztv\ersatztv.sqlite3
2024-03-19 23:38:47.618 -04:00 [INF] Using Lucene (embedded) search index backend
2024-03-19 23:38:47.820 -04:00 [INF] Applying database migrations
2024-03-19 23:38:47.820 -04:00 [INF] Server will listen on port 8409 - try UI at http://localhost:8409
2024-03-19 23:38:47.850 -04:00 [INF] Scanner service started
2024-03-19 23:38:47.860 -04:00 [INF] Worker service started
2024-03-19 23:38:47.936 -04:00 [INF] FFmpeg worker service started
2024-03-19 23:38:47.941 -04:00 [INF] Search index worker service started
2024-03-19 23:38:51.718 -04:00 [INF] Done applying database migrations
2024-03-19 23:38:51.719 -04:00 [INF] Plex service started; secrets are at C:\Users\Administrator\AppData\Local\ersatztv\plex-secrets.json
2024-03-19 23:38:51.719 -04:00 [INF] Jellyfin service started; secrets are at C:\Users\Administrator\AppData\Local\ersatztv\jellyfin-secrets.json
2024-03-19 23:38:51.719 -04:00 [INF] Emby service started; secrets are at C:\Users\Administrator\AppData\Local\ersatztv\emby-secrets.json
2024-03-19 23:38:51.726 -04:00 [INF] Emptying transcode cache folder
2024-03-19 23:38:51.727 -04:00 [INF] Done emptying transcode cache folder
2024-03-19 23:38:51.727 -04:00 [INF] Cleaning channel cache
2024-03-19 23:38:51.729 -04:00 [INF] Initializing search index
2024-03-19 23:38:51.867 -04:00 [INF] Located ffmpeg at C:\ersatze\ffmpeg.exe
2024-03-19 23:38:51.922 -04:00 [INF] Located ffprobe at C:\ersatze\ffprobe.exe

#

2024-03-19 23:38:53.056 -04:00 [WRN] Search index failed to initialize; will delete and recreate
2024-03-19 23:38:57.189 -04:00 [INF] Done initializing search index
2024-03-19 23:38:57.190 -04:00 [INF] Migrating search index to version 41
2024-03-19 23:38:57.454 -04:00 [INF] Located Plex at http://localhost:32400
2024-03-19 23:38:57.837 -04:00 [WRN] Deleting removed Plex server 2!

#

"site can't be reached ERR_CONNECTION_REFUSED

#

checking a quick netstat

#

Not finding a listener on 8409... is there a spot we can force it to run on a different port?

#

wait...

#

we're back up

#

it literally just came back up

#

giving it a quick gander to see if everything is here

#

channels are there ffmpeg profiles are there... tv show library says 78 items but is lagging something fierce

#

movies says 1-100 of 1360 movies same deal lagging

#

collections and smart collections look to be there

#

just had to go into ersatz and reenable the 2 libraries for sync... i suspect that will likely fix it

#

Message
3/19/2024 11:51:29 PM -04:00 Error Unable to rebuild playout; "SmartCollection" Action TV (Smart) has no valid items!
3/19/2024 11:51:28 PM -04:00 Error Unable to rebuild playout; "SmartCollection" Comedy TV has no valid items!
3/19/2024 11:51:28 PM -04:00 Error Unable to rebuild playout; "SmartCollection" Crime (Smart) has no valid items!
3/19/2024 11:51:28 PM -04:00 Error Unable to rebuild playout; "Collection" Cartoon Nation has no valid items!
3/19/2024 11:51:28 PM -04:00 Error Unable to rebuild playout; "Collection" Star Trek Movies has no valid items!
3/19/2024 11:51:28 PM -04:00 Error Unable to rebuild playout; "Collection" Star Wars has no valid items!
3/19/2024 11:51:28 PM -04:00 Error Unable to rebuild playout; "SmartCollection" Marvel (Smart) has no valid items!
3/19/2024 11:51:28 PM -04:00 Error Unable to rebuild playout; "SmartCollection" IMDB Top 250 has no valid items!
3/19/2024 11:51:28 PM -04:00 Error Unable to rebuild playout; "SmartCollection" Romance Movies (Smart) has no valid items!
3/19/2024 11:51:28 PM -04:00 Error Unable to rebuild playout; "SmartCollection" Horror (Smart) has no valid items!
3/19/2024 11:51:28 PM -04:00 Error Unable to rebuild playout; "SmartCollection" Science Fiction Movies has no valid items!
3/19/2024 11:51:28 PM -04:00 Error Unable to rebuild playout; "SmartCollection" Comedy Movies (Smart) has no valid items!
3/19/2024 11:51:27 PM -04:00 Error Unable to rebuild playout; "SmartCollection" Action Movies (Smart) has no valid items!

So looks like it has to reassociate the items in plex

stiff torrentBOT
#

@magic edge
Automoderator:
directly mentioning devs is not allowed - please open a #1006572433039433830 thread to receive help

magic edge
#

I think at this point I have to just sit and wait... thanks a million jason you're an amazing creator and dev ❤️

magic edge
#

Ok so looks like the inaccurate count of tv/movies is still there. Starting to think I may need to just start fresh as much as it pains me to say that and use the old database as a reference point for what needs to be rebuilt.... thoughts?

#

I suspect I could probably do an export/import into the database for the smart filters and same with the tv channels

#

And if so... what is safe to export guessing smart list would be

#

channels possibly?

drifting ridge
#

2024-03-19 23:38:57.837 -04:00 [WRN] Deleting removed Plex server 2! - so you upgraded your machine and also changed plex servers at the same time?

magic edge
#

had no choice... it nuked all installed software

#

suppose i could also recover the plex appdata and maybe force the server to come back alive

#

considering plex is operating at dogshit speeds itself that might not be a bad idea

#

going to try that now actually

#

getting sonarr/radarr repointed is a far easier prospect than redoing ersatz

magic edge
#

So plex is recovered 100% (major sigh of relief there as that fixed my watched status)... now i'm getting ersatz back and we'll see if it behaves properly

magic edge
#

So fun story lol identical copy of plex identical copy of ersatz both recovered... ersatz is giving an incorrect movie count yet again... is there a way i can purge that table and force it to rediscover the movies and tv shows?

drifting ridge
#

you can do a deep scan which will scan literally everything in the library

#

including unchanged items

magic edge
#

so update.... numbers didn't deviate even after full scan. My suspicion is somewhere in the database it's holding onto old metadata. Any other ideas? I'm willing to keep troubleshooting this but starting to wonder if a fresh start is for the best or not

drifting ridge
#

why do you think the numbers are wrong?

#

also - if you remove content from plex you will need to also remove it from etv's trash page

magic edge
#

There was nothing in trash and because Plex gives a completely different number

#

So if ersatz is pulling data from plex it should only be referencing data accordingly i would think

drifting ridge
#

What are the numbers? What library kind

#

do the etv logs show anything when you scan?

magic edge
#

I think I was able to correct it.... killed the etv folder in appdata and forced db to recreate... then canibilized parts of the old db and imported into the new... data is there numbers look right will report back my findings later when i have more time to sink into it

#

i can confirm its back up and running... have to manually rebuild the schedules (they were imported just have to associate the shows with them) and the playouts and back in business i already have 4-5 channels up of my 22