Sunrise

[Solved] Problem Running Btsync On Arm System (Errno=28)

Recommended Posts

This is the log info:

 

platform: Linux 2.6.36 #1 SMP PREEMPT Fri Sep 25 12:03:49 CST 2015 armv7l
version: 2.2.5.131
[20151016 03:30:07.667] total physical memory -1 max disk cache 2097152
[20151016 03:30:07.670] Can't locate [version] in zip.
[20151016 03:30:07.712] Using IP address 192.168.30.1
[20151016 03:30:07.716] test sha1: AE5BD8EFEA5322C4D9986D06680A781392F9A642
[20151016 03:30:07.717] test sha2: 630DCD2966C4336691125448BBB25B4FF412A49C732DB2C8ABC1B8581BD710DD
[20151016 03:30:07.717] test aes: 0A940BB5416EF045F1C39458C653EA5A07FEEF74E1D5036E900EEE118E949293
[20151016 03:30:07.717] My PeerID: 107CA4BDEB027B5BB54BD8CCF0C2FD20E27C9345
[20151016 03:30:07.718] LC: LoadLicenses: there is no pro license
[20151016 03:30:07.720] setup socket 12 for local peer discovery for 127.0.0.1:0: success
[20151016 03:30:07.720] setup socket 13 for local peer discovery for 192.168.30.1:0: success
[20151016 03:30:07.720] setup socket 14 for local peer discovery for 192.168.31.2:0: success
[20151016 03:30:07.720] setup socket 15 for local peer discovery for 169.254.29.1:0: success
[20151016 03:30:11.224] Debug log mask has been set to FFFFFFFF
[20151016 03:30:11.224] Features mask has been set to 0
[20151016 03:30:11.758] UPnP: Could not map UPnP Port on this pass, retrying.
[20151016 03:30:16.739] UPnP: Could not map UPnP Port on this pass, retrying.
[20151016 03:30:20.398] NAT-PMP: Unable to map port with NAT-PMP.
[20151016 03:30:22.067] UPnP: Could not map UPnP Port on this pass, retrying.
[20151016 03:30:27.429] UPnP: Unable to map port 192.168.30.1:13529 with UPnP.
[20151016 03:34:49.497] SyncPlatformAPI::GetSystemUserName() getpwuid failed to find an entry for uid=0.  Returning the empty string
[20151016 03:42:53.004] ****** WebUI Added as listener: 0x42901940 (count=1)
[20151016 03:43:00.552] Set new identity: GEZJK272REIALA2NLFVOG2HDSVE4TAU2H3XKC2YBN42WIFFK3C5Q
[20151016 03:43:00.553] Unable to add identity 'GEZJK272REIALA2NLFVOG2HDSVE4TAU2H3XKC2YBN42WIFFK3C5Q' to DB, DB is NULL
[20151016 03:43:02.415] Master Folder Controller: disconnect master folder
[20151016 03:43:02.415] Master Folder Controller: no master folder
[20151016 03:43:02.415] Master Folder Controller: set secret
[20151016 03:43:03.071] MD[init]: Master Folder: create
[20151016 03:43:03.302] JOURNAL[DA2A]: Initializing database with path "/btsync/.sync//F8A81555B7C8504E61BE7557BD88603EB044DA2A.1.db"
[20151016 03:43:04.506] JOURNAL[DA2A]: stream probe taken, alternate streams (xattrs) supported
[20151016 03:43:04.614] SyncFolderScanner: Adding notifier "/btsync/.sync/.SyncUser1444966982"
[20151016 03:43:04.614] SyncFolderNotify: Error while adding watch for /btsync/.sync/.SyncUser1444966982. errno=28
 
Anyone who can help me? Thanks!
 

Share this post


Link to post
Share on other sites

Sunrise, this error means, that no free space left on your device. I think there might be other errors in the log file. So you need to free space on your partition.

Share this post


Link to post
Share on other sites

Sunrise, this error means, that no free space left on your device. I think there might be other errors in the log file. So you need to free space on your partition.

Thanks your reply.

 

And I'm sure my partition have enough space, about 400G space. And I use "chroot" to run btsync, this will have problem?

Share this post


Link to post
Share on other sites

@Sunrise

