Connectivity: detect when tor is executable, fails with corrupt data-dir, deletes once time #418

Open
opened 2022-04-11 15:39:05 +00:00 by dan · 0 comments
Owner

when consensus caching is enable, datadir can get corrupt and prevent starting.

if connectivity finds an executable tor, but fails to start tor, try one time reset data dir

022/03/16 15:59:53 libcwtch-go/lib.go [INFO] StartCwtch(...)
2022/03/16 15:59:53 libcwtch-go/lib.go [INFO] application: <nil> eventHandler: <nil>
2022/03/16 15:59:53 libcwtch-go/lib.go [INFO] Creating new EventHandler()
2022/03/16 15:59:53 utils/settings.go [INFO] initialized global settings file: &{/home/dan/.cwtch/dev ui.globals [66 161 149 112 4 173 215 182 23 253 37 140 136 3 210 52 115 238 104 84 20 37 94 154 123 49 244 179 213 206 203 100]}
2022/03/16 15:59:53 libcwtch-go/lib.go [INFO] Loading Cwtch Directory /home/dan/.cwtch/dev and tor path: linux/tor
2022/03/16 15:59:53 libcwtch-go/lib.go [INFO] making directory /home/dan/.cwtch/dev
2022/03/16 15:59:53 libcwtch-go/lib.go [INFO] making directory /home/dan/.cwtch/dev
2022/03/16 15:59:53 tor/torProvider.go [INFO] tor version: 0.4.2.7
2022/03/16 15:59:58 libcwtch-go/lib.go [ERR ] Error connecting to Tor replacing with ErrorACN: write tcp 127.0.0.1:48172->127.0.0.1:10295: write: connection reset by peer


2022/03/16 16:02:47 libcwtch-go/lib.go [INFO] Replacing ACN with new Tor...
2022/03/16 16:02:47 libcwtch-go/lib.go [INFO] making directory /home/dan/.cwtch/dev
2022/03/16 16:02:47 tor/torProvider.go [INFO] tor version: 0.4.2.7
2022/03/16 16:02:52 libcwtch-go/lib.go [ERR ] Error connecting to Tor replacing with ErrorACN: write tcp 127.0.0.1:58500->127.0.0.1:9715: write: connection reset by peer
2022/03/16 16:02:52 libcwtch-go/lib.go [INFO] Restarted
when consensus caching is enable, datadir can get corrupt and prevent starting. if connectivity finds an executable tor, but fails to start tor, try one time reset data dir ``` 022/03/16 15:59:53 libcwtch-go/lib.go [INFO] StartCwtch(...) 2022/03/16 15:59:53 libcwtch-go/lib.go [INFO] application: <nil> eventHandler: <nil> 2022/03/16 15:59:53 libcwtch-go/lib.go [INFO] Creating new EventHandler() 2022/03/16 15:59:53 utils/settings.go [INFO] initialized global settings file: &{/home/dan/.cwtch/dev ui.globals [66 161 149 112 4 173 215 182 23 253 37 140 136 3 210 52 115 238 104 84 20 37 94 154 123 49 244 179 213 206 203 100]} 2022/03/16 15:59:53 libcwtch-go/lib.go [INFO] Loading Cwtch Directory /home/dan/.cwtch/dev and tor path: linux/tor 2022/03/16 15:59:53 libcwtch-go/lib.go [INFO] making directory /home/dan/.cwtch/dev 2022/03/16 15:59:53 libcwtch-go/lib.go [INFO] making directory /home/dan/.cwtch/dev 2022/03/16 15:59:53 tor/torProvider.go [INFO] tor version: 0.4.2.7 2022/03/16 15:59:58 libcwtch-go/lib.go [ERR ] Error connecting to Tor replacing with ErrorACN: write tcp 127.0.0.1:48172->127.0.0.1:10295: write: connection reset by peer 2022/03/16 16:02:47 libcwtch-go/lib.go [INFO] Replacing ACN with new Tor... 2022/03/16 16:02:47 libcwtch-go/lib.go [INFO] making directory /home/dan/.cwtch/dev 2022/03/16 16:02:47 tor/torProvider.go [INFO] tor version: 0.4.2.7 2022/03/16 16:02:52 libcwtch-go/lib.go [ERR ] Error connecting to Tor replacing with ErrorACN: write tcp 127.0.0.1:58500->127.0.0.1:9715: write: connection reset by peer 2022/03/16 16:02:52 libcwtch-go/lib.go [INFO] Restarted ```
dan added the
cwtch-beta-1.8
label 2022-04-11 15:39:05 +00:00
dan added this to the Cwtch Beta (In Progress) project 2022-04-11 15:39:05 +00:00
sarah added the
backlog
label 2022-08-26 17:17:55 +00:00
sarah removed the
cwtch-beta-1.8
label 2022-11-22 21:17:32 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cwtch.im/cwtch-ui#418
No description provided.