All files have red trash icon after hardware upgrade

All commands taken except

bash: /home/isaiahsellassie/Music/CLASSICAL: Is a directory

The extra two in the end were necessary. Scan failed after the bash commands. After my non sudo chmod commands the scan is working!

Thank you, sir! That was excellent support. Have a great day!

sweet!

the command was (which got both directories)

chmod 755 JAZZ CLASSICAL

I am glad it’s working

Only partially, I’m sorry to report. The JAZZ files were picked up, but nothing else. The other files still have the red trash icon, and the scan has stopped.

We will fix it on Friday.

Off for the night.

The only difference I could see is that JAZZ is in the plex group and CLASSICAL is in the isaiahsellassie group. I changed CLASSICAL to plex group, and now it’s scanning! I then did it for the others in capitals, like REGGAE, ROCK, etc. There are too many folders to do every one manually.

Is there a command to change the group recursively for all sub directories inside a parent?

did not realize you are still here.

Okay, thanks for all the help. Scan is still running.

easy way to fix directory permissions from within the parent (e.g. Music)

This finds all the directories in your Music directory and below. it sets the permissions to 755.

cd ~/Music
find . -type d -exec chmod 755 {} \;

If you wish to change the group (chgrp), the process is the same.

cd ~/Music
find . -type d -exec chgrp plex {} \;

chgrp plex CLASSICAL is what you previously typed ?

If so, the above will work

1 Like

it is very late here. I am off for the night.

1 Like

No, I right clicked the folder in Caja and brought up the Properties, switched to the Permissions tab, and changed the group there. I clicked ā€˜Apply to files contained in…’ but it works only for files one level deep, not sub directories. But… so far, the scan has worked in two capital lettered folders. It seems to only need the ~/Music/ALLCAPS directory to be in the plex group to access the sub directories inside.

Please do not reply now. Have a good night! I’ll be back later to report how it ended up. Scan is still running, and finding new files.

The good news, all the red trash icons are gone. The bad news, some new files from CLASSICAL were not picked up. They are in a sub directory named ā€˜J S Bach’. From ā€˜Beethoven’ a new album called Les 9 Symphonies was picked up partially, with messed up meta tags—3 symphonies present, 6 symphonies absent. Within the tracks of the same symphony, from the same folder, some were tagged [Unknown Artist] — this is my normal experience with Plex, random bizarre errors all over the place. It seems to struggle mightily to read meta tags anyway, but with DSF files it collapses into a messy heap. These days it NEVER picks up the ā€˜cover.jpg’ from the folder. :slightly_smiling_face: It used to pick it up 1/3 to 1/2 times before. Now, never!

I ran the blanket chgrp and chmod commands successfully. I checked random folders, and all are readable, and all are in plex group. I checked the new albums in ā€˜J S Bach’ and ā€˜Beethoven’—no permission problems. I ran the Scan and nothing new showed up in Recently Added. I did a search for J S Bach and found 11 albums, whereas the same search in Foobar 2000 shows 187 albums by 147 artists.

I switched over to the Library view, sorted by Artist and then by Album. The aggregate number of Artists and Albums is not identical with Foobar’s but in the same ball park. So, I think the scanner has picked up most everything, but either the meta tags have been misread or, the search engine sucks very badly. Or, a bit of both!

Thanks very much for the solid support, Chuck! My problem is solved, the red trash icons are all gone. The problems that remain are persistent, old problems. If you have any further suggestions I would of course like to hear them, but please feel free to consider this issue closed. I do not wish to tie up your valuable time.

@IsaiahSellassie

Good. Ready to fix that last bit ?

From the command line.

cd ~/Music
cd  CLASSICAL
find . -type d -exec chmod 755 {} \;
find . -type f -exec chmod 644 {} \;

Now we get to see just how much was permissions.
These two find commands did the following.

  1. Set the permissions for all directories underneath CLASSICAL so PMS may transit
  2. Set the permissions for all files under classical so you own them (R/W) but everything else can Read-only.

Well, that did something. Some albums have showed up, including one of the Bach albums, albeit dis-aggregated and with [Unknown Artist] and [Unknown Album] tags—files are DSF. Two other new Bach albums are still missing, both are DSF. I checked the permissions in Caja and they look fine to me.

What is interesting is, some albums showed up from weeks or months ago. I had not even noticed they had been missed. (I don’t use Plex as my music player.)

Thanks for your patient efforts to solve this for me.

That’s good. It repaired previously-blocking permissions on the files and now Plex is able to see more. With that, curating your media will be easier.

If you wish, you can repeat those same two find commands from within the Music directory and let it fix the permissions for everything therein.

Done. I also ran them in JAZZ just to be sure. Nothing new showed up in the scan.

I’ve noticed some process is using the CPU continuously at an average of 50%. The disk monitor is also showing spikes in disk usage every few seconds, which correspond to slight noises of drive activity from the drive under ~/Music. When I bring up the GUI system monitor it does not show me the process using the CPU. Plex is not in the list of running processes, but I suspect Plex is stuck in a loop trying to read some files off that drive----possibly the two newly added albums that have not been scanned in.

Plex exists as several processes. While PMS may not be busy, any of its support / analysis processes might be.

Those tasks are background tasks and for music, it can take a long time to complete everything because at least 2 songs are sampled to help identify the album. If the first & last longs do not identify the album, all will be sampled. You are very likely hearing this happening.

Thanks for that explanation. Why would it be sampling old music again? It’s been running too long for it to be only the new albums found. There are not many new files.

Also, every time I reboot I get ā€˜System program problem detected’ with a ā€˜Send report’ button. I have posted this in the Ubuntu Mate forum, but unless it’s a newbie level issue, it is rare to get serious answers there.

no idea what it might be. all updates have been installed and re booted?

system problem implies (always) OS components

Yes, but I’m told UM 18.04 reached EOL in April. At the forum there is a big push to get everyone to 20.04. I’m not going to do it, because I know many things will break, and many hours of research and labor will be taken to get things fixed again. I’m going to run 18.04 until after system updates dry up, which is 2023.