Greyhole issues

User avatar
gboudreau
Posts: 606
Joined: Sat Jan 23, 2010 1:15 pm
Location: Montréal, Canada
Contact:

Re: Adding the second drive

Postby gboudreau » Sun May 02, 2010 8:17 am

the URL it gave was http://fpaste.org/hGQG/

no mention of VFS modules, but VFS objects are there
Indeed, that's correct. Samba is configured correctly.
the service says it is running.

there doesn't appear to be a log every 10 seconds. the greyhole.log file was last modified nearly 1 hour ago
This is your problem. The service either died, or is stuck somewhere.

Try this:

Code: Select all

ps ax | grep greyhole | grep -v grep
This should return a process the runs like this: /usr/bin/php /usr/bin/greyhole --daemon
If you don't see that, try to restart the daemon manually:

Code: Select all

service greyhole restart
Then try again the ps command. If it still shows nothing, that means the daemon dies as soon as it starts.
Try to start it manually:

Code: Select all

/usr/bin/php /usr/bin/greyhole --daemon
- Guillaume Boudreau

sonofmof
Posts: 29
Joined: Thu Mar 25, 2010 3:11 pm

Re: Adding the second drive

Postby sonofmof » Sun May 02, 2010 8:24 am

here is the result of the grep

19178 ? RN 33:51 /usr/bin/php /usr/bin/greyhole --daemon

User avatar
gboudreau
Posts: 606
Joined: Sat Jan 23, 2010 1:15 pm
Location: Montréal, Canada
Contact:

Re: Adding the second drive

Postby gboudreau » Sun May 02, 2010 8:31 am

here is the result of the grep

19178 ? RN 33:51 /usr/bin/php /usr/bin/greyhole --daemon
RN indicates it's doing something. SN would indicate it would be sleeping.

Code: Select all

ps auxwwwf | grep -A 5 greyhole | fpaste

Code: Select all

yum -y install strace

Code: Select all

strace -p19178
Let that last command run for a couple of seconds, and stop it (CTRL-C) once it displayed a lot of lines.
If it doesn't display more than one line, let it run for 10 seconds, then stop it.
Paste here what that last command displayed.
- Guillaume Boudreau

sonofmof
Posts: 29
Joined: Thu Mar 25, 2010 3:11 pm

Re: Adding the second drive

Postby sonofmof » Sun May 02, 2010 8:39 am

here is the link

http://fpaste.org/XuEp/


strace dump attached.



Thanks
CH
Attachments
strace.tar.gz
(3.63 KiB) Downloaded 190 times

User avatar
gboudreau
Posts: 606
Joined: Sat Jan 23, 2010 1:15 pm
Location: Montréal, Canada
Contact:

Re: Adding the second drive

Postby gboudreau » Sun May 02, 2010 8:49 am

How big is your /var/log/messages log file?

Code: Select all

ls -l /var/log/messages
Does it grow fast, and contains a lot of errors?

Code: Select all

tail -f /var/log/messages
(CTRL-C after a while.)

Try to stop Greyhole, and start it manually using strace.

Code: Select all

service greyhole stop
Make sure it's not running anymore:

Code: Select all

ps ax | grep greyhole | grep -v grep
(kill -9 it's pid if it's still running)
Then:

Code: Select all

strace /usr/bin/greyhole --daemon
In another terminal window, check if /var/log/greyhole.log grows now, and what's in it, if it does.
CTRL-C the strace if it seems stuck in a loop of

Code: Select all

read(3, "\r\0\0\0\7\0]\0\3{\2\366\2q\1\354\1g\0\342\0]\0\0\0\0\0\0\0\0\0\0"..., 1024) = 1024
or similar for more than 10 seconds.
- Guillaume Boudreau

sonofmof
Posts: 29
Joined: Thu Mar 25, 2010 3:11 pm

Re: Adding the second drive

Postby sonofmof » Sun May 02, 2010 9:11 am

-rw-r--r-- 1 root root 5269457 2010-05-02 17:51 /var/log/messages

it doesn't seem to grow very quickly, nothing in last 6 minutes.


I stopped the service - it instantly restarted !

i kill -9 it and restart with strace


the greyhole.log shows
May 2 16:16:53 6 daemon: Greyhole daemon started.
May 2 18:05:35 6 daemon: Greyhole daemon started.
May 2 18:06:33 6 daemon: Greyhole daemon started.

the strace appears to be in a loop with
_llseek(3, 5102592, [5102592], SEEK_SET) = 0
read(3, "\r\0\0\0\6\0x\0\3f\2\312\0020\1\226\1\5\0x\0\0\0\0\0\0\0\0\0\0\0\0"..., 1024) = 1024
_llseek(3, 5103616, [5103616], SEEK_SET) = 0
read(3, "\r\0\0\0\7\0\30\0\3s\2\346\2V\1\313\0019\0\255\0\30\0\0\201\20\202\274)\t\0\27"..., 1024) = 1024
_llseek(3, 5104640, [5104640], SEEK_SET) = 0
read(3, "\r\0\0\0\6\0\233\0\3m\2\324\2A\1\261\1(\0\233\0\0\0\0\0\0\0\0\0\0\0\0"..., 1024) = 1024
_llseek(3, 5105664, [5105664], SEEK_SET) = 0
read(3, "\r\0\0\0\7\0A\0\3u\2\351\2\\\1\320\1K\0\306\0A\0\0\0\0\0\0\0\0\0\0"..., 1024) = 1024
_llseek(3, 5106688, [5106688], SEEK_SET) = 0
read(3, "\r\0\0\0\7\0[\0\3y\2\362\2j\1\347\1b\0\334\0[\0\0\0\0\0\0\0\0\0\0"..., 1024) = 1024
_llseek(3, 5107712, [5107712], SEEK_SET) = 0
read(3, "\r\0\0\0\7\0M\0\3}\2\366\2p\1\356\1l\0\335\0M\0\0\0\0\0\0\0\0\0\0"..., 1024) = 1024

