SOLVED: Files found in /drives but not /mnt/samba

phreaq
Posts: 87
Joined: Sun Jul 20, 2014 10:39 am

SOLVED: Files found in /drives but not /mnt/samba

Postby phreaq » Wed Oct 29, 2014 9:51 am

I'm not sure how this has happened, but here's my issue.

I use Headphones, and it seems for some recent folders I'm not seeing the files in their folders.

For example, the following folder is empty when viewed from a Windows client computer:

\\HDA\Music\Re-tagged Music\Yeasayer\Fragrant World\

also, from the HDA, this folder is empty

/mnt/samba/Music/Re-tagged Music/Yeasayer/Fragrant World

however, there are files here:

/var/hda/files/drives/drive4/gh/Music/Re-tagged Music/Yeasayer/Fragrant World

As I say, I don't know how this occurred, but it's not for all folders, just 'recent' ones. Any thoughts?

Anyway to fix this?

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Files found in /drives but not /mnt/samba

Postby bigfoot65 » Wed Oct 29, 2014 11:27 am

There won't be files in /mnt/samba unless you are using Mount Shares Locally. If you are, then try restarting the service.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

phreaq
Posts: 87
Joined: Sun Jul 20, 2014 10:39 am

Re: Files found in /drives but not /mnt/samba

Postby phreaq » Wed Oct 29, 2014 12:00 pm

a manual restart of the service, and then a reboot of the server did not resolve it.

If I check headphones, it is listing the /mnt/ location correctly for the files in that folder, so it was there a one point.
Attachments
2014-10-29_125850.jpg
2014-10-29_125850.jpg (39.9 KiB) Viewed 4570 times

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Files found in /drives but not /mnt/samba

Postby bigfoot65 » Wed Oct 29, 2014 12:46 pm

Could be a permissions issue. You could try as root user:

Code: Select all

service mount_shares_locally stop rm -rf /mnt/samba/* service mount_shares_locally start
Also verify the missing files have the correct ownership and file system permissions.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

phreaq
Posts: 87
Joined: Sun Jul 20, 2014 10:39 am

Re: Files found in /drives but not /mnt/samba

Postby phreaq » Wed Oct 29, 2014 12:49 pm

In my set up, drive 4 and drive 5 are part of my storage pool.

If I look at /var/hda/files/drives/drive4/gh I can see my folder structure.

But /var/hda/files/drives/drive5/gh is empty.

Is that normal for greyhole?
Attachments
2014-10-29_134756.jpg
2014-10-29_134756.jpg (38.51 KiB) Viewed 4566 times

phreaq
Posts: 87
Joined: Sun Jul 20, 2014 10:39 am

Re: Files found in /drives but not /mnt/samba

Postby phreaq » Wed Oct 29, 2014 12:57 pm

manual stop start didn't help.

If I check a file in /var/hda/files/drives/drive4/gh/Music/Re-tagged Music/Yeasayer/Fragrant World, it's permission is 0664.

Which directory show I chmod it recursively from, the /mnt or the /drive?

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Files found in /drives but not /mnt/samba

Postby bigfoot65 » Wed Oct 29, 2014 1:02 pm

Ok, if a drive is not populated, then you might have missed something. Are you doing this via command line or using the Greyhole UI app?

DO NOT mess with files in the gh folders. That is a good way to mess things up. Check permissions in /var/hda/files/share only. There might be some help in Mount Shares Locally wiki page.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

phreaq
Posts: 87
Joined: Sun Jul 20, 2014 10:39 am

Re: Files found in /drives but not /mnt/samba

Postby phreaq » Wed Oct 29, 2014 1:09 pm

I've been running gh for about 2 months now, following the wiki, and the UI. It's fine for other music files in the same parent folder, it's just an issue in some recent items.

I always go thru the /mnt/ folder. I'm only looking into the /drive folder to see what's happening.

The properties for the folder /mnt/samba/Music/Re-tagged Music/Yeasayer/Fragrant World is 770. There's no files inside to check

/var/hda/files is 755.

I'm using WinSCP to check all of this, and Windows 8 to view the folders.

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Files found in /drives but not /mnt/samba

Postby bigfoot65 » Wed Oct 29, 2014 2:42 pm

Check to see that the files are owned by 1st admin user:users in /var/hda/files/share and /mnt/samba. The 1st admin user is the one you created when you initially installed Amahi.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

phreaq
Posts: 87
Joined: Sun Jul 20, 2014 10:39 am

Re: Files found in /drives but not /mnt/samba

Postby phreaq » Wed Oct 29, 2014 6:26 pm

I checked the greyhole log, and it was full of entries that looked like this

Code: Select all

Oct 29 17:49:34 DEBUG fsck: Loading metafiles for Music/Music Collection/Orchestra/More Broadway Musical/Metadata/Orchestra - More Broadway Musical - 12 - Sound Of Music - The Sound of Music.jpg ... Oct 29 17:49:34 DEBUG fsck: Got 2 metadata files. Oct 29 17:49:34 INFO fsck: Missing file copies. Expected 2, got 1. Will create more copies using /var/hda/files/drives/drive4/gh/Music/Music Collection/Orchestra/More Broadway Musical/Metadata/Orchestra - More Broadway Musical - 12 - Sound Of Music - The Sound of Music.jpg Oct 29 17:49:34 DEBUG fsck: Drives with available space: /var/hda/files/drives/drive4/gh (976GB avail) - /var/hda/files/drives/drive5/gh (973GB avail) Oct 29 17:49:34 DEBUG fsck: Reordered drives, per sticky_files config: /var/hda/files/drives/drive4/gh - /var/hda/files/drives/drive5/gh Oct 29 17:49:34 WARN fsck: Failed to create directory /var/hda/files/drives/drive5/gh/Music
It looks like there was an issue with Drive 5, so I shut down the server, pull the drive out, re-seated it, and rebooted.

All my files are back!!!!

Thanks for your help

Who is online

Users browsing this forum: Google [Bot] and 19 guests