Actually, this error popping up on "SyncFolderNotify" event indicates that you are out of inotifies. Could you please run command 

cat /proc/sys/fs/inotify/max_user_watches

and let me know the output? Most likely that would be something humble like 8000. You'll need to increase it to get Sync working.

Share this post


Link to post
Share on other sites

@Sunrise

Actually, this error popping up on "SyncFolderNotify" event indicates that you are out of inotifies. Could you please run command 

cat /proc/sys/fs/inotify/max_user_watches

and let me know the output? Most likely that would be something humble like 8000. You'll need to increase it to get Sync working.

 

root@XiaoQiang:~# cat /proc/sys/fs/inotify/max_user_watches
8192
 
Thanks for your help!

Share this post


Link to post
Share on other sites

Sunrise,

 

Try doubling it:

echo 16384 > /proc/sys/fs/inotify/max_user_watches 

You will also need to add this to the end of the file: 

fs.inotify.max_user_watches=16384

Share this post


Link to post
Share on other sites
root@XiaoQiang:~# cat /proc/sys/fs/inotify/max_user_watches102400root@XiaoQiang:~# cat /userdisk/btsync/root/btsync/.sync/sync.logplatform: Linux 2.6.36 #1 SMP PREEMPT Fri Sep 25 12:03:49 CST 2015 armv7lversion: 2.2.5.131[20151022 06:21:40.646] total physical memory -1 max disk cache 2097152[20151022 06:21:40.653] Can't locate [version] in zip.[20151022 06:21:40.687] Using IP address 192.168.30.1[20151022 06:21:40.693] test sha1: AE5BD8EFEA5322C4D9986D06680A781392F9A642[20151022 06:21:40.693] test sha2: 630DCD2966C4336691125448BBB25B4FF412A49C732DB2C8ABC1B8581BD710DD[20151022 06:21:40.693] test aes: 0A940BB5416EF045F1C39458C653EA5A07FEEF74E1D5036E900EEE118E949293[20151022 06:21:40.694] My PeerID: 102C533DCA489E7A999A87B7F7F185ECCC9CF648[20151022 06:21:40.694] LC: LoadLicenses: there is no pro license[20151022 06:21:40.697] setup socket 12 for local peer discovery for 127.0.0.1:0: success[20151022 06:21:40.697] setup socket 13 for local peer discovery for 192.168.30.1:0: success[20151022 06:21:40.697] setup socket 14 for local peer discovery for 192.168.31.2:0: success[20151022 06:21:40.698] setup socket 15 for local peer discovery for 169.254.29.1:0: success[20151022 06:21:40.699] Debug log mask has been set to FFFFFFFF[20151022 06:21:40.699] Features mask has been set to 0[20151022 06:21:44.964] UPnP: Could not map UPnP Port on this pass, retrying.[20151022 06:21:50.244] UPnP: Could not map UPnP Port on this pass, retrying.[20151022 06:21:53.294] NAT-PMP: Unable to map port with NAT-PMP.[20151022 06:21:54.912] UPnP: Could not map UPnP Port on this pass, retrying.[20151022 06:21:59.976] UPnP: Unable to map port 192.168.30.1:37286 with UPnP.[20151022 06:23:45.834] SyncPlatformAPI::GetSystemUserName() getpwuid failed to find an entry for uid=0.  Returning the empty string[20151022 06:24:35.149] ****** WebUI Added as listener: 0x42800cb0 (count=1)[20151022 06:24:45.151] Set new identity: UA63F5DWDDHDVGT3QF6NJT2WXLTUWG4SXOMUTIRMOGI3EW6F72KQ[20151022 06:24:45.151] Unable to add identity 'UA63F5DWDDHDVGT3QF6NJT2WXLTUWG4SXOMUTIRMOGI3EW6F72KQ' to DB, DB is NULL[20151022 06:24:46.639] Master Folder Controller: disconnect master folder[20151022 06:24:46.639] Master Folder Controller: no master folder[20151022 06:24:46.640] Master Folder Controller: set secret[20151022 06:24:46.848] MD[init]: Master Folder: create[20151022 06:24:47.047] JOURNAL[97B4]: Initializing database with path "/btsync/.sync//AC50C27B60388FD860519A5E6846D13042E497B4.1.db"[20151022 06:24:47.908] JOURNAL[97B4]: stream probe taken, alternate streams (xattrs) supported[20151022 06:24:47.935] SyncFolderScanner: Adding notifier "/btsync/.sync/.SyncUser1445495086"[20151022 06:24:47.944] SyncFolderNotify: Added path=/btsync/.sync/.SyncUser1445495086 with fd=1[20151022 06:24:47.945] SyncFolderNotify: Added path=/btsync/.sync/.SyncUser1445495086/.sync with fd=2[20151022 06:24:47.945] SyncFolderNotify: /btsync/.sync/.SyncUser1445495086/.sync/Archive is in ignore list

