curusarn / resh

RESH ❯❯ Contextual shell history for zsh and bash
MIT License
1.01k stars 19 forks source link

resh-session-init ERROR: 2020/07/11 18:01:43 resh-daemon is not running - try restarting this terminal #149

Closed ruvkr closed 8 months ago

ruvkr commented 4 years ago

I get this error most of the times when opening terminal for the first time after boot. Restarting terminal works.

I ran tail -n 100 ~/.resh/daemon.log after error

1677 | 2020/07/11 10:20:29 sesshist: Adding a record, RLocking main lock ...
1677 | 2020/07/11 10:20:29 sesshist: Getting a session ...
1677 | 2020/07/11 10:20:29 sesshist: RUnlocking main lock ...
1677 | 2020/07/11 10:20:29 sesshist: RLocking session lock (w/ defer) ...
1677 | 2020/07/11 10:20:29 sesshist: record: yarn start ; added to session: 9027bd01-78f1-4d24-9bfc-1a7ecfe49318 ; session len: 500 ; session len (records): 8
1677 | 2020/07/11 11:20:42 /record -  yarn start  - part 2
1677 | 2020/07/11 11:20:44 /record -  clear  - part 1
1677 | 2020/07/11 11:20:44 sesshist: got record to add - clear
1677 | 2020/07/11 11:20:44 sesshist: Adding a record, RLocking main lock ...
1677 | 2020/07/11 11:20:44 sesshist: Getting a session ...
1677 | 2020/07/11 11:20:44 sesshist: RUnlocking main lock ...
1677 | 2020/07/11 11:20:44 sesshist: RLocking session lock (w/ defer) ...
1677 | 2020/07/11 11:20:44 sesshist: record: clear ; added to session: 9027bd01-78f1-4d24-9bfc-1a7ecfe49318 ; session len: 500 ; session len (records): 9
1677 | 2020/07/11 11:20:44 /record -  clear  - part 2
1677 | 2020/07/11 11:20:47 /record -  git remote add origin git@bitbucket.org: ***********/***************.git  - part 1
1677 | 2020/07/11 11:20:47 sesshist: got record to add - git remote add origin git@bitbucket.org: ***********/***************.git
1677 | 2020/07/11 11:20:47 sesshist: Adding a record, RLocking main lock ...
1677 | 2020/07/11 11:20:47 sesshist: Getting a session ...
1677 | 2020/07/11 11:20:47 sesshist: RUnlocking main lock ...
1677 | 2020/07/11 11:20:47 sesshist: RLocking session lock (w/ defer) ...
1677 | 2020/07/11 11:20:47 sesshist: record: git remote add origin git@bitbucket.org: ***********/***************.git ; added to session: 9027bd01-78f1-4d24-9bfc-1a7ecfe49318 ; session len: 501 ; session len (records): 10
1677 | 2020/07/11 11:20:47 /record -  git remote add origin git@bitbucket.org: ***********/***************.git  - part 2
1677 | 2020/07/11 11:20:49 /record -  clear  - part 1
1677 | 2020/07/11 11:20:49 sesshist: got record to add - clear
1677 | 2020/07/11 11:20:49 sesshist: Adding a record, RLocking main lock ...
1677 | 2020/07/11 11:20:49 sesshist: Getting a session ...
1677 | 2020/07/11 11:20:49 sesshist: RUnlocking main lock ...
1677 | 2020/07/11 11:20:49 sesshist: RLocking session lock (w/ defer) ...
1677 | 2020/07/11 11:20:49 sesshist: record: clear ; added to session: 9027bd01-78f1-4d24-9bfc-1a7ecfe49318 ; session len: 501 ; session len (records): 11
1677 | 2020/07/11 11:20:49 /record -  clear  - part 2
1677 | 2020/07/11 11:20:50 sesshist - recall: RLocking main lock ...
1677 | 2020/07/11 11:20:50 sesshist - recall: Getting session history struct ...
1677 | 2020/07/11 11:20:50 sesshist - recall: Locking session lock ...
1677 | 2020/07/11 11:20:50 sesshist - recall: Getting records by histno ...
1677 | 2020/07/11 11:20:50 /recall END - sess id: 9027bd01-78f1-4d24-9bfc-1a7ecfe49318  - histno: 1  ->  clear  (found: true )
1677 | 2020/07/11 11:20:51 sesshist - recall: RLocking main lock ...
1677 | 2020/07/11 11:20:51 sesshist - recall: Getting session history struct ...
1677 | 2020/07/11 11:20:51 sesshist - recall: Locking session lock ...
1677 | 2020/07/11 11:20:51 sesshist - recall: Getting records by histno ...
1677 | 2020/07/11 11:20:51 /recall END - sess id: 9027bd01-78f1-4d24-9bfc-1a7ecfe49318  - histno: 2  ->  git remote add origin git@bitbucket.org: ***********/***************.git  (found: true )
1677 | 2020/07/11 11:20:52 sesshist - recall: RLocking main lock ...
1677 | 2020/07/11 11:20:52 sesshist - recall: Getting session history struct ...
1677 | 2020/07/11 11:20:52 sesshist - recall: Locking session lock ...
1677 | 2020/07/11 11:20:52 sesshist - recall: Getting records by histno ...
1677 | 2020/07/11 11:20:52 /recall END - sess id: 9027bd01-78f1-4d24-9bfc-1a7ecfe49318  - histno: 3  ->  yarn start  (found: true )
1677 | 2020/07/11 11:20:53 /record -  yarn start  - part 1
1677 | 2020/07/11 11:20:53 sesshist: got record to add - yarn start
1677 | 2020/07/11 11:20:53 sesshist: Adding a record, RLocking main lock ...
1677 | 2020/07/11 11:20:53 sesshist: Getting a session ...
1677 | 2020/07/11 11:20:53 sesshist: RUnlocking main lock ...
1677 | 2020/07/11 11:20:53 sesshist: RLocking session lock (w/ defer) ...
1677 | 2020/07/11 11:20:53 sesshist: record: yarn start ; added to session: 9027bd01-78f1-4d24-9bfc-1a7ecfe49318 ; session len: 501 ; session len (records): 12
1677 | 2020/07/11 11:25:14 /record -  yarn start  - part 2
1677 | 2020/07/11 11:25:16 /record -  clear  - part 1
1677 | 2020/07/11 11:25:16 sesshist: got record to add - clear
1677 | 2020/07/11 11:25:16 sesshist: Adding a record, RLocking main lock ...
1677 | 2020/07/11 11:25:16 sesshist: Getting a session ...
1677 | 2020/07/11 11:25:16 sesshist: RUnlocking main lock ...
1677 | 2020/07/11 11:25:16 sesshist: RLocking session lock (w/ defer) ...
1677 | 2020/07/11 11:25:16 sesshist: record: clear ; added to session: 9027bd01-78f1-4d24-9bfc-1a7ecfe49318 ; session len: 501 ; session len (records): 13
1677 | 2020/07/11 11:25:16 /record -  clear  - part 2
1677 | 2020/07/11 11:25:20 /record -  yarm add   - part 1
1677 | 2020/07/11 11:25:20 sesshist: got record to add - yarm add 
1677 | 2020/07/11 11:25:20 sesshist: Adding a record, RLocking main lock ...
1677 | 2020/07/11 11:25:20 sesshist: Getting a session ...
1677 | 2020/07/11 11:25:20 sesshist: RUnlocking main lock ...
1677 | 2020/07/11 11:25:20 sesshist: RLocking session lock (w/ defer) ...
1677 | 2020/07/11 11:25:20 sesshist: record: yarm add  ; added to session: 9027bd01-78f1-4d24-9bfc-1a7ecfe49318 ; session len: 502 ; session len (records): 14
1677 | 2020/07/11 11:25:20 /record -  yarm add   - part 2
1677 | 2020/07/11 11:25:22 sesshist - recall: RLocking main lock ...
1677 | 2020/07/11 11:25:22 sesshist - recall: Getting session history struct ...
1677 | 2020/07/11 11:25:22 sesshist - recall: Locking session lock ...
1677 | 2020/07/11 11:25:22 sesshist - recall: Getting records by histno ...
1677 | 2020/07/11 11:25:22 /recall END - sess id: 9027bd01-78f1-4d24-9bfc-1a7ecfe49318  - histno: 1  ->  yarm add   (found: true )
1677 | 2020/07/11 11:25:53 /record -  yarn add redux react-redux redux-thunk  - part 1
1677 | 2020/07/11 11:25:53 sesshist: got record to add - yarn add redux react-redux redux-thunk
1677 | 2020/07/11 11:25:53 sesshist: Adding a record, RLocking main lock ...
1677 | 2020/07/11 11:25:53 sesshist: Getting a session ...
1677 | 2020/07/11 11:25:53 sesshist: RUnlocking main lock ...
1677 | 2020/07/11 11:25:53 sesshist: RLocking session lock (w/ defer) ...
1677 | 2020/07/11 11:25:53 sesshist: record: yarn add redux react-redux redux-thunk ; added to session: 9027bd01-78f1-4d24-9bfc-1a7ecfe49318 ; session len: 503 ; session len (records): 15
1677 | 2020/07/11 11:26:18 /record -  yarn add redux react-redux redux-thunk  - part 2
1677 | 2020/07/11 11:26:43 /record -  clear  - part 1
1677 | 2020/07/11 11:26:43 sesshist: got record to add - clear
1677 | 2020/07/11 11:26:43 sesshist: Adding a record, RLocking main lock ...
1677 | 2020/07/11 11:26:43 sesshist: Getting a session ...
1677 | 2020/07/11 11:26:43 sesshist: RUnlocking main lock ...
1677 | 2020/07/11 11:26:43 sesshist: RLocking session lock (w/ defer) ...
1677 | 2020/07/11 11:26:43 sesshist: record: clear ; added to session: 9027bd01-78f1-4d24-9bfc-1a7ecfe49318 ; session len: 503 ; session len (records): 16
1677 | 2020/07/11 11:26:43 /record -  clear  - part 2
1382 | 2020/07/11 18:01:43 Error while checking daemon status - it's probably not running! Get http://localhost:2627/status: dial tcp 127.0.0.1:2627: connect: connection refused
1382 | 2020/07/11 18:01:43 Error while checking if the daemon is runnnig Get http://localhost:2627/status: dial tcp 127.0.0.1:2627: connect: connection refused
1382 | 2020/07/11 18:01:43 Pidfile exists
1382 | 2020/07/11 18:01:43 1677
1382 | 2020/07/11 18:01:43 Command finished with error: exit status 1
1382 | 2020/07/11 18:01:43 Error while killing daemon exit status 1
1382 | 2020/07/11 18:01:43 histfile: Checking if resh_history is large enough ...
1382 | 2020/07/11 18:01:43 histfile: Loading resh history from file ...
1382 | 2020/07/11 18:01:44 histfile: resh history loaded - cmdLine count: 503
curusarn commented 2 years ago

Sorry for the long wait. If you can still reproduce the issue can you post the contents of this file after the issue happens: ~/.resh/daemon_last_run_out.txt?

Thank you

curusarn commented 8 months ago

Closing as stale.