[Bug] Trying to change lib folder structure, losing affected metadata as a result

not playing, restoring after it deletes more than half of my metadata. Yes, both .blobs.db and .db

Well it does not help in this case. It has to do with the fact that underlying filesystem stays the same, but the path changes. If both change, then it works as expected.

Do you have partial scan enabled?

I explicitly disabled options before tests:

  • Scan my library automatically
  • Run a partial scan when changes are detected
  • Scan my library periodically
  • Empty trash automatically after every scan

They are still disabled actually.

I am running this yet another way which, I hope, matches what you’re doing.

  1. Rename newd (in the file system only)
  2. Scan files
  3. Observe, for only the episodes, PMS shows as unavailable
  4. Open the library section and change newd , SAVE
  5. The scanner immediately kicks in.
  6. All the episodes in new are marked with red trash cans.
  7. As it scans again and finishes each one, the trash can is removed
  8. Open the same episode file , observe the location changed

You keep renaming the one folder that was supposed to be there before any changes requiring rescan…
I feel like we are both translating to English from different native languages, and have trouble understanding each other…

Do files located in your d folder play in plex right now?
And in library path you have vie/tl now right?

All those files are “QA” files. They are 326 bytes long which is the bare minimum required to make the scanner happy.

Given I’ve changed:

  1. Content of the directory (moved the files) – works ok
  2. Renamed the directory – works ok

Should I now:

  1. Leaving all directories alone
  2. unmount and remount ONLY?

We’re both speaking English. Please forgive me because I’m walking through this knowing what’s happing inside the code / how it works and wanting to “Check the boxes” as I do.

Fair. What I meant is you library should be in a steady state, no items marked as trash, all warking as expected. If so, give me current paths and I will lay out exact steps even including your usual way of doing it:

I was just able to replicate it on another server instance.
I’ll post example screens shortly.

here are my files for you: (subdirectories a, b, c, and d)

ChuckPa-DummyFiles.tar.gz (844.2 KB)

Now you can test without risking or copying media files around

I’ll give you the generator script if you’d like it.

1 Like

After this issue I already decided to setup test instance, looked like it is going to be necessary for proper report, got some files.
If there is any specific reason to use you dataset, I’ll switch. Mine actually play.

There’s no reason to switch and, given we’re working on the Scanner, there is no requirement the files will actually play. They only need to satisfy file naming/matching and be long enough to be a video/audio file (326 bytes).

I understand, it is simply easy for me to tell that PMS sees files if it plays them, that’s it.
Having couple 100-300mb open source videos even among fake placeholders for quantities is useful.

I have a “QA” library containing 899 Television series employing a variety of naming styles.

I use that library to (regression) test the scanner when checking PMS.
It also comes in very handy when there’re specific issues like this. (don’t need to copy a whole bunch of files, 3-3.5GB each, around)

Initial path:

[details=“Note, another bug on screenshot (posters are portrait, I was creating “Other videos” type lib)”]
When changing default “Plex Video Files Scanner” to “Plex Video Files” one, upon save library type resets to “Movies” from “Other Video” that I created. You have to (during same edit) uncheck some other option on the same page, forgot which one, probably generation of thumbnails.
I had to switch agent to “Personal Media” to revert. This happens all the time in recent versions. I have never reported it yet.
[/details]

Structure:

Scan + Empty trash does nothing.

Edit path, adding subdir from the same structure, no underlying filesystem changes.

Saving changes triggers auto re-scan, you may even see it scanning same locations twice:

No unavailable tag as expected:

Empty trash does nothing.
Delete old path:

Followed by auto re-scan:

Hitting Empty trash:

Alerts:

Manually hitting Scan, new metadata is generated:

Edit:

inserted missing “Media Info” screen

Accidently, replied to myself.
See above.

I agree that there’s some really weird behavior if you move things into subfolders.

There’s also weird behavior if a Plex Library points at both a parent and subfolder at the same time.

I’m still trying to perfectly emulate what you have there.

Please tell me if this is a better emulation?

Mount points : tl/a, tl/b, tl/c, and tl/d (d is empty for now)

root@lizum:/vie/tl# mount | grep /tl/
192.168.0.20:/mnt/vol/plex/tla on /mnt/tl/a type nfs4 (rw,relatime,vers=4.2,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=192.168.0.13,local_lock=none,addr=192.168.0.20)
192.168.0.20:/mnt/vol/plex/tlb on /mnt/tl/b type nfs4 (rw,relatime,vers=4.2,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=192.168.0.13,local_lock=none,addr=192.168.0.20)
192.168.0.20:/mnt/vol/plex/tlc on /mnt/tl/c type nfs4 (rw,relatime,vers=4.2,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=192.168.0.13,local_lock=none,addr=192.168.0.20)
192.168.0.20:/mnt/vol/plex/tld on /mnt/tl/d type nfs4 (rw,relatime,vers=4.2,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=192.168.0.13,local_lock=none,addr=192.168.0.20)
root@lizum:/vie/tl#

Contents of the directories are as they were initially:

