Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

eventsource problems with 1.2.1 #476

Open
shtinkov opened this issue Aug 3, 2018 · 10 comments
Open

eventsource problems with 1.2.1 #476

shtinkov opened this issue Aug 3, 2018 · 10 comments

Comments

@shtinkov
Copy link

shtinkov commented Aug 3, 2018

Hi,
I have a working eventsource configuration with nchan 1.1.15. I upgraded it to nchan 1.2.1, but it didn't worked.
I got the following error messages in error.log:
2018/08/03 08:33:45 [error] 15366#15366: MEMSTORE:01: tried adding WAITING chanhead 000055663A8162C0 /031B021C-040D-0559-B606-BE0700080009 to chanhead_gc. why?
2018/08/03 08:33:45 [error] 15366#15366: MEMSTORE:01: tried adding WAITING chanhead 000055663A7A2240 /03D502E0-045E-0500-0206-E70700080009 to chanhead_gc. why?
2018/08/03 08:33:45 [error] 15366#15366: MEMSTORE:01: tried adding WAITING chanhead 000055663A7C3E60 /9DE38514-44D5-25B2-64B6-B06EBF30BCA9 to chanhead_gc. why?
2018/08/03 08:33:45 [error] 15366#15366: MEMSTORE:01: tried adding WAITING chanhead 000055663A69FEC0 /04DBB790-6509-4167-D231-38D547E17611 to chanhead_gc. why?
2018/08/03 08:33:45 [error] 15366#15366: MEMSTORE:01: tried adding WAITING chanhead 000055663A4F7350 /ECBC7A90-B981-2CF0-1759-3497F695BB22 to chanhead_gc. why?
2018/08/03 08:33:45 [error] 15366#15366: MEMSTORE:01: tried adding WAITING chanhead 000055663ACBC7D0 /A36CE1C7-7792-1BAD-A69A-107B444B5970 to chanhead_gc. why?
2018/08/03 08:33:45 [error] 15366#15366: MEMSTORE:01: tried adding WAITING chanhead 000055663A759730 /CC8B5E10-A25A-764A-4DB5-9C5C8E85EA8A to chanhead_gc. why?
2018/08/03 08:33:45 [error] 15366#15366: MEMSTORE:01: tried adding WAITING chanhead 000055663A58A640 /8BD09163-7B05-ED58-AA16-107B4449EC37 to chanhead_gc. why?
2018/08/03 08:33:46 [error] 15366#15366: MEMSTORE:01: tried adding WAITING chanhead 000055663A54C7D0 /0DD126CD-373F-63DB-F7AC-107B444A044D to chanhead_gc. why?
2018/08/03 08:33:46 [error] 15366#15366: MEMSTORE:01: tried adding WAITING chanhead 000055663A4CBCD0 /031B021C-040D-055A-A806-D30700080009 to chanhead_gc. why?
2018/08/03 08:33:46 [error] 15366#15366: MEMSTORE:01: tried adding WAITING chanhead 000055663A84A0C0 /03D502E0-045E-0500-0106-030700080009 to chanhead_gc. why?
2018/08/03 08:33:46 [error] 15366#15366: MEMSTORE:01: tried adding WAITING chanhead 000055663A7660A0 /FC809F30-ED68-CB11-D8F6-2C4D54D043C1 to chanhead_gc. why?
2018/08/03 08:33:46 [error] 15366#15366: MEMSTORE:01: tried adding WAITING chanhead 000055663A738600 /031B021C-040D-055B-4E06-6F0700080009 to chanhead_gc. why?
2018/08/03 08:33:46 [error] 15366#15366: MEMSTORE:01: tried adding WAITING chanhead 000055663A4D95F0 /03467603-FB8D-FB29-D6FB-2C4D54D0539D to chanhead_gc. why?
2018/08/03 08:33:46 [error] 15366#15366: MEMSTORE:01: tried adding WAITING chanhead 000055663A5939C0 /CC8B5E10-A25A-764A-4DB5-F832E4BB5CC5 to chanhead_gc. why?
2018/08/03 08:33:46 [error] 15366#15366: MEMSTORE:01: tried adding WAITING chanhead 000055663A7E40C0 /CBA2EDD6-C2E5-D804-3C74-2C4D54D0491E to chanhead_gc. why?

My nginx is 1.14.0 runing on debian 9.5
Here is my nchan related configuration:

location /miner/publish {
access_log off;
nchan_channel_id $arg_channel;
nchan_message_buffer_length 200;
nchan_message_timeout 10s;
nchan_publisher;
}
location /miner/subscribe {
internal;
nchan_channel_id $arg_channel;
nchan_subscriber eventsource;
nchan_subscriber_first_message newest;
nchan_subscribe_request /miner/post_msg;
}
location = /miner/post_msg {
internal;
access_log off;
proxy_pass $scheme://127.0.0.1:$server_port/miner/publish?channel=$arg_postchannel;
proxy_cache off;
proxy_send_timeout 3s;
proxy_method POST;
proxy_set_header Accept text/json;
proxy_set_header Content-Type text/json;
proxy_set_body "{"msg":"$arg_msg","channel":"$arg_channel"}";
}

@shtinkov shtinkov changed the title evensource problems with 1.2.1 eventsource problems with 1.2.1 Aug 3, 2018
@slact
Copy link
Owner

slact commented Aug 3, 2018

Any unusual beahior aside form the errors? Any worker crashes, anything else in the error log, etc?

@shtinkov
Copy link
Author

shtinkov commented Aug 6, 2018