I was change "/etc/sysctl.conf" file and set fs.inotify.max_user_watches=102400

But it was still crashed.

Share this post


Link to post
Share on other sites

ok, that is another crash. 

In terminal run "ulimit -c unlimited", launch sync, wait for core crash, send it to us. 

The crash dump will be generated in accordance with /proc/sys/kernel/core_pattern. You may ease it, and change it

sudo -s echo /tmp/dump.%e.%p > /proc/sys/kernel/core_pattern cat /proc/sys/kernel/core_pattern //see output: /tmp/dump.%e.%p

and collect the dump.btsync from /tmp/ folder. 

 

Also, how you launch Sync - with config? Did you change it right before you started seeing crashes? 

Share this post


Link to post
Share on other sites

Thanks for your help!

BusyBox v1.19.4 (2015-09-25 11:45:26 CST) built-in shell (ash)Enter 'help' for a list of built-in commands. -----------------------------------------------------        Welcome to XiaoQiang! -----------------------------------------------------root@XiaoQiang:~# mount | grep syncroot@XiaoQiang:~# ls -alR /userdisk/btsync/userdisk/btsync:drwxr-xr-x    3 root     root          4096 Oct 22 14:17 .drwxr-xr-x   20 root     root          4096 Oct 22 14:17 ..drwxr-xr-x   10 root     root          4096 Oct 26 10:10 root/userdisk/btsync/root:drwxr-xr-x   10 root     root          4096 Oct 26 10:10 .drwxr-xr-x    3 root     root          4096 Oct 22 14:17 ..drwxr-xr-x    2 root     root          4096 Oct 26 10:24 btsyncdrwxr-xr-x    2 root     root          4096 Oct 22 14:17 devdrwxrwxr-x    2 1000     1000          4096 Oct 22 14:17 libdrwxr-xr-x    2 root     root          4096 Oct 22 14:17 procdrwxr-xr-x    2 root     root          4096 Oct 22 14:17 sysdrwxr-xr-x    3 root     root          4096 Oct 22 14:17 tmpdrwxr-xr-x    2 root     root          4096 Oct 22 14:17 userdatadrwxr-xr-x    3 root     root          4096 Oct 22 14:17 var/userdisk/btsync/root/btsync:drwxr-xr-x    2 root     root          4096 Oct 26 10:24 .drwxr-xr-x   10 root     root          4096 Oct 26 10:10 ..-rw-rw-r--    1 root     root           227 Oct  8 23:22 LICENSE.TXT-rw-rw-r--    1 root     root          1607 Oct  8 23:22 README-rwxrwxr-x    1 root     root       8520840 Oct  8 23:27 btsync-rw-r--r--    1 root     root          3471 Oct 22 14:21 btsync.conf/userdisk/btsync/root/dev:drwxr-xr-x    2 root     root          4096 Oct 22 14:17 .drwxr-xr-x   10 root     root          4096 Oct 26 10:10 ../userdisk/btsync/root/lib:drwxrwxr-x    2 1000     1000          4096 Oct 22 14:17 .drwxr-xr-x   10 root     root          4096 Oct 26 10:10 ..-rwxr-xr-x    1 1000     1000        134440 Oct 16 09:41 ld-linux.so.3-rwxr-xr-x    1 1000     1000       1263252 Oct 16 09:41 libc.so.6-rwxr-xr-x    1 1000     1000         30292 Oct 16 09:41 libcrypt.so.1-rwxr-xr-x    1 1000     1000          9812 Oct 16 09:41 libdl.so.2-rwxr-xr-x    1 1000     1000        127852 Oct 16 09:41 libgcc_s.so.1-rwxr-xr-x    1 1000     1000        656988 Oct 16 09:41 libm.so.6-rwxr-xr-x    1 1000     1000         30584 Oct 16 09:41 libnss_compat.so.2-rwxr-xr-x    1 1000     1000         18040 Oct 16 09:41 libnss_dns.so.2-rwxr-xr-x    1 1000     1000         42716 Oct 16 09:41 libnss_files.so.2-rwxr-xr-x    1 1000     1000         18052 Oct 16 09:41 libnss_hesiod.so.2-rwxr-xr-x    1 1000     1000         38604 Oct 16 09:41 libnss_nis.so.2-rwxr-xr-x    1 1000     1000         50884 Oct 16 09:41 libnss_nisplus.so.2-rwxr-xr-x    1 1000     1000        126344 Oct 16 09:41 libpthread.so.0-rwxr-xr-x    1 1000     1000         26664 Oct 16 09:41 librt.so.1/userdisk/btsync/root/proc:drwxr-xr-x    2 root     root          4096 Oct 22 14:17 .drwxr-xr-x   10 root     root          4096 Oct 26 10:10 ../userdisk/btsync/root/sys:drwxr-xr-x    2 root     root          4096 Oct 22 14:17 .drwxr-xr-x   10 root     root          4096 Oct 26 10:10 ../userdisk/btsync/root/tmp:drwxr-xr-x    3 root     root          4096 Oct 22 14:17 .drwxr-xr-x   10 root     root          4096 Oct 26 10:10 ..drwxr-xr-x    2 root     root          4096 Oct 22 14:17 btsync_dumps/userdisk/btsync/root/tmp/btsync_dumps:drwxr-xr-x    2 root     root          4096 Oct 22 14:17 .drwxr-xr-x    3 root     root          4096 Oct 22 14:17 ../userdisk/btsync/root/userdata:drwxr-xr-x    2 root     root          4096 Oct 22 14:17 .drwxr-xr-x   10 root     root          4096 Oct 26 10:10 ../userdisk/btsync/root/var:drwxr-xr-x    3 root     root          4096 Oct 22 14:17 .drwxr-xr-x   10 root     root          4096 Oct 26 10:10 ..drwxr-xr-x    2 root     root          4096 Oct 22 14:17 run/userdisk/btsync/root/var/run:drwxr-xr-x    2 root     root          4096 Oct 22 14:17 .drwxr-xr-x    3 root     root          4096 Oct 22 14:17 ..
root@XiaoQiang:~# cd /userdisk/btsync/rootroot@XiaoQiang:/userdisk/btsync/root# mount --bind /dev devroot@XiaoQiang:/userdisk/btsync/root# mount --bind /proc procroot@XiaoQiang:/userdisk/btsync/root# mount --bind /sys sysroot@XiaoQiang:/userdisk/btsync/root# mount --bind /userdisk/data userdataroot@XiaoQiang:/userdisk/btsync/root# mount | grep syncnone on /userdisk/btsync/root/dev type devtmpfs (rw,relatime,size=127036k,nr_inodes=31759,mode=755)none on /userdisk/btsync/root/proc type proc (rw,nosuid,nodev,noexec,relatime)none on /userdisk/btsync/root/sys type sysfs (rw,nosuid,nodev,noexec,relatime)/dev/sda4 on /userdisk/btsync/root/userdata type ext4 (rw,noatime,barrier=1,data=ordered)root@XiaoQiang:/userdisk/btsync/root# cat btsync/btsync.conf{  "device_name": "Sunrise Router",  "listening_port" : 0, // 0 - randomize port/* storage_path dir contains auxilliary app files if no storage_path field: .sync dir created in the directory   where binary is located. otherwise user-defined directory will be used */// "storage_path" : "/home/user/.sync",/* set location of pid file */// "pid_file" : "/var/run/btsync/btsync.pid",/* use UPnP for port mapping */  "use_upnp" : true,/* limits in kB/s. 0 - no limit */  "download_limit" : 0,  "upload_limit" : 0,/* proxy configuration */// "proxy_type" : "socks4", // Valid types: "socks4", "socks5", "http_connect". Any other value means no proxy// "proxy_addr" : "192.168.1.2", // IP address of proxy server.// "proxy_port" : 1080,// "proxy_auth" : false, // Use authentication for proxy. Note: only username/password for socks5 (RFC 1929) is supported, and it is not really secure// "proxy_username" : "user",// "proxy_password" : "password",  "webui" :  {    "listen" : "0.0.0.0:8888" // remove field to disable WebUI/* preset credentials. Use password or password_hash */  ,"login" : "Sunrise"  ,"password" : "****************"//  ,"password_hash" : "some_hash" // password hash in crypt(3) format//  ,"allow_empty_password" : false // Defaults to true/* ssl configuration *///  ,"force_https" : true // disable http//  ,"ssl_certificate" : "/path/to/cert.pem"//  ,"ssl_private_key" : "/path/to/private.key"/* directory_root path defines where the WebUI Folder browser starts (linux only). Default value is / *///  ,"directory_root" : "/home/user/MySharedFolders/"/* directory_root_policy defines how directory_root is used (linux only).   Valid values are:     "all" - accepts directory_root and its subdirectories for 'getdir' and 'adddir' actions     "belowroot" - accepts directory_root's subdirectories for 'getdir' and 'adddir' actions,     but denies attempts to use 'adddir' to create directories directly within directory_root   Default value is "all". *///  ,"directory_root_policy" : "all"/* dir_whitelist defines which directories can be shown to user or have folders added (linux only)   relative paths are relative to directory_root setting *///  ,"dir_whitelist" : [ "/home/user/MySharedFolders/personal", "work" ]  }/* !!! if you set shared folders in config file WebUI will be DISABLED !!!   shared directories specified in config file  override the folders previously added from WebUI. *//*,  "shared_folders" :  [    {      "secret" : "MY_SECRET_1", // required field - use --generate-secret in command line to create new secret      "dir" : "/home/user/bittorrent/sync_test", // * required field      "use_relay_server" : true, //  use relay server when direct connection fails      "use_tracker" : true,      "use_dht" : false,      "search_lan" : true,      "use_sync_trash" : true, // enable SyncArchive to store files deleted on remote devices      "overwrite_changes" : false, // restore modified files to original version, ONLY for Read-Only folders      "known_hosts" : // specify hosts to attempt connection without additional search      [        "192.168.1.2:44444"      ]    }  ]*//* Advanced preferences can be added to config file. Info is available at "http://help.getsync.com/customer/portal/articles/1902048-sync-advanced-preferences--more-options"For example see folder_rescan_interval below *///, "folder_rescan_interval" : "86400"}
root@XiaoQiang:/userdisk/btsync/root# ulimit -c unlimitedroot@XiaoQiang:/userdisk/btsync/root# chroot . /btsync/btsync --config btsync/btsync.confBy using this application, you agree to our Privacy Policy, Terms of Use and End User License Agreement.https://www.getsync.com/legal/privacyhttps://www.getsync.com/legal/terms-of-usehttps://www.getsync.com/legal/eulaBitTorrent Sync forked to background. pid = 3802. default port = 8888