root@lizum:/vie/tl# ls /mnt/tl/*
/mnt/tl/a:
'$#! My Dad Says'                    'Ah! My Goddess'         'Angel Beats!'
 07-Ghost                             Air                     'Anger Management'
 11.22.63                            'Air Gear'               'An Idiot Abroad'
 11eyes                              'Aishiteruze Baby'        Animaniacs
'12 Monkeys'                         'Akame ga Kill!'         'anohana- The Flower We Saw That Day'
 24                                   Alcatraz                 Another
'2 Broke Girls'                       Aldnoah.Zero            'Another Life (2019)'
'30 Rock'                             ALF                     'Anthony Bourdain- No Reservations'
'3rd Rock from the Sun'               Alias                   'Aqua Teen Hunger Force Forever'
'666 Park Avenue'                    'Alle Mot Alle'          'Archer (2009)'
'800 Words'                          ''\''Allo '\''Allo!'     'Arrested Development'
 90210                               'Ally McBeal'             Arrow
'90 Day Fiancé: Before the 90 Days'  'Almost Human'            Ascension
'Absolutely Fabulous'                 Alone                   'Ashes to Ashes'
'Accel World'                         Alphas                  'Ash vs Evil Dead'
'According to Jim'                   'American Dad!'          'As Time Goes By'
'A Certain Magical Index'            'American Horror Story'  'Attack on Titan'
'A Certain Scientific Railgun'       'American Idol'          'Avatar- The Last Airbender'
'Adventure Time'                     'Ancient Aliens (2010)'  'Avenue 5'
'Afro Samurai'                        Andromeda                Awake
"Agatha Christie's Poirot"            Angel                    Awkward

/mnt/tl/b:
'Babylon 5'                             'Being Human (US)'                    'Blue Mountain State'
 Baccano                                 Believe                              'Blue Planet II (2017)'
 Bakuman                                 Berserk                              'Boardwalk Empire'
'Band of Brothers'                      'Better Call Saul'                    "Bob's Burgers"
 Banshee                                'Better Off Ted'                      'Body of Proof'
 Barakamon                              "B Gata H Kei - Yamada's First Time"   Bokurano
'Bates Motel'                           'Big Hero 6 The Series'                Bones
'Batman (1966)'                         'Big Love'                            'Bored to Death'
'Batman Beyond'                         'Bionic Woman'                         Bosch
'Batman- The Animated Series'            Bitten                               'Boss (2011)'
'Batman- The Brave and the Bold'         Blackadder                           'Boston Legal'
'Battlestar Galactica'                  'Black Books'                          Bottom
'Battlestar Galactica (1978)'           'Black Lagoon'                        'Breaking Bad'
'Battlestar Galactica (1980)'           'Black Mirror'                        'Breaking In'
'Battlestar Galactica (2003)'           'Black Rock Shooter'                  'Breakout Kings'
'Battlestar Galactica- Blood & Chrome'  'Black Sails'                          Broadchurch
 Baywatch                               'Blast of Tempest'                    'Brooklyn Ninety-Nine'
'BBC Documentaries'                      Bleach                               'Brothers & Sisters'
'Beauty and the Beast (2012)'            Blindspot                            'Btooom!'
'Beavis and Butt-Head'                   Blood+                               'Buffy the Vampire Slayer'
'Beck- Mongolian Chop Squad'             Blood-C                              'Bugs Bunny (1938-2004)'
 Beelzebub                              'Blood & Treasure'                    'Bunny Drop'
'Being Erica'                           'Blue Bloods'                         'Burn Notice'
'Being Human'                           'Blue Exorcist'

/mnt/tl/c:
 Californication            'Chicago Fire'     'Cobra (2020)'                          'Cosmos- A Spacetime Odyssey'
 Camelot                    'Chicago Med'      'Code Black'                            'Cougar Town'
 Canaan                     'Chicago P.D'      'Code Geass- Lelouch of the Rebellion'   Coupling
 Caprica                     Chihayafuru       'Cold Case'                             'Covert Affairs'
'Cardcaptor Sakura'         "Childhood's End"   Columbo                                'Cowboy Bebop'
 Carnivàle                   Chobits            Community                              'Criminal Minds'
'Castle (2009)'             'Chrono Crusade'   'Conan (2010)'                          'Crossing Lines'
'Catch 22'                   Chuck              Constantine                             Crusade
"Chappelle's Show"          'City Hunter'       Continuum                              'CSI- Crime Scene Investigation'
'Charger Girl Ju-den Chan'   Clannad            Cops                                   'CSI- Cyber'
 Charmed                     Claymore           Cosmos                                 'CSI- Miami'
 Cheers                      Cobra             'Cosmos (2014)'                         'CSI- NY'

/mnt/tl/d:

When I create the library section:

  1. List each subdirectory (/mnt/tl[a-d] or only the parent (/mnt/tl) ?
  2. When I make a chane on the NAS side (behind the NFS mount), what should I move / change?

parent (/mnt/tl)

Nothing to replicate this issue.
I only needed to change file locations to be able to workaround.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.