Random Crashes On Pi


mintwurm

Recommended Posts

I'm using a raspberry pi as a server for sync.
The pi itself is quite stable. It has been running for over a month without a crash. Each midnight a cronjob reboots the system and that never failed. Upon restart, another cronjob starts btsync. But sometimes in the evening the pi would vanish from the list of peers. Now the issue has become so annoying that I checked the logs. Here is the error message:

DNBA5BM4RYHCNN6A]: error: CheckOriginalFile: No such file or directory (2)
[20160126 21:25:15.411] TF[A219] [0x6f1aaa30][/home/pi/programs/sync/.sync/.SyncUserxxxxxxxx/devices/xxxxxxxxx/info.dat]: error: CheckOriginalFile: No such file or directory (2)
[20160126 21:25:15.411] TF[A219] [0x709f5740][/home/pi/programs/sync/.sync/.SyncUserxxxxxxxx/identities/xxxxxxxxx]: error: CheckOriginalFile: No such file or directory (2)
[20160126 21:47:26.990] UPnP: Device error "http://xxx.xxx.xxx.x:49000/MediaServerDevDesc.xml": (-2)
[20160126 21:47:26.993] UPnP: Device error "http://xxx.xxx.xxx.x:49000/l2tpv3.xml": (-2)
[20160126 21:47:27.008] UPnP: ERROR mapping TCP port 11792 -> 192.168.178.158:11792. Deleting mapping and trying again: (403) Unknown result code (UPnP protocol violation?)
[20160126 21:47:27.016] UPnP: ERROR removing TCP port 11792: (403) Unknown result code (UPnP protocol violation?)
[20160126 21:47:27.025] UPnP: ERROR mapping TCP port 11792 -> 192.168.178.158:11792: (403) Unknown result code (UPnP protocol violation?)
[20160126 21:47:27.658] UPnP: Device error "http://xxx.xxx.xxx.xx/DEVICE/PRINTER1.XML": (-2)
[20160126 21:47:27.856] UPnP: Device error "http://xxx.xxx.xxx.xx/DEVICE/DPSIPPRINTER.XML": (-2)
[20160126 22:01:27.852] assert failed /opt/sync/bencoding.cpp:1389


Can you read this ? Is this a problem with sync or with the pi ?

Link to comment
Share on other sites

I changed the port (of the webui) , so far there was no crash, but the log still contains lots of error messages:


[20160130 10:40:24.027] UPnP: Device error "http://<ip>1:49000/MediaServerDevDesc.xml": (-2) 
[20160130 10:40:24.028] UPnP: Device error "http://<ip>.1:49000/l2tpv3.xml": (-2) 
[20160130 10:40:24.041] UPnP: ERROR mapping TCP port 11792 -> <ip>:11792. Deleting mapping and trying again: (403) Unknown result code (UPnP protocol violation?)
[20160130 10:40:24.046] UPnP: ERROR removing TCP port 11792: (403) Unknown result code (UPnP protocol violation?)
[20160130 10:40:24.052] UPnP: ERROR mapping TCP port 11792 -> <ip>:11792: (403) Unknown result code (UPnP protocol violation?)
[20160130 10:40:24.604] UPnP: Device error "http://<ip>/DEVICE/PRINTER1.XML": (-2) 
[20160130 10:40:24.803] UPnP: Device error "http://<ip>/DEVICE/DPSIPPRINTER.XML": (-2)

 

this error occurs at 10:40, 10:20, 9:20, 8:30

I changed the listening port of the web-ui but that doesn't affect the ports btsync uses for transfer, does it ? I know that in the config file you can specify other ports but I'm not running btsync with a config and have made the experience that connecting an existing, already configured, sync instance with a config file will prompt you to create a new id and deletes existing shares.

 

therefore three new questions: Can I dump not a sample config but instead the current config. Can I start btsync with a config file without deleting my id ? Can I change the listening port without a config file.

Link to comment
Share on other sites

The "Unknown result code (UPnP protocol violation?)" message whilst trying to map a port would indicate an issue with your router.

I'd suggest manually opening a port on your router for Sync to use, and then specify this port in sync's configuration file (rather than using uPnP to automatically open/map a port on your router). i.e. set "use_upnp" to "false", and "listening_port" to the port number you've manually opened on your router.
 

Link to comment
Share on other sites

Thanks for the quick answer.

I know how to open ports on my router.

But the only workflow I know to get them configured into sync is this :

  1. dump sample config
  2. adapt sample config
  3. start sync with --config flag and path to config file

In the past this has caused sync to prompt me for a new identity and to delete previous settings. That would be fatal.

Is there a way to export the current config, adapt the port without a config file or register a config file without deleting my previous settings ?

 

And do you have news on the error that lead to an actual crash ? The failed assert in the first log ?

Link to comment
Share on other sites

mintwurm,

That is not a critical error and shall not the the cause of the crash. 

Can you please submit the full log, and crash dump to support? Thanks. See if you already have any dmp files in storage (near the logs). thanks. 

 

On 1/30/2016 at 2:51 PM, mintwurm said:

Is there a way to export the current config, adapt the port without a config file or register a config file without deleting my previous settings ?

Yes, you can use config and there point Sync to your current "storage" ("storage_path"), but if you're not sure, don't use config. 

Link to comment
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.