In WebUI operation until the crash.

 

root@XiaoQiang:/userdisk/btsync/root# pidof btsyncroot@XiaoQiang:/userdisk/btsync/root# sudo -s-ash: sudo: not foundroot@XiaoQiang:/userdisk/btsync/root# echo tmp/dump.%e.%p > proc/sys/kernel/core_patternroot@XiaoQiang:/userdisk/btsync/root# cat proc/sys/kernel/core_patterntmp/dump.%e.%proot@XiaoQiang:/userdisk/btsync/root# ls -alR tmptmp:drwxr-xr-x    3 root     root          4096 Oct 26 10:37 .drwxr-xr-x   10 root     root          4096 Oct 26 10:10 ..drwxr-xr-x    2 root     root          4096 Oct 22 14:17 btsync_dumps-rw-------    1 root     root      57905152 Oct 26 10:37 dump.btsync.3802tmp/btsync_dumps:drwxr-xr-x    2 root     root          4096 Oct 22 14:17 .drwxr-xr-x    3 root     root          4096 Oct 26 10:37 ..root@XiaoQiang:/userdisk/btsync/root# cat btsync/.sync/sync.logplatform: Linux 2.6.36 #1 SMP PREEMPT Fri Sep 25 12:03:49 CST 2015 armv7lversion: 2.2.5.131[20151026 02:31:57.067] total physical memory -1 max disk cache 2097152[20151026 02:31:57.479] Can't locate [version] in zip.[20151026 02:31:57.521] Using IP address 192.168.30.1[20151026 02:31:57.525] test sha1: AE5BD8EFEA5322C4D9986D06680A781392F9A642[20151026 02:31:57.525] test sha2: 630DCD2966C4336691125448BBB25B4FF412A49C732DB2C8ABC1B8581BD710DD[20151026 02:31:57.525] test aes: 0A940BB5416EF045F1C39458C653EA5A07FEEF74E1D5036E900EEE118E949293[20151026 02:31:57.525] My PeerID: 106E00A5F7443A4768EAC72C94002A7C48E80CB5[20151026 02:31:57.548] LC: LoadLicenses: there is no pro license[20151026 02:31:57.575] setup socket 12 for local peer discovery for 127.0.0.1:0: success[20151026 02:31:57.576] setup socket 13 for local peer discovery for 192.168.30.1:0: success[20151026 02:31:57.576] setup socket 14 for local peer discovery for 192.168.31.2:0: success[20151026 02:31:57.576] setup socket 15 for local peer discovery for 169.254.29.1:0: success[20151026 02:32:01.079] Debug log mask has been set to FFFFFFFF[20151026 02:32:01.079] Features mask has been set to 0[20151026 02:32:01.796] UPnP: Could not map UPnP Port on this pass, retrying.[20151026 02:32:06.846] UPnP: Could not map UPnP Port on this pass, retrying.[20151026 02:32:09.896] NAT-PMP: Unable to map port with NAT-PMP.[20151026 02:32:12.046] UPnP: Could not map UPnP Port on this pass, retrying.[20151026 02:32:17.096] UPnP: Unable to map port 192.168.30.1:21319 with UPnP.[20151026 02:35:20.074] SyncPlatformAPI::GetSystemUserName() getpwuid failed to find an entry for uid=0.  Returning the empty string[20151026 02:36:51.236] ****** WebUI Added as listener: 0x428019b8 (count=1)[20151026 02:37:00.885] Set new identity: PLM63CPITCUVTFAPNID3F4VMJI4EY2GPEOVYZZBYDZIJVFN733CA[20151026 02:37:00.885] Unable to add identity 'PLM63CPITCUVTFAPNID3F4VMJI4EY2GPEOVYZZBYDZIJVFN733CA' to DB, DB is NULL[20151026 02:37:02.753] Master Folder Controller: disconnect master folder[20151026 02:37:02.754] Master Folder Controller: no master folder[20151026 02:37:02.754] Master Folder Controller: set secret[20151026 02:37:03.901] MD[init]: Master Folder: create[20151026 02:37:04.168] JOURNAL[BBD1]: Initializing database with path "/btsync/.sync//50AD9377B4E12EB3289328ED82F2EA04E2D3BBD1.1.db"[20151026 02:37:13.742] JOURNAL[BBD1]: stream probe taken, alternate streams (xattrs) supported[20151026 02:37:14.025] SyncFolderScanner: Adding notifier "/btsync/.sync/.SyncUser1445827022"[20151026 02:37:14.025] SyncFolderNotify: Added path=/btsync/.sync/.SyncUser1445827022 with fd=1[20151026 02:37:14.032] SyncFolderNotify: Added path=/btsync/.sync/.SyncUser1445827022/.sync with fd=2[20151026 02:37:14.032] SyncFolderNotify: /btsync/.sync/.SyncUser1445827022/.sync/Archive is in ignore list

How do I send the "dump.btsync.3802" file to you?

Share this post


Link to post
Share on other sites

Through the efforts of the Help Center, finally solved my problem.

 

Sync crashes because it can't get home folder in chroot-ed environment, /etc/passwd and /etc/group in particular. 
The crash is fixed. 
So far, please manually bind these to your environment as well.

 

 

Thanks for your help!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.