There are no server crashes or unexpected behavior in logs, except those messages.
By the way these messages in logs are increassing, but channels are not working

@slact
Copy link
Owner

slact commented Oct 1, 2018

Would you be able to rebuild Nchan from master and check if this issue has been fixed?

@shtinkov
Copy link
Author

shtinkov commented Oct 2, 2018

I rebuilded it with 1.2.1 from master. The issue is still not fixed here is log:
2018/10/02 08:43:44 [alert] 21322#21322: worker process 21326 exited on signal 11
2018/10/02 08:44:06 [error] 21327#21327: MEMSTORE:03: tried adding WAITING chanhead 0000556AC2595690 /1/3/0 to chanhead_gc. why?
2018/10/02 08:44:06 [error] 21327#21327: MEMSTORE:03: tried adding WAITING chanhead 0000556AC2593A80 /2/3/0 to chanhead_gc. why?
2018/10/02 08:44:06 [error] 21327#21327: MEMSTORE:03: tried adding WAITING chanhead 0000556AC25B8CC0 /3/3/0 to chanhead_gc. why?
2018/10/02 08:44:06 [error] 21327#21327: MEMSTORE:03: tried adding WAITING chanhead 0000556AC25E0860 /6/3/0 to chanhead_gc. why?
2018/10/02 08:44:12 [error] 21327#21327: MEMSTORE:03: tried adding WAITING chanhead 0000556AC2595690 /1/3/0 to chanhead_gc. why?
2018/10/02 08:44:12 [error] 21327#21327: MEMSTORE:03: tried adding WAITING chanhead 0000556AC2593A80 /2/3/0 to chanhead_gc. why?
2018/10/02 08:44:12 [error] 21327#21327: MEMSTORE:03: tried adding WAITING chanhead 0000556AC25B8CC0 /3/3/0 to chanhead_gc. why?
2018/10/02 08:44:12 [error] 21327#21327: MEMSTORE:03: tried adding WAITING chanhead 0000556AC25E0860 /6/3/0 to chanhead_gc. why?
2018/10/02 08:44:18 [error] 21327#21327: MEMSTORE:03: tried adding WAITING chanhead 0000556AC2595690 /1/3/0 to chanhead_gc. why?
2018/10/02 08:44:18 [error] 21327#21327: MEMSTORE:03: tried adding WAITING chanhead 0000556AC2593A80 /2/3/0 to chanhead_gc. why?
2018/10/02 08:44:18 [error] 21327#21327: MEMSTORE:03: tried adding WAITING chanhead 0000556AC25B8CC0 /3/3/0 to chanhead_gc. why?
2018/10/02 08:44:18 [error] 21327#21327: MEMSTORE:03: tried adding WAITING chanhead 0000556AC25E0860 /6/3/0 to chanhead_gc. why?
2018/10/02 08:44:24 [error] 21327#21327: MEMSTORE:03: tried adding WAITING chanhead 0000556AC2595690 /1/3/0 to chanhead_gc. why?
2018/10/02 08:44:24 [error] 21327#21327: MEMSTORE:03: tried adding WAITING chanhead 0000556AC2593A80 /2/3/0 to chanhead_gc. why?
2018/10/02 08:44:24 [error] 21327#21327: MEMSTORE:03: tried adding WAITING chanhead 0000556AC25B8CC0 /3/3/0 to chanhead_gc. why?
2018/10/02 08:44:24 [error] 21327#21327: MEMSTORE:03: tried adding WAITING chanhead 0000556AC25E0860 /6/3/0 to chanhead_gc. why?
2018/10/02 08:44:27 [error] 21327#21327: MEMSTORE:03: tried adding WAITING chanhead 0000556AC283D2A0 /2/19/19 to chanhead_gc. why?
2018/10/02 08:44:30 [error] 21327#21327: MEMSTORE:03: tried adding WAITING chanhead 0000556AC2595690 /1/3/0 to chanhead_gc. why?
2018/10/02 08:44:30 [error] 21327#21327: MEMSTORE:03: tried adding WAITING chanhead 0000556AC2593A80 /2/3/0 to chanhead_gc. why?
2018/10/02 08:44:30 [error] 21327#21327: MEMSTORE:03: tried adding WAITING chanhead 0000556AC25B8CC0 /3/3/0 to chanhead_gc. why?

@slact
Copy link
Owner

slact commented Oct 2, 2018

I rebuilded it with 1.2.1 from master

Sorry, that doesn't make sense. Either you built Nchan version 1.2.1 or you built it from master.

2018/10/02 08:43:44 [alert] 21322#21322: worker process 21326 exited on signal 11

This indicates there was a Nginx worker crash, and this is what I need to look at. Can you send me the coredump + nginx binary + OS version? If not, I can take a look at it on your server. Either way, email me at leo@nchan.io and we'll figure out how I can fix this bug.

@shtinkov
Copy link
Author

shtinkov commented Oct 2, 2018

You should have an email regarding all the info.

@slact
Copy link
Owner

slact commented Oct 6, 2018

@shtinkov Got your email, but I was unable to read the coredump. Any chance you could look at it on your end in GDB and give me the output of "backtrace full"?
Alternately, I can take a look at it on your server if we can set that up.

@shtinkov
Copy link
Author

shtinkov commented Oct 7, 2018 via email

@shtinkov
Copy link
Author

shtinkov commented Oct 8, 2018 via email

@slact
Copy link
Owner

slact commented Oct 9, 2018

Looking into it, I'll get back to you in a few days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants