Jump to content

[SOLVED] user share not working with cache drive


Recommended Posts

I just upgraded from 4.7 to 5.0 beta 10 and cannot get unraid to mount the /mnt/user share anymore

 

my /mnt/user0 works properly

 

Here's an exert from the syslog:

 

Media emhttp: shcmd (104): mkdir /mnt/user

Media emhttp: shcmd (105): /usr/local/sbin/shfs /mnt/user -disks 131071  -o noatime,big_writes,allow_other,default_permissions,use_ino

Media emhttp: _shcmd: shcmd (105): exit status: 1

Media emhttp: shcmd (106): /usr/local/sbin/emhttp_event disks_mounted

 

any ideas?

Link to comment

Tried upgrading to 5.0 beta 10 again, this time with a new cache drive.

 

When there is no cache drive assigned all is well.

 

When I assign a cache drive, then "user0" starts fine, but "user" fails with a segfault.

 

    Media kernel: shfs[10311]: segfault at 0 ip b75837c4 sp bf8dcf70 error 4 in libc-2.11.1.so[b7552000+15c000]

 

and since "user" is started after "user0" no shares are populated in samba.

Link to comment

here's the strace

 

root@Media:/boot/custom/usr/share/packages# strace /usr/local/sbin/shfs /mnt/user -disks 131071 -o noatime,big_writes,allow_other,default_permissions,use_ino

execve("/usr/local/sbin/shfs", ["/usr/local/sbin/shfs", "/mnt/user", "-disks", "131071", "-o", "noatime,big_writes,allow_other,d"...], [/* 25 vars */]) = 0

brk(0)                                  = 0x8051000

mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb76f0000

access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)

open("/etc/ld.so.cache", O_RDONLY)      = 3

fstat64(3, {st_mode=S_IFREG|0644, st_size=15757, ...}) = 0

