Problem with new install

genel
Posts: 57
Joined: Mon Oct 22, 2012 5:10 pm

Problem with new install

Postby genel » Thu Oct 25, 2012 9:31 pm

I keep getting the message:
Oct 25 23:10:24 4 write: Found a share (xx) with no path in /etc/samba/smb.conf, or missing it's num_copies[xx] config in /etc/greyhole.conf. Skipping.

I created the share "xx" after getting the error on several other shares. I check the smb.conf and the greyhole.conf and all looks good to me.

Here are the conf files:
# This file is automatically generated by Amahi on Thu Oct 25 23:08:45 -0500 2012
# Any manual changes WILL BE OVERWRITTEN!
# Set the defaults (carefully) in /var/hda/platform/html/config/greyhole.yml
db_engine = mysql
db_host = localhost
db_user = greyhole
db_pass = greyhole
db_name = greyhole
balance_modified_files = false
email_to = root
greyhole_log_file = /var/log/greyhole.log
log_level = DEBUG
log_memory_usage = false
dir_selection_algorithm = most_available_space
df_cache_time = 15
delete_moves_to_attic = true
# sticky_files and stick_into options are nested - see http://wiki.amahi.org/index.php/Greyhol ... ed_options
sticky_files = Music/
# add any group of other settings
# here in multiple lines
storage_pool_directory = /var/hda/files/bootDriveSpace/gh, min_free: 10gb
storage_pool_directory = /var/hda/files/Hatachi-1/gh, min_free: 10gb
num_copies[testSpace] = 1
num_copies[special] = 999
num_copies[xx] = 999