User avatar
gboudreau
Posts: 606
Joined: Sat Jan 23, 2010 1:15 pm
Location: Montréal, Canada
Contact:

Re: Adding the second drive

Postby gboudreau » Sun May 02, 2010 9:21 am

I stopped the service - it instantly restarted !
monitd (watchdog) does that; you can disable it in your Amahi dashboard: Setup > Apps > Servers
Uncheck the watchdog checkbox.
the strace appears to be in a loop with
_llseek(3, 5102592, [5102592], SEEK_SET) = 0
read(3, "\r\0\0\0\6\0x\0\3f\2\312\0020\1\226\1\5\0x\0\0\0\0\0\0\0\0\0\0\0\0"..., 1024) = 1024
_llseek(3, 5103616, [5103616], SEEK_SET) = 0
read(3, "\r\0\0\0\7\0\30\0\3s\2\346\2V\1\313\0019\0\255\0\30\0\0\201\20\202\274)\t\0\27"..., 1024) = 1024
_llseek(3, 5104640, [5104640], SEEK_SET) = 0
read(3, "\r\0\0\0\6\0\233\0\3m\2\324\2A\1\261\1(\0\233\0\0\0\0\0\0\0\0\0\0\0\0"..., 1024) = 1024
_llseek(3, 5105664, [5105664], SEEK_SET) = 0
read(3, "\r\0\0\0\7\0A\0\3u\2\351\2\\\1\320\1K\0\306\0A\0\0\0\0\0\0\0\0\0\0"..., 1024) = 1024
_llseek(3, 5106688, [5106688], SEEK_SET) = 0
read(3, "\r\0\0\0\7\0[\0\3y\2\362\2j\1\347\1b\0\334\0[\0\0\0\0\0\0\0\0\0\0"..., 1024) = 1024
_llseek(3, 5107712, [5107712], SEEK_SET) = 0
read(3, "\r\0\0\0\7\0M\0\3}\2\366\2p\1\356\1l\0\335\0M\0\0\0\0\0\0\0\0\0\0"..., 1024) = 1024
I need the complete strace, up until it starts to loop there. I need to see what's before the loop, to see what's that loop.
- Guillaume Boudreau

sonofmof
Posts: 29
Joined: Thu Mar 25, 2010 3:11 pm

Re: Adding the second drive

Postby sonofmof » Sun May 02, 2010 9:34 am

i turned off watchdog.


it was hard to get the strace with the info before the loop, it goes so fast and terminal only seems to store so much.

I hope this is enough although the top seems cut off.............