mmap2(NULL, 15757, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb76ec000

close(3)                                = 0

open("/lib/libfuse.so.2", O_RDONLY)    = 3

read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0@P\0\0004\0\0\0d"..., 512) = 512

fstat64(3, {st_mode=S_IFREG|0755, st_size=160372, ...}) = 0

mmap2(NULL, 159160, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb76c5000

mmap2(0xb76e3000, 36864, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1e) = 0xb76e3000

close(3)                                = 0

open("/lib/libpthread.so.0", O_RDONLY)  = 3

read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0@I\0\0004\0\0\0\334"..., 512) = 512

fstat64(3, {st_mode=S_IFREG|0755, st_size=116867, ...}) = 0

mmap2(NULL, 98784, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb76ac000

mmap2(0xb76c1000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x14) = 0xb76c1000

mmap2(0xb76c3000, 4576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb76c3000

close(3)                                = 0

open("/lib/libcrypt.so.1", O_RDONLY)    = 3

read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 \7\0\0004\0\0\0@"..., 512) = 512

fstat64(3, {st_mode=S_IFREG|0755, st_size=46455, ...}) = 0

mmap2(NULL, 205148, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7679000

mmap2(0xb7683000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x9) = 0xb7683000

mmap2(0xb7685000, 155996, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7685000

close(3)                                = 0

open("/lib/libcrypto.so.0", O_RDONLY)  = 3

read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0@x\3\0004\0\0\0\244"..., 512) = 512

fstat64(3, {st_mode=S_IFREG|0555, st_size=1337012, ...}) = 0

mmap2(NULL, 1343224, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7531000

mmap2(0xb7660000, 90112, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x12e) = 0xb7660000

mmap2(0xb7676000, 12024, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7676000

mprotect(0xbfe7d000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC|PROT_GROWSDOWN) = 0

close(3)                                = 0

open("/lib/libc.so.6", O_RDONLY)        = 3

read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\340l\1\0004\0\0\0<"..., 512) = 512

fstat64(3, {st_mode=S_IFREG|0755, st_size=1649149, ...}) = 0

mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7530000

mmap2(NULL, 1452296, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb73cd000

mprotect(0xb7529000, 4096, PROT_NONE)  = 0

mmap2(0xb752a000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x15c) = 0xb752a000

mmap2(0xb752d000, 10504, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb752d000

close(3)                                = 0

open("/lib/librt.so.1", O_RDONLY)      = 3

read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\240\30\0\0004\0\0\0\250"..., 512) = 512

fstat64(3, {st_mode=S_IFREG|0755, st_size=38496, ...}) = 0

mmap2(NULL, 33360, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb73c4000

mmap2(0xb73cb000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6) = 0xb73cb000

close(3)                                = 0

open("/lib/libdl.so.2", O_RDONLY)      = 3

read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 \n\0\0004\0\0\0L"..., 512) = 512

fstat64(3, {st_mode=S_IFREG|0755, st_size=13147, ...}) = 0

mmap2(NULL, 12408, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb73c0000

mmap2(0xb73c2000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1) = 0xb73c2000

close(3)                                = 0

mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb73bf000

mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb73be000

set_thread_area({entry_number:-1 -> 6, base_addr:0xb73bfb10, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0

mprotect(0xb73c2000, 4096, PROT_READ)  = 0

mprotect(0xb73cb000, 4096, PROT_READ)  = 0

mprotect(0xb752a000, 8192, PROT_READ)  = 0

mprotect(0xb7683000, 4096, PROT_READ)  = 0

mprotect(0xb76c1000, 4096, PROT_READ)  = 0

mprotect(0xb770f000, 4096, PROT_READ)  = 0

munmap(0xb76ec000, 15757)              = 0

set_tid_address(0xb73bfb78)            = 17963

set_robust_list(0xb73bfb80, 0xc)        = 0

futex(0xbfe7d310, FUTEX_WAKE_PRIVATE, 1) = 0

futex(0xbfe7d310, 0x189 /* FUTEX_??? */, 1, NULL, bfe7d320) = -1 EAGAIN (Resource temporarily unavailable)

rt_sigaction(SIGRTMIN, {0xb76b0390, [], SA_SIGINFO}, NULL, 8) = 0

rt_sigaction(SIGRT_1, {0xb76b0820, [], SA_RESTART|SA_SIGINFO}, NULL, 8) = 0

rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0

getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM_INFINITY}) = 0

uname({sys="Linux", node="Media", ...}) = 0

brk(0)                                  = 0x8051000

brk(0x8072000)                          = 0x8072000

readlink("/dev/disk/by-label/UNRAID", "../../sda1"..., 255) = 10

readlink("/sys/block/sda", "../devices/pci0000:00/0000:00:13.2/usb2/2-3/2-3:1.0/host0/target0:0:0/0:0:0:0/block/sda"..., 255) = 87

SYS_331(0xbfe7cf28, 0x80000, 0xb752bff4, 0x80514b8, 0x1) = 0

clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb73bfb78) = 17964

close(4)                                = 0

fcntl64(3, F_SETFD, 0)                  = 0

fstat64(3, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0

mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb76ef000

read(3, "ID_VENDOR=Best_Buy\nID_VENDOR_ENC="..., 4096) = 369

--- SIGCHLD (Child exited) @ 0 (0) ---

read(3, ""..., 4096)                    = 0

close(3)                                = 0

waitpid(17964, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0) = 17964

munmap(0xb76ef000, 4096)                = 0

open("/boot/config", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = 3

fcntl64(3, F_GETFD)                    = 0x1 (flags FD_CLOEXEC)

getdents64(3, /* 15 entries */, 32768)  = 464

open("/boot/config/Pro1.key", O_RDONLY|O_LARGEFILE) = 4

close(3)                                = 0

fstat64(4, {st_mode=S_IFREG|0777, st_size=256, ...}) = 0

mmap2(NULL, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb73b6000

read(4, "q\340\252\304\275\232\237\367:(\255\210\10\347N\323\361\354\20N:u\323\330a\237\0\226\204\206\224Z6"..., 32768) = 256

close(4)                                = 0

munmap(0xb73b6000, 32768)              = 0

setrlimit(RLIMIT_NOFILE, {rlim_cur=16424, rlim_max=16424}) = 0

getrlimit(RLIMIT_NOFILE, {rlim_cur=16424, rlim_max=16424}) = 0

umask(0)                                = 022

lstat64("/mnt", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0

lstat64("/mnt/user", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0

write(2, "fuse: invalid argument `noatime,b"..., 84fuse: invalid argument `noatime,big_writes,allow_other,default_permissions,use_ino'

) = 84

exit_group(1)                          = ?

 

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...