-----------------------
# This file is automatically generated for WORKGROUP setup.
# Any manual changes MAY BE OVERWRITTEN
# Amahi configuration, generated on Thu Oct 25 23:08:45 -0500 2012
[global]
workgroup = ASAP
server string = asap.armadillo.nu
netbios name = hda
printing = cups
printcap name = cups
load printers = yes
cups options = raw
log file = /var/log/samba/%m.log
log level = 0
max log size = 150
socket options = TCP_NODELAY
preferred master = yes
os level = 60
time server = yes
unix extensions = no
wide links = yes
veto files = /*.nws/riched20.dll/*.{*}/
security = user
username map script = /usr/share/hda-platform/hda-usermap
large readwrite = yes
encrypt passwords = yes
dos charset = CP850
unix charset = UTF8
display charset = LOCALE
guest account = nobody
map to guest = Bad User
wins support = yes
printer admin = root, @ntadmin, administrator


[homes]
comment = Home Directories
valid users = %S
browseable = no
writable = yes
create mask = 0644
directory mask = 0755

[print$]
path = /var/lib/samba/drivers
read only = yes
force group = root
write list = @ntadmin root
force group = root
create mask = 0664
directory mask = 0775
guest ok = yes

[printers]
path = /var/spool/samba
writeable = yes
browseable = yes
printable = yes
public = yes

[Books]
comment = Books
path = /var/hda/files/Books
writeable = yes
browseable = yes
create mask = 0775
force create mode = 0664
directory mask = 0775
force directory mode = 0775

[Pictures]
comment = Pictures
path = /var/hda/files/Pictures
writeable = yes
browseable = yes
create mask = 0775
force create mode = 0664
directory mask = 0775
force directory mode = 0775

[Movies]
comment = Movies
path = /var/hda/files/Movies
writeable = yes
browseable = yes
create mask = 0775
force create mode = 0664
directory mask = 0775
force directory mode = 0775

[Music]
comment = Music
path = /var/hda/files/Music
writeable = yes
browseable = yes
create mask = 0775
force create mode = 0664
directory mask = 0775
force directory mode = 0775

[Docs]
comment = Docs
path = /var/hda/files/Docs
writeable = yes
browseable = yes
create mask = 0775
force create mode = 0664
directory mask = 0775
force directory mode = 0775

[testSpace]
comment = testSpace
path = /var/hda/files/landingZone/testSpace
writeable = yes
browseable = yes
create mask = 0775
force create mode = 0664
directory mask = 0775
force directory mode = 0775

dfree command = /usr/bin/greyhole-dfree
vfs objects = greyhole

[special]
comment = special
path = /var/hda/files/landingZone/special
writeable = yes
browseable = yes
create mask = 0775
force create mode = 0664
directory mask = 0775
force directory mode = 0775

dfree command = /usr/bin/greyhole-dfree
vfs objects = greyhole

[xx]
comment = xx
path = /var/hda/files/xx
writeable = yes
browseable = yes
create mask = 0775
force create mode = 0664
directory mask = 0775
force directory mode = 0775

dfree command = /usr/bin/greyhole-dfree
vfs objects = greyhole
-------
more stuff
-------
root@hda:/etc/samba# mysql -u root -phda -e "select * from disk_pool_partitions" hda_production
+----+-------------------------------+--------------+---------------------+---------------------+
| id | path | minimum_free | created_at | updated_at |
+----+-------------------------------+--------------+---------------------+---------------------+
| 1 | /var/hda/files/bootDriveSpace | 10 | 2012-10-26 03:16:32 | 2012-10-26 03:16:32 |
| 2 | /var/hda/files/Hatachi-1 | 10 | 2012-10-26 03:16:34 | 2012-10-26 03:16:34 |
+----+-------------------------------+--------------+---------------------+---------------------+


root@hda:/etc/samba# mysql -u root -phda -e "select concat(path, '/gh') from disk_pool_partitions" hda_production | grep -v 'concat(' | xargs ls -la | fpasteNo command 'fpaste' found, did you mean:
Command 'paste' from package 'coreutils' (main)
fpaste: command not found

root@hda:/etc/samba# greyhole --view-queue

Greyhole Work Queue Statistics
==============================

This table gives you the number of pending operations queued for the Greyhole daemon, per share.

Write Delete Rename Check
special 0 0 0 0
testSpace 0 0 0 0
xx 0 0 0 0
=============================================
Total 0 0 0 0
Write Delete Rename Check

The following is the number of pending operations that the Greyhole daemon still needs to parse.
Until it does, the nature of those operations is unknown.
Spooled operations that have been parsed will be listed above and disappear from the count below.

Spooled 0

-----------------
root@hda:/etc/samba# tail /var/log/greyhole.log
Oct 25 23:26:46 7 sleep: Nothing to do... Sleeping.
Oct 25 23:26:56 7 sleep: Nothing to do... Sleeping.
Oct 25 23:27:07 7 sleep: Nothing to do... Sleeping.
Oct 25 23:27:17 7 sleep: Nothing to do... Sleeping.
Oct 25 23:27:27 7 sleep: Nothing to do... Sleeping.
Oct 25 23:27:37 7 sleep: Nothing to do... Sleeping.
Oct 25 23:27:47 7 sleep: Nothing to do... Sleeping.
Oct 25 23:27:57 7 sleep: Nothing to do... Sleeping.
Oct 25 23:28:07 7 sleep: Nothing to do... Sleeping.
Oct 25 23:28:17 7 sleep: Nothing to do... Sleeping.

---------------------
root@hda:/etc/samba# greyhole --debug "Nite lites 3.scn"
Debugging file operations for file named "/Nite lites 3.scn"

From DB
=======

From logs
=========
gzip: /var/log/greyhole.log*.gz: No such file or directory
Oct 25 23:06:03 4 write: Found a share (special) with no path in /etc/samba/smb.conf, or missing it's num_copies[special] config in /etc/greyhole.conf. Skipping.
Oct 25 23:06:03 6 write: Now working on task ID 3124: write special/Nite lites 3.scn
Oct 25 23:06:03 4 write: Found a share (special) with no path in /etc/samba/smb.conf, or missing it's num_copies[special] config in /etc/greyhole.conf. Skipping.
Oct 25 23:06:03 6 write: Now working on task ID 3125: write special/Nite lites 4.avi.A.index
Oct 25 23:10:24 4 write: Found a share (xx) with no path in /etc/samba/smb.conf, or missing it's num_copies[xx] config in /etc/greyhole.conf. Skipping.
Oct 25 23:10:24 6 write: Now working on task ID 3132: write xx/Nite lites 3.scn
Oct 25 23:10:24 4 write: Found a share (xx) with no path in /etc/samba/smb.conf, or missing it's num_copies[xx] config in /etc/greyhole.conf. Skipping.
Oct 25 23:10:24 6 write: Now working on task ID 3133: write xx/Nite lites 4.avi.A.index

From filesystem
===============
Landing Zone:
ls: cannot access /Nite lites 3.scn: No such file or directory

Metadata Store:

File copies:
root@hda:/etc/samba#

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

Re: Problem with new install

Postby bigfoot65 » Fri Oct 26, 2012 4:46 am

If this is Ubuntu, fpaste will not work. That's for Fedora. Ubuntu uses pastebinit. A for your issue, have you tried restarting Greyhole?

Also check the ownership permissions of the shares in /var/hda/files. They should be set to firstadminuser:users (firstadminuser is the one you created on install).
ßîgƒσστ65
Applications Manager

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

genel
Posts: 57
Joined: Mon Oct 22, 2012 5:10 pm

Re: Problem with new install

Postby genel » Fri Oct 26, 2012 8:11 am

Yes, I restarted samba and greyhole several times. I rebooted the machine a couple of times. I added and removed several shares in different places. The first share I added works; but nothing else I add does.

I will check on the ownership issues tonight, but whatever the ownership, the first share (testSpace) is in the same directory as the "special" share. "testSpace" works and "special" does not.
[testSpace]
path = /var/hda/files/landingZone/testSpace

[special]
path = /var/hda/files/landingZone/special

In between adding testSpace and special I accidentally added a share called "specal" on the root drive (instead of /var/hda/files/landingZone it was on /var/hda/files/landingSone (yeah it was getting late). I deleted this share and recreated it with the right name and path and that is when the trouble started. But inspection of the *.conf files does not show anything suspicious, or any sign of the misspelled share.

Tonight I will probably clear all the shares off and start again, I want to call the landing zone LZ instead of landingZone (it's on its own partition). If that does not clear the problem I don't know any way forward and am open to suggestions.

Gene

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

Re: Problem with new install

Postby bigfoot65 » Fri Oct 26, 2012 8:25 am

The path you are indicating for the shares is odd. Shares are installed by default in /var/hda/files directory.

You indicated LandingZone as part of the path. If you added additional directory structure, then the path in the dashboard for each share must reflect the same.

There is no need to change from the /var/hda/files path unless you are wanting add an additional layer of complexity.
ßîgƒσστ65
Applications Manager

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

genel
Posts: 57
Joined: Mon Oct 22, 2012 5:10 pm

Re: Problem with new install

Postby genel » Fri Oct 26, 2012 8:41 am

I try to avoid extra complexity most of the time :D. However, in this case I wanted the landing zone to be on a separate partition and not on the root disk. I did this by mounting the drive to .../files/landingZone. It does occur to me that I could mount the drive directly to /var/hda/files. (Of course I would have to remove the preexisting shares and add them back, or something.)

I did type the name in to the dashboard for each share, getting it wrong only once, and not having an addition element in the path or at least a shorter one would be good.

But I did plan it this way and it seemed to work fine on the first share.

Thanks,
Gene

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

Re: Problem with new install

Postby bigfoot65 » Fri Oct 26, 2012 10:34 am

Not really sure what the problem could be other than permissions. When you do move away from the standard install, problems tend to develop. You could mount the drive as /var/hda/files without affecting the shares. Just have to change the path in Shares tab.
ßîgƒσστ65
Applications Manager

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

genel
Posts: 57
Joined: Mon Oct 22, 2012 5:10 pm

Re: Problem with new install

Postby genel » Fri Oct 26, 2012 11:49 am

I will try that tonight when I get home. I have posted more about the system in an intro message in the general discussions forum.

genel
Posts: 57
Joined: Mon Oct 22, 2012 5:10 pm

Re: Problem with new install

Postby genel » Fri Oct 26, 2012 10:07 pm

Ok, I reset all the permissions and made sure they were right. No change, the problem still was there. I had decided to change some things for other reasons and so I decided to reinstall.

All went well, I reinstalled, mounted the landing zone disk at /var/hda/files (saving are restoring all that was there).

I created some shares and did some tests and it was all working.

Then I did a back to it and I was right back where I was:

Code: Select all

genel@hda:/var/hda/files$ greyhole --debug=testfile.txt Debugging file operations for file named "/testfile.txt" From DB ======= [2012-10-26 23:44:05] Task ID 956: rename xx/Vixen/Gene/your mama.txt -> xx/Vixen/Gene/testfile.txt From logs ========= gzip: /var/log/greyhole.log*.gz: No such file or directory Oct 26 23:38:44 4 write: Found a share (xx) with no path in /etc/samba/smb.conf, or missing it's num_copies[xx] config in /etc/greyhole.conf. Skipping. Oct 26 23:38:44 6 rename: Now working on task ID 954: rename xx/Vixen/Gene/New Text Document.txt -> xx/Vixen/Gene/your mama.txt Oct 26 23:38:44 4 rename: Found a share (xx) with no path in /etc/samba/smb.conf, or missing it's num_copies[xx] config in /etc/greyhole.conf. Skipping. Oct 26 23:38:44 7 sleep: Nothing to do... Sleeping. Oct 26 23:44:05 7 simplify_tasks: Simplifying pending tasks. Oct 26 23:44:05 6 rename: Now working on task ID 956: rename xx/Vixen/Gene/your mama.txt -> xx/Vixen/Gene/testfile.txt Oct 26 23:44:05 4 rename: Found a share (xx) with no path in /etc/samba/smb.conf, or missing it's num_copies[xx] config in /etc/greyhole.conf. Skipping. Oct 26 23:44:06 7 sleep: Nothing to do... Sleeping. From filesystem =============== Landing Zone: -rwxrw-r-- 1 genel users 0 Oct 26 23:38 /var/hda/files/xx/Vixen/Gene/testfile.txt Metadata Store: File copies:
Here is the other debug information, except for the versions, can you tell me how to get them on Ubuntu.

Code: Select all

genel@hda:/var/hda/files/moretest$ pastebinit /etc/samba/smb.conf http://paste.ubuntu.com/1308795/ genel@hda:/var/hda/files/moretest$ pastebinit /etc/greyhole.conf http://paste.ubuntu.com/1308796/ genel@hda:/var/hda/files/moretest$

Code: Select all

genel@hda:/var/hda/files/moretest$ mount /dev/mapper/hda-root on / type ext4 (rw,errors=remount-ro) proc on /proc type proc (rw,noexec,nosuid,nodev) sysfs on /sys type sysfs (rw,noexec,nosuid,nodev) none on /sys/fs/fuse/connections type fusectl (rw) none on /sys/kernel/debug type debugfs (rw) none on /sys/kernel/security type securityfs (rw) udev on /dev type devtmpfs (rw,mode=0755) devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620) tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755) none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880) none on /run/shm type tmpfs (rw,nosuid,nodev) /dev/sdb1 on /var/hda/files type ext3 (rw) /dev/sdc1 on /var/hda/drives/bootDriveSpace type ext3 (rw) /dev/sdd1 on /var/hda/drives/hatachi-1 type ext3 (rw) /dev/sda1 on /boot type ext2 (rw) genel@hda:/var/hda/files/moretest$ fdisk -l genel@hda:/var/hda/files/moretest$ df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/hda-root 99G 3.7G 90G 4% / udev 489M 12K 489M 1% /dev tmpfs 200M 1.3M 198M 1% /run none 5.0M 0 5.0M 0% /run/lock none 498M 0 498M 0% /run/shm /dev/sdb1 50G 15G 32G 32% /var/hda/files /dev/sdc1 264G 2.5G 248G 1% /var/hda/drives/bootDriveSpace /dev/sdd1 1.8T 3.2G 1.7T 1% /var/hda/drives/hatachi-1 /dev/sda1 228M 25M 192M 12% /boot genel@hda:/var/hda/files/moretest$ greyhole --stats Greyhole Statistics =================== Storage Pool Total - Used = Free + Trash = Possible /var/hda/drives/bootDriveSpace/gh: 264G - 2G = 248G + 0G = 248G /var/hda/drives/hatachi-1/gh: 1834G - 3G = 1738G + 0G = 1738G ========================================== Total: 2098G - 6G = 1985G + 0G = 1986G

Code: Select all

+----+--------------------------------+--------------+---------------------+---------------------+ | id | path | minimum_free | created_at | updated_at | +----+--------------------------------+--------------+---------------------+---------------------+ | 1 | /var/hda/drives/bootDriveSpace | 10 | 2012-10-27 03:11:09 | 2012-10-27 03:11:09 | | 2 | /var/hda/drives/hatachi-1 | 10 | 2012-10-27 03:11:10 | 2012-10-27 03:11:10 | +----+--------------------------------+--------------+---------------------+---------------------+

Code: Select all

genel@hda:/var/hda/files/moretest$ mysql -u root -phda -e "select concat(path, '/gh') from disk_pool_partitions" hda_production | grep -v 'concat(' | xargs ls -la | pastebinit http://paste.ubuntu.com/1308802/

Code: Select all

genel@hda:/var/hda/files/moretest$ greyhole --view-queue Greyhole Work Queue Statistics ============================== This table gives you the number of pending operations queued for the Greyhole daemon, per share. Write Delete Rename Check Backups 0 0 0 0 Books 0 0 0 0 moretest 0 0 0 0 Music 0 0 0 0 photos 0 0 0 0 test 0 0 0 0 xx 0 0 0 0 ============================================ Total 0 0 0 0 Write Delete Rename Check The following is the number of pending operations that the Greyhole daemon still needs to parse. Until it does, the nature of those operations is unknown. Spooled operations that have been parsed will be listed above and disappear from the count below. Spooled 0

Code: Select all

genel@hda:/var/hda/files/moretest$ tail /var/log/greyhole.log Oct 26 23:57:38 7 sleep: Nothing to do... Sleeping. Oct 26 23:57:48 7 sleep: Nothing to do... Sleeping. Oct 26 23:57:58 7 sleep: Nothing to do... Sleeping. Oct 26 23:58:08 7 sleep: Nothing to do... Sleeping. Oct 26 23:58:18 7 sleep: Nothing to do... Sleeping. Oct 26 23:58:28 7 sleep: Nothing to do... Sleeping. Oct 26 23:58:38 7 sleep: Nothing to do... Sleeping. Oct 26 23:58:49 7 sleep: Nothing to do... Sleeping. Oct 26 23:58:59 7 sleep: Nothing to do... Sleeping. Oct 26 23:59:09 7 sleep: Nothing to do... Sleeping.
BTW: thinking about it, the first file that greyhole had trouble with was very large, the backup file was 15GB, the other time it started was a raw VCR tape rip that was 12GB. That may or may not have anything to do with it, but once it starts it seems to continue to happen with new shares.

Its after midnight now and I am beat, I will continue testing later.

Gene

genel
Posts: 57
Joined: Mon Oct 22, 2012 5:10 pm

Re: Problem with new install

Postby genel » Sat Oct 27, 2012 9:59 am

Ok, today I did this:

Changed the workgroup name back to workgroup from asap.
Removed the large backup file.
Deleted the backup directory and the test directory that had the problem. BTW: deleting the backups share did not delete the /var/hda/files/backups directory and I had to do it by hand.
rebooted
Created an new backup share and put some small files in it.
that worked -- so I set the back program to split the backup files up for DVD (4.7 GB each).
All is good so far.

I noted two changes from when I could create shares that worked and when I could not. Changing the workgroup name and adding the really big file, so I will test both to see if I can reproduce the problem at will.

I am doing a little other testing today, but right now I am going to the woodworking shop and forget about computers for a few hours.

Gene

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

Re: Problem with new install

Postby bigfoot65 » Sat Oct 27, 2012 11:02 am

Removing shares does not remove the directory unless it's empty. This is by design to prevent accidental loss of data.
ßîgƒσστ65
Applications Manager

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

Who is online

Users browsing this forum: No registered users and 11 guests