open("/usr/share/zoneinfo/Mideast", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = 3
getdents(3, /* 5 entries */, 32768) = 92
getdents(3, /* 0 entries */, 32768) = 0
close(3) = 0
stat64("/usr/share/zoneinfo/Mideast/Riyadh89", {st_mode=S_IFREG|0644, st_size=8523, ...}) = 0
stat64("/usr/share/zoneinfo/Mideast/Riyadh88", {st_mode=S_IFREG|0644, st_size=8523, ...}) = 0
stat64("/usr/share/zoneinfo/Mideast/Riyadh87", {st_mode=S_IFREG|0644, st_size=8669, ...}) = 0
open("/usr/share/zoneinfo/Pacific", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = 3
getdents(3, /* 42 entries */, 32768) = 844
getdents(3, /* 0 entries */, 32768) = 0
close(3) = 0
stat64("/usr/share/zoneinfo/Pacific/Yap", {st_mode=S_IFREG|0644, st_size=144, ...}) = 0
stat64("/usr/share/zoneinfo/Pacific/Wallis", {st_mode=S_IFREG|0644, st_size=141, ...}) = 0
stat64("/usr/share/zoneinfo/Pacific/Wake", {st_mode=S_IFREG|0644, st_size=144, ...}) = 0
stat64("/usr/share/zoneinfo/Pacific/Truk", {st_mode=S_IFREG|0644, st_size=144, ...}) = 0
stat64("/usr/share/zoneinfo/Pacific/Tongatapu", {st_mode=S_IFREG|0644, st_size=313, ...}) = 0
stat64("/usr/share/zoneinfo/Pacific/Tarawa", {st_mode=S_IFREG|0644, st_size=144, ...}) = 0
stat64("/usr/share/zoneinfo/Pacific/Tahiti", {st_mode=S_IFREG|0644, st_size=160, ...}) = 0
stat64("/usr/share/zoneinfo/Pacific/Samoa", {st_mode=S_IFREG|0644, st_size=290, ...}) = 0
stat64("/usr/share/zoneinfo/Pacific/Saipan", {st_mode=S_IFREG|0644, st_size=229, ...}) = 0
stat64("/usr/share/zoneinfo/Pacific/Rarotonga", {st_mode=S_IFREG|0644, st_size=548, ...}) = 0
stat64("/usr/share/zoneinfo/Pacific/Port_Moresby", {st_mode=S_IFREG|0644, st_size=163, ...}) = 0
stat64("/usr/share/zoneinfo/Pacific/Ponape", {st_mode=S_IFREG|0644, st_size=144, ...}) = 0
stat64("/usr/share/zoneinfo/Pacific/Pitcairn", {st_mode=S_IFREG|0644, st_size=177, ...}) = 0
stat64("/usr/share/zoneinfo/Pacific/Palau", {st_mode=S_IFREG|0644, st_size=140, ...}) = 0
stat64("/usr/share/zoneinfo/Pacific/Pago_Pago", {st_mode=S_IFREG|0644, st_size=290, ...}) = 0
stat64("/usr/share/zoneinfo/Pacific/Noumea", {st_mode=S_IFREG|0644, st_size=300, ...}) = 0
stat64("/usr/share/zoneinfo/Pacific/Norfolk", {st_mode=S_IFREG|0644, st_size=182, ...}) = 0
stat64("/usr/share/zoneinfo/Pacific/Niue", {st_mode=S_IFREG|0644, st_size=200, ...}) = 0
stat64("/usr/share/zoneinfo/Pacific/Nauru", {st_mode=S_IFREG|0644, st_size=240, ...}) = 0
stat64("/usr/share/zoneinfo/Pacific/Midway", {st_mode=S_IFREG|0644, st_size=268, ...}) = 0
stat64("/usr/share/zoneinfo/Pacific/Marquesas", {st_mode=S_IFREG|0644, st_size=162, ...}) = 0
stat64("/usr/share/zoneinfo/Pacific/Majuro", {st_mode=S_IFREG|0644, st_size=171, ...}) = 0
stat64("/usr/share/zoneinfo/Pacific/Kwajalein", {st_mode=S_IFREG|0644, st_size=211, ...}) = 0
stat64("/usr/share/zoneinfo/Pacific/Kosrae", {st_mode=S_IFREG|0644, st_size=188, ...}) = 0
stat64("/usr/share/zoneinfo/Pacific/Kiritimati", {st_mode=S_IFREG|0644, st_size=204, ...}) = 0
stat64("/usr/share/zoneinfo/Pacific/Johnston", {st_mode=S_IFREG|0644, st_size=119, ...}) = 0
stat64("/usr/share/zoneinfo/Pacific/Honolulu", {st_mode=S_IFREG|0644, st_size=312, ...}) = 0
stat64("/usr/share/zoneinfo/Pacific/Guam", {st_mode=S_IFREG|0644, st_size=199, ...}) = 0
stat64("/usr/share/zoneinfo/Pacific/Guadalcanal", {st_mode=S_IFREG|0644, st_size=158, ...}) = 0
stat64("/usr/share/zoneinfo/Pacific/Gambier", {st_mode=S_IFREG|0644, st_size=159, ...}) = 0
stat64("/usr/share/zoneinfo/Pacific/Galapagos", {st_mode=S_IFREG|0644, st_size=197, ...}) = 0
stat64("/usr/share/zoneinfo/Pacific/Funafuti", {st_mode=S_IFREG|0644, st_size=141, ...}) = 0
stat64("/usr/share/zoneinfo/Pacific/Fiji", {st_mode=S_IFREG|0644, st_size=296, ...}) = 0
stat64("/usr/share/zoneinfo/Pacific/Fakaofo", {st_mode=S_IFREG|0644, st_size=140, ...}) = 0
stat64("/usr/share/zoneinfo/Pacific/Enderbury", {st_mode=S_IFREG|0644, st_size=204, ...}) = 0
stat64("/usr/share/zoneinfo/Pacific/Efate", {st_mode=S_IFREG|0644, st_size=464, ...}) = 0
stat64("/usr/share/zoneinfo/Pacific/Easter", {st_mode=S_IFREG|0644, st_size=8971, ...}) = 0
stat64("/usr/share/zoneinfo/Pacific/Chatham", {st_mode=S_IFREG|0644, st_size=2018, ...}) = 0
stat64("/usr/share/zoneinfo/Pacific/Auckland", {st_mode=S_IFREG|0644, st_size=2434, ...}) = 0
stat64("/usr/share/zoneinfo/Pacific/Apia", {st_mode=S_IFREG|0644, st_size=268, ...}) = 0
open("/usr/share/zoneinfo/US", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = 3
getdents(3, /* 14 entries */, 32768) = 284
getdents(3, /* 0 entries */, 32768) = 0
close(3) = 0
stat64("/usr/share/zoneinfo/US/Samoa", {st_mode=S_IFREG|0644, st_size=290, ...}) = 0
stat64("/usr/share/zoneinfo/US/Pacific", {st_mode=S_IFREG|0644, st_size=2819, ...}) = 0
stat64("/usr/share/zoneinfo/US/Mountain", {st_mode=S_IFREG|0644, st_size=2427, ...}) = 0
stat64("/usr/share/zoneinfo/US/Michigan", {st_mode=S_IFREG|0644, st_size=2202, ...}) = 0
stat64("/usr/share/zoneinfo/US/Indiana-Starke", {st_mode=S_IFREG|0644, st_size=2395, ...}) = 0
stat64("/usr/share/zoneinfo/US/Hawaii", {st_mode=S_IFREG|0644, st_size=312, ...}) = 0
stat64("/usr/share/zoneinfo/US/Eastern", {st_mode=S_IFREG|0644, st_size=3519, ...}) = 0
stat64("/usr/share/zoneinfo/US/East-Indiana", {st_mode=S_IFREG|0644, st_size=1649, ...}) = 0
stat64("/usr/share/zoneinfo/US/Central", {st_mode=S_IFREG|0644, st_size=3543, ...}) = 0
stat64("/usr/share/zoneinfo/US/Arizona", {st_mode=S_IFREG|0644, st_size=327, ...}) = 0
stat64("/usr/share/zoneinfo/US/Aleutian", {st_mode=S_IFREG|0644, st_size=2353, ...}) = 0
stat64("/usr/share/zoneinfo/US/Alaska", {st_mode=S_IFREG|0644, st_size=2358, ...}) = 0
open("/proc/meminfo", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb776f000
read(3, "MemTotal: 1544552 kB\nMemF"..., 1024) = 1024
close(3) = 0
munmap(0xb776f000, 4096) = 0
open("/usr/share/zoneinfo/zone.tab", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=19342, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb776f000
read(3, "# <pre>\n# @(#)zone.tab\t8.35\n# Th"..., 4096) = 4096
read(3, "razil (MA, PI, CE, RN, PB)\nBR\t-0"..., 4096) = 4096
read(3, "\t-0210-07950\tAmerica/Guayaquil\tm"..., 4096) = 4096
read(3, "X\t+2105-08646\tAmerica/Cancun\tCen"..., 4096) = 4096
read(3, "TZ\t-0648+03917\tAfrica/Dar_es_Sal"..., 4096) = 2958
read(3, "", 4096) = 0
close(3) = 0
munmap(0xb776f000, 4096) = 0
access("/usr/share/zoneinfo/Europe/Madrid", R_OK) = 0
open("/usr/share/zoneinfo/Europe/Madrid", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=2593, ...}) = 0
mmap2(NULL, 2593, PROT_READ, MAP_SHARED, 3, 0) = 0xb776f000
close(3) = 0
munmap(0xb776f000, 2593) = 0
access("/usr/share/zoneinfo/Europe/Madrid", R_OK) = 0
time(NULL) = 1272817911
lstat64("/etc/greyhole.conf", {st_mode=S_IFREG|0644, st_size=1007, ...}) = 0
lstat64("/etc", {st_mode=S_IFDIR|0755, st_size=12288, ...}) = 0
open("/etc/greyhole.conf", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=1007, ...}) = 0
lseek(3, 0, SEEK_CUR) = 0
fstat64(3, {st_mode=S_IFREG|0644, st_size=1007, ...}) = 0
read(3, "# This file is automatically gen"..., 8192) = 1007
read(3, "", 8192) = 0
read(3, "", 8192) = 0
close(3) = 0
time(NULL) = 1272817911
lstat64("/etc/samba/smb.conf", {st_mode=S_IFREG|0644, st_size=3423, ...}) = 0
lstat64("/etc/samba", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/etc/samba/smb.conf", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=3423, ...}) = 0
lseek(3, 0, SEEK_CUR) = 0
fstat64(3, {st_mode=S_IFREG|0644, st_size=3423, ...}) = 0
read(3, "# This file is automatically gen"..., 8192) = 3423
read(3, "", 8192) = 0
read(3, "", 8192) = 0
close(3) = 0
access("/var/cache/greyhole.sqlite", F_OK) = 0
time(NULL) = 1272817911
lstat64("/var/cache/greyhole.sqlite", {st_mode=S_IFREG|0644, st_size=17783808, ...}) = 0
lstat64("/var/cache", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/var", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/var/cache/greyhole.sqlite", {st_mode=S_IFREG|0644, st_size=17783808, ...}) = 0
open("/var/cache/greyhole.sqlite", O_RDWR|O_CREAT|O_LARGEFILE, 0644) = 3
fcntl64(3, F_GETFD) = 0
fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
fstat64(3, {st_mode=S_IFREG|0644, st_size=17783808, ...}) = 0
_llseek(3, 0, [0], SEEK_SET) = 0
read(3, "SQLite format 3\0\4\0\1\1\0@ \0\3uk\0\0\0\0"..., 100) = 100
brk(0x90de000) = 0x90de000
fcntl64(3, F_SETLK64, {type=F_RDLCK, whence=SEEK_SET, start=1073741824, len=1}, 0xbf8a5054) = 0
fcntl64(3, F_SETLK64, {type=F_RDLCK, whence=SEEK_SET, start=1073741826, len=510}, 0xbf8a4ff8) = 0
fcntl64(3, F_SETLK64, {type=F_UNLCK, whence=SEEK_SET, start=1073741824, len=1}, 0xbf8a5054) = 0
access("/var/cache/greyhole.sqlite-journal", F_OK) = 0
fcntl64(3, F_GETLK64, {type=F_UNLCK, whence=SEEK_SET, start=1073741825, len=1, pid=52782495}) = 0
fstat64(3, {st_mode=S_IFREG|0644, st_size=17783808, ...}) = 0
open("/var/cache/greyhole.sqlite-journal", O_RDONLY|O_LARGEFILE) = 4
fcntl64(4, F_GETFD) = 0
fcntl64(4, F_SETFD, FD_CLOEXEC) = 0
_llseek(4, 0, [0], SEEK_SET) = 0
read(4, "\0", 1) = 1
close(4) = 0
_llseek(3, 0, [0], SEEK_SET) = 0
read(3, "SQLite format 3\0\4\0\1\1\0@ \0\3uk\0\0\0\0"..., 1024) = 1024
fcntl64(3, F_SETLK64, {type=F_UNLCK, whence=SEEK_SET, start=0, len=0}, 0xbf8a4b24) = 0
fcntl64(3, F_SETLK64, {type=F_RDLCK, whence=SEEK_SET, start=1073741824, len=1}, 0xbf8a5234) = 0
fcntl64(3, F_SETLK64, {type=F_RDLCK, whence=SEEK_SET, start=1073741826, len=510}, 0xbf8a51d8) = 0
fcntl64(3, F_SETLK64, {type=F_UNLCK, whence=SEEK_SET, start=1073741824, len=1}, 0xbf8a5234) = 0
access("/var/cache/greyhole.sqlite-journal", F_OK) = 0
fcntl64(3, F_GETLK64, {type=F_UNLCK, whence=SEEK_SET, start=1073741825, len=1, pid=52782495}) = 0
fstat64(3, {st_mode=S_IFREG|0644, st_size=17783808, ...}) = 0
open("/var/cache/greyhole.sqlite-journal", O_RDONLY|O_LARGEFILE) = 4
fcntl64(4, F_GETFD) = 0
fcntl64(4, F_SETFD, FD_CLOEXEC) = 0
_llseek(4, 0, [0], SEEK_SET) = 0
read(4, "\0", 1) = 1
close(4) = 0
_llseek(3, 24, [24], SEEK_SET) = 0
read(3, "\0\3uk\0\0\0\0\0\0\4V\0\0\0041", 16) = 16
fcntl64(3, F_SETLK64, {type=F_UNLCK, whence=SEEK_SET, start=0, len=0}, 0xbf8a50f4) = 0
pipe2([4, 5], O_CLOEXEC) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb7759798) = 22911
close(5) = 0
fcntl64(4, F_SETFD, 0) = 0
read(4, "root\n", 8192) = 5
read(4, "", 8192) = 0
close(4) = 0
waitpid(22911, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0) = 22911
--- SIGCHLD (Child exited) @ 0 (0) ---
pipe2([4, 5], O_CLOEXEC) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb7759798) = 22912
close(5) = 0
fcntl64(4, F_SETFD, 0) = 0
read(4, "/usr/bin\n", 8192) = 9
read(4, "", 8192) = 0
close(4) = 0
waitpid(22912, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0) = 22912
--- SIGCHLD (Child exited) @ 0 (0) ---
time(NULL) = 1272817911
open("/usr/bin/greyhole", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0755, st_size=113098, ...}) = 0
lseek(4, 0, SEEK_CUR) = 0
fstat64(4, {st_mode=S_IFREG|0755, st_size=113098, ...}) = 0
read(4, "#!/usr/bin/php\n<?php\n/*\nCopyrigh"..., 8192) = 8192
read(4, "_ERROR:\n\t\tgh_log(CRITICAL, \"PHP "..., 8192) = 8192
read(4, "path>\\n\";\n\texit(1);\n}\n\nif ($acti"..., 8192) = 8192
read(4, "torage Pool\\n\";\n\tprintf(\"%$max_d"..., 8192) = 8192
read(4, "th);\n\t\t\tbreak;\n\t}\n\tif ($task->ac"..., 8192) = 8192
read(4, "ng this symlink can fail if the "..., 8192) = 8192
read(4, " Copying file to $tombstone->pa"..., 8192) = 8192
read(4, "\t\t\t\t} else {\n\t\t\t\t\t// Found a fil"..., 8192) = 8192
read(4, " SET additional_info = NULL, com"..., 8192) = 8192
read(4, "g .= \"$d (\" . bytes_to_human($s*"..., 8192) = 8192
read(4, "e 1st one\n\t\t$found_linked_tombst"..., 8192) = 8192
read(4, "_copies_inodes[fileinode($key)])"..., 8192) = 8192
read(4, " \"Can't repair tasks table: \" . "..., 8192) = 8192
read(4, "with the less available space to"..., 8192) = 6602
read(4, "", 8192) = 0
read(4, "", 8192) = 0
close(4) = 0
time(NULL) = 1272817911
time(NULL) = 1272817911
time(NULL) = 1272817911
time(NULL) = 1272817911
lstat64("/var/log/greyhole.log", {st_mode=S_IFREG|0644, st_size=15958717, ...}) = 0
lstat64("/var/log", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/var/log/greyhole.log", O_WRONLY|O_CREAT|O_APPEND, 0666) = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=15958717, ...}) = 0
lseek(4, 0, SEEK_CUR) = 0
lseek(4, 0, SEEK_CUR) = 0
write(4, "May 2 18:31:51 6 daemon: Greyho"..., 51) = 51
close(4) = 0
fcntl64(3, F_SETLK64, {type=F_RDLCK, whence=SEEK_SET, start=1073741824, len=1}, 0xbf8a5234) = 0
fcntl64(3, F_SETLK64, {type=F_RDLCK, whence=SEEK_SET, start=1073741826, len=510}, 0xbf8a51d8) = 0
fcntl64(3, F_SETLK64, {type=F_UNLCK, whence=SEEK_SET, start=1073741824, len=1}, 0xbf8a5234) = 0
access("/var/cache/greyhole.sqlite-journal", F_OK) = 0
fcntl64(3, F_GETLK64, {type=F_UNLCK, whence=SEEK_SET, start=1073741825, len=1, pid=52782495}) = 0
fstat64(3, {st_mode=S_IFREG|0644, st_size=17783808, ...}) = 0
open("/var/cache/greyhole.sqlite-journal", O_RDONLY|O_LARGEFILE) = 4
fcntl64(4, F_GETFD) = 0
fcntl64(4, F_SETFD, FD_CLOEXEC) = 0
_llseek(4, 0, [0], SEEK_SET) = 0
read(4, "\0", 1) = 1
close(4) = 0
_llseek(3, 24, [24], SEEK_SET) = 0
read(3, "\0\3uk\0\0\0\0\0\0\4V\0\0\0041", 16) = 16
_llseek(3, 2048, [2048], SEEK_SET) = 0
read(3, "\n\0\0\0\5\3\213\0\3\240\3\267\3\312\3\344\3\213\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 1024) = 1024
_llseek(3, 1024, [1024], SEEK_SET) = 0
read(3, "\r\3\343\0\5\3E\0\3\246\3\310\3\347\3\211\3E\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 1024) = 1024
fcntl64(3, F_SETLK64, {type=F_UNLCK, whence=SEEK_SET, start=0, len=0}, 0xbf8a50f4) = 0
stat64("/var/log/messages", {st_mode=S_IFREG|0644, st_size=5273092, ...}) = 0
time(NULL) = 1272817911
lstat64("/var/log/messages", {st_mode=S_IFREG|0644, st_size=5273092, ...}) = 0
open("/var/log/messages", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=5273092, ...}) = 0
lseek(4, 0, SEEK_CUR) = 0
lseek(4, 332901, SEEK_SET) = 332901
read(4, "May 2 14:39:10 toast smbd_greyh"..., 8192) = 8192
fcntl64(3, F_SETLK64, {type=F_RDLCK, whence=SEEK_SET, start=1073741824, len=1}, 0xbf8a5234) = 0
fcntl64(3, F_SETLK64, {type=F_RDLCK, whence=SEEK_SET, start=1073741826, len=510}, 0xbf8a51d8) = 0
fcntl64(3, F_SETLK64, {type=F_UNLCK, whence=SEEK_SET, start=1073741824, len=1}, 0xbf8a5234) = 0
access("/var/cache/greyhole.sqlite-journal", F_OK) = 0
fcntl64(3, F_GETLK64, {type=F_UNLCK, whence=SEEK_SET, start=1073741825, len=1, pid=52782495}) = 0
fstat64(3, {st_mode=S_IFREG|0644, st_size=17783808, ...}) = 0
open("/var/cache/greyhole.sqlite-journal", O_RDONLY|O_LARGEFILE) = 5
fcntl64(5, F_GETFD) = 0
fcntl64(5, F_SETFD, FD_CLOEXEC) = 0
_llseek(5, 0, [0], SEEK_SET) = 0
read(5, "\0", 1) = 1
close(5) = 0
_llseek(3, 24, [24], SEEK_SET) = 0
read(3, "\0\3uk\0\0\0\0\0\0\4V\0\0\0041", 16) = 16
fcntl64(3, F_SETLK64, {type=F_UNLCK, whence=SEEK_SET, start=0, len=0}, 0xbf8a5514) = 0
fcntl64(3, F_SETLK64, {type=F_RDLCK, whence=SEEK_SET, start=1073741824, len=1}, 0xbf8a5234) = 0
fcntl64(3, F_SETLK64, {type=F_RDLCK, whence=SEEK_SET, start=1073741826, len=510}, 0xbf8a51d8) = 0
fcntl64(3, F_SETLK64, {type=F_UNLCK, whence=SEEK_SET, start=1073741824, len=1}, 0xbf8a5234) = 0
access("/var/cache/greyhole.sqlite-journal", F_OK) = 0
fcntl64(3, F_GETLK64, {type=F_UNLCK, whence=SEEK_SET, start=1073741825, len=1, pid=52782495}) = 0
fstat64(3, {st_mode=S_IFREG|0644, st_size=17783808, ...}) = 0
open("/var/cache/greyhole.sqlite-journal", O_RDONLY|O_LARGEFILE) = 5
fcntl64(5, F_GETFD) = 0
fcntl64(5, F_SETFD, FD_CLOEXEC) = 0
_llseek(5, 0, [0], SEEK_SET) = 0
read(5, "\0", 1) = 1
close(5) = 0
_llseek(3, 24, [24], SEEK_SET) = 0
read(3, "\0\3uk\0\0\0\0\0\0\4V\0\0\0041", 16) = 16
fcntl64(3, F_SETLK64, {type=F_WRLCK, whence=SEEK_SET, start=1073741825, len=1}, 0xbf8a5234) = 0
open("/var/cache/greyhole.sqlite-journal", O_RDWR|O_CREAT|O_LARGEFILE, 0644) = 5
open("/var/cache", O_RDONLY|O_LARGEFILE) = 6
fcntl64(6, F_GETFD) = 0
fcntl64(6, F_SETFD, FD_CLOEXEC) = 0
fcntl64(5, F_GETFD) = 0
fcntl64(5, F_SETFD, FD_CLOEXEC) = 0
open("/dev/urandom", O_RDONLY|O_LARGEFILE) = 7
read(7, "\223\223)\246\223oe\320\31\325\310\262\36$j\21\"\221\27\217\211\32\222,6 \254_;.\300\252"..., 256) = 256
close(7) = 0
_llseek(5, 0, [0], SEEK_SET) = 0
write(5, "\0\0\0\0\0\0\0\0\0\0\0\0s\257 \27\0\0C\327\0\0\2\0\0\0\4\0\0\0\0\0"..., 512) = 512
_llseek(3, 3072, [3072], SEEK_SET) = 0
read(3, "\5\0\0\0\1\3\371\0\0\0-\340\3\371\3\364\3\356\3\350\3\342\3\334\3\326\3\320\3\312\3\304"..., 1024) = 1024
_llseek(3, 12023808, [12023808], SEEK_SET) = 0
read(3, "\5\0\0\0N\1\336\0\0\0004Q\1\336\1\345\1\354\1\363\1\372\2\1\2\10\2\17\2\26\2\35"..., 1024) = 1024
_llseek(3, 138240, [138240], SEEK_SET) = 0
read(3, "\5\0\0\0<\2\\\0\0\0\10\230\2\\\2c\2j\2q\2x\2\177\2\206\2\215\2\224\2\233"..., 1024) = 1024
_llseek(3, 6144, [6144], SEEK_SET) = 0
read(3, "\r\1\211\0\10\0\336\0\0\336\1\n\0012\0026\2\220\2\357\3G\3\247\3\247\3\247\3\250\3\250"..., 1024) = 1024
_llseek(3, 1719296, [1719296], SEEK_SET) = 0
read(3, "\r\0\0\0\10\1\32\0\1\32\1x\1\325\0024\2\214\2\353\3G\3\243\3\250\0008\0008\0\0"..., 1024) = 1024
_llseek(3, 2191360, [2191360], SEEK_SET) = 0
read(3, "\r\0\0\0\n\0^\0\3\237\3B\2\345\2\210\2,\1\320\1s\1\26\0\272\0^\0\0\0\0"..., 1024) = 1024
_llseek(3, 2193408, [2193408], SEEK_SET) = 0
read(3, "\r\0\0\0\n\0Z\0\3\244\3D\2\347\2\211\2,\1\320\1q\1\24\0\267\0Z\0\0\0\0"..., 1024) = 1024
_llseek(3, 2194432, [2194432], SEEK_SET) = 0
read(3, "\r\0\0\0\n\0W\0\3\243\3D\2\346\2\211\2,\1\317\1r\1\22\0\263\0W\0\0\0\0"..., 1024) = 1024
_llseek(3, 2195456, [2195456], SEEK_SET) = 0
read(3, "\r\0\0\0\n\0[\0\3\242\3G\2\347\2\210\2/\1\327\1\200\1-\0\303\0[\0\0\0\0"..., 1024) = 1024
_llseek(3, 2196480, [2196480], SEEK_SET) = 0
read(3, "\r\0\0\0\7\0001\0\3\256\2\325\0027\1\315\1 \0\251\0001\0\0\0\0\0\0\0\0\0\0"..., 1024) = 1024
_llseek(3, 2197504, [2197504], SEEK_SET) = 0
read(3, "\r\0\0\0\7\0\237\0\3\213\3\27\2\203\1\376\1k\0\375\0\237\0\0\0\0\0\0\0\0\0\0"..., 1024) = 1024
_llseek(3, 2198528, [2198528], SEEK_SET) = 0
read(3, "\r\0\0\0\4\0\207\0\3#\2P\1l\0\207\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 1024) = 1024
_llseek(3, 2199552, [2199552], SEEK_SET) = 0
read(3, "\r\0\0\0\10\0#\0\3{\2\362\2r\1\365\1\211\1\r\0\217\0#\0\0\0\0\0\0\0\0"..., 1024) = 1024
_llseek(3, 2200576, [2200576], SEEK_SET) = 0
read(3, "\r\0\0\0\t\0002\0\3\217\3\32\2\300\2Y\1\351\1x\1\r\0\236\0002\0\0\0\0\0\0"..., 1024) = 1024
_llseek(3, 2201600, [2201600], SEEK_SET) = 0
read(3, "\r\0\0\0\t\0U\0\3\202\2\372\2\205\2\r\1\265\1]\1\3\0\255\0U\0\0\0\0\0\0"..., 1024) = 1024
_llseek(3, 2202624, [2202624], SEEK_SET) = 0
read(3, "\r\0\0\0\n\0h\0\3\246\3M\2\363\2\231\2C\1\351\1\221\0012\0\315\0h\0\0\0\0"..., 1024) = 1024
_llseek(3, 2203648, [2203648], SEEK_SET) = 0
read(3, "\r\0\0\0\v\0003\0\3\246\3P\2\366\2\234\2D\1\353\1\221\1<\0\347\0\215\0003\0\0"..., 1024) = 1024
_llseek(3, 2204672, [2204672], SEEK_SET) = 0
read(3, "\r\0\0\0\v\0.\0\3\253\3T\2\373\2\242\2H\1\357\1\225\1;\0\341\0\207\0.\0\0"..., 1024) = 1024
_llseek(3, 2205696, [2205696], SEEK_SET) = 0
read(3, "\r\0\0\0\v\0F\0\3\246\3N\2\364\2\232\2@\1\346\1\213\0011\0\327\0\216\0F\0\0"..., 1024) = 1024
_llseek(3, 2206720, [2206720], SEEK_SET) = 0
read(3, "\r\0\0\0\v\0j\0\3\246\3d\2\377\2\262\2c\2\23\1\306\1o\1\26\0\301\0j\0\0"..., 1024) = 1024
_llseek(3, 2207744, [2207744], SEEK_SET) = 0
read(3, "\r\0\0\0\f\0,\0\3\261\3d\3\27\2\310\2z\2)\1\332\1\215\1<\0\352\0\213\0,"..., 1024) = 1024
_llseek(3, 2208768, [2208768], SEEK_SET) = 0
read(3, "\r\0\0\0\t\0O\0\3\204\3#\2\276\2Y\1\362\1\213\1!\0\266\0O\0\0\0\0\0\0"..., 1024) = 1024
_llseek(3, 2209792, [2209792], SEEK_SET) = 0
read(3, "\r\0\0\0\t\0T\0\3\233\3/\2\312\2_\1\370\1\214\1$\0\277\0T\0\0\0\0\0\0"..., 1024) = 1024
_llseek(3, 2210816, [2210816], SEEK_SET) = 0
read(3, "\r\0\0\0\n\0\36\0\3\226\3.\2\306\2d\2\4\1\245\1E\0\344\0\200\0\36\0\0^\201"..., 1024) = 1024
_llseek(3, 2211840, [2211840], SEEK_SET) = 0
read(3, "\r\0\0\0\10\0I\0\3~\2\371\2\227\0029\1\275\1B\0\302\0I\0\0\0\0\0\0\0\0"..., 1024) = 1024
_llseek(3, 2212864, [2212864], SEEK_SET) = 0
read(3, "\r\0\0\0\10\0\"\0\3\200\3\t\2\216\2\22\1\230\1\32\0\234\0\"\0\0\0\0\0\0\0\0"..., 1024) = 1024
_llseek(3, 2213888, [2213888], SEEK_SET) = 0
read(3, "\r\0\0\0\7\0\216\0\3\204\3\7\2\207\2\v\1\213\1\t\0\216\0\0\0\0\0\0\0\0\0\0"..., 1024) = 1024
_llseek(3, 2214912, [2214912], SEEK_SET) = 0
read(3, "\r\0\0\0\10\0\31\0\3\200\2\376\2\204\2\2\1\203\1\n\0\222\0\31\0u\201\2455\t\0\27"..., 1024) = 1024
_llseek(3, 2215936, [2215936], SEEK_SET) = 0
read(3, "\r\0\0\0\10\0%\0\3\207\3\f\2\224\2\24\1\227\1\35\0\243\0%\0\0\0\0\0\0\0\0"..., 1024) = 1024
_llseek(3, 2216960, [2216960], SEEK_SET) = 0
read(3, "\r\0\0\0\t\0003\0\3\202\3$\2\304\2H\1\347\1g\0\375\0\232\0003\0\0\0\0\0\0"..., 1024) = 1024
_llseek(3, 2217984, [2217984], SEEK_SET) = 0
read(3, "\r\0\0\0\n\0001\0\3\236\3>\2\336\2\202\2\33\1\260\1Q\0\360\0\224\0001\0\0\0\0"..., 1024) = 1024
_llseek(3, 2219008, [2219008], SEEK_SET) = 0
read(3, "\r\0\0\0\n\0\36\0\3\236\3:\2\332\2`\2\1\1\241\1A\0\337\0}\0\36\0\0[\201"..., 1024) = 1024
_llseek(3, 2220032, [2220032], SEEK_SET) = 0
read(3, "\r\0\0\0\10\0P\0\3\206\3'\2\304\2_\2\2\1\240\0\367\0P\0\0\0\0\0\0\0\0"..., 1024) = 1024
_llseek(3, 2221056, [2221056], SEEK_SET) = 0
read(3, "\r\0\0\0\t\0G\0\3\206\3'\2\307\2G\1\343\1~\1\10\0\241\0G\0\0\0\0\0\0"..., 1024) = 1024
_llseek(3, 2222080, [2222080], SEEK_SET) = 0
read(3, "\r\0\0\0\10\0Z\0\3\237\3\16\2{\2\26\1\267\1:\0\273\0Z\0\0\0\0\0\0\0\0"..., 1024) = 1024
_llseek(3, 2223104, [2223104], SEEK_SET) = 0
read(3, "\r\0\0\0\n\0\"\0\3\242\3C\2\331\2q\2\24\1\262\1R\0\360\0\214\0\"\0\0\0\0"..., 1024) = 1024
_llseek(3, 2224128, [2224128], SEEK_SET) = 0
read(3, "\r\0\0\0\n\0*\0\3\242\3@\2\340\2\177\2\36\1\301\1G\0\345\0\207\0*\0\0\0\0"..., 1024) = 1024
_llseek(3, 2225152, [2225152], SEEK_SET) = 0
read(3, "\r\0\0\0\n\0 \0\3\237\3?\2\335\2~\2\"\1\301\1W\0\335\0~\0 \0\0\0\0"..., 1024) = 1024
_llseek(3, 2226176, [2226176], SEEK_SET) = 0
read(3, "\r\0\0\0\t\0000\0\3\242\3$\2\303\2I\1\352\1\204\1\6\0\232\0000\0\0\0\0\0\0"..., 1024) = 1024
_llseek(3, 2227200, [2227200], SEEK_SET) = 0
read(3, "\r\0\0\0\t\0=\0\3\230\0038\2\331\2{\2\30\1\266\0018\0\267\0=\0\0\0\0\0\0"..., 1024) = 1024
_llseek(3, 2228224, [2228224], SEEK_SET) = 0
read(3, "\r\0\0\0\10\0\31\0\3z\3\0\2\214\2\v\1\217\1\27\0\230\0\31\0{\201\246+\t\0\27"..., 1024) = 1024
_llseek(3, 2229248, [2229248], SEEK_SET) = 0
read(3, "\r\0\0\0\7\0\231\0\3\212\3\v\2\216\2\21\1\205\1\31\0\231\0\0\0\0\0\0\0\0\0\0"..., 1024) = 1024
_llseek(3, 2230272, [2230272], SEEK_SET) = 0
read(3, "\r\0\0\0\10\0\"\0\3r\2\361\2r\2\4\1\211\1\1\0\205\0\"\0\0\0\0\0\0\0\0"..., 1024) = 1024
_llseek(3, 2231296, [2231296], SEEK_SET) = 0
read(3, "\r\0\0\0\n\0B\0\3\241\3A\2\342\2\205\2\"\1\301\1a\1\1\0\242\0B\0\0\0\0"..., 1024) = 1024
_llseek(3, 2232320, [2232320], SEEK_SET) = 0
read(3, "\r\0\0\0\t\0d\0\3\236\3<\2\300\2D\1\343\1\203\1%\0\307\0d\0\0\0\0\0\0"..., 1024) = 1024
_llseek(3, 2233344, [2233344], SEEK_SET) = 0
read(3, "\r\0\0\0\7\0?\0\3\237\3\n\2\177\1\356\1_\0\314\0?\0\0\0\0\0\0\0\0\0\0"..., 1024) = 1024
_llseek(3, 2234368, [2234368], SEEK_SET) = 0
read(3, "\r\0\0\0\t\0n\0\3\204\3'\2\302\2d\2\1\1\227\0014\0\315\0n\0\0\0\0\0\0"..., 1024) = 1024

sonofmof
Posts: 29
Joined: Thu Mar 25, 2010 3:11 pm

Re: Adding the second drive

Postby sonofmof » Sun May 02, 2010 9:34 am

apologies for the huge post :o

User avatar
gboudreau
Posts: 606
Joined: Sat Jan 23, 2010 1:15 pm
Location: Montréal, Canada
Contact:

Re: Adding the second drive

Postby gboudreau » Sun May 02, 2010 9:51 am

it was hard to get the strace with the info before the loop, it goes so fast and terminal only seems to store so much.
You can always redirect the output to a file:

Code: Select all

strace ... > some_file
I hope this is enough although the top seems cut off.............
Yes, it is enough.
Since it loops on the file pointer "3", I needed to see what file that was.
And it's this one:

Code: Select all

open("/var/cache/greyhole.sqlite", O_RDWR|O_CREAT|O_LARGEFILE, 0644) = 3
From what I can decipher from the strace:

Code: Select all

open("/var/cache/greyhole.sqlite", O_RDWR|O_CREAT|O_LARGEFILE, 0644) = 3 ... open("/var/log/messages", O_RDONLY) = 4 ... read(4, "May 2 14:39:10 toast smbd_greyh"..., 8192) = 8192 ...
So that tells me Greyhole opens the log file, finds a line that needs to be inserted in the DB, then falls in an infinite loop when trying to insert it in the DB, using the following query:
INSERT INTO tasks (action, share, full_path, additional_info, complete) VALUES ('%s', '%s', %s, %s, '%s')

From there, I'll handle this to cpg. He's the master of SQLite support, and should be able to help you further.
I'll make sure he's aware of this thread.
- Guillaume Boudreau

Who is online

Users browsing this forum: No registered users and 59 guests