minor bug report

soaringeagle
@soaringeagle
6 years ago
3,304 posts
users and visitors online and visitors online are reporting the same number. users and visitors are not including logged users (or, they are being included in visitors)
either way these numbers should not be the same




--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities

updated by @soaringeagle: 05/29/18 06:09:28PM
soaringeagle
@soaringeagle
6 years ago
3,304 posts
realized its not including master admins is all


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
brian
@brian
6 years ago
10,148 posts
Not seeing any issues here. Have updated several of our hosting sites to the latest and it's all working. Note that if you have just enabled Redis it will take a bit for the sessions to be setup it Redis - it's not transferring existing (old) sessions to Redis from MySQL.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
soaringeagle
@soaringeagle
6 years ago
3,304 posts
it was before enabling redis
it just doesnt seem to include maser admins in the users and visitors


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
brian
@brian
6 years ago
10,148 posts
soaringeagle:
it was before enabling redis
it just doesnt seem to include maser admins in the users and visitors

Master admins would only be included in users - not visitors - and I don't see any issue with it here. Master admins are being included in the online user count.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
soaringeagle
@soaringeagle
6 years ago
3,304 posts
well theres 3 tiles in dashboard
users
users and visitors
visitors

master admins are included in users, but excluded from users and visitors
and ofcourse would not be counted in visitors
but since they are included in users, shouldnt they be included in users and visitors?


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
brian
@brian
6 years ago
10,148 posts
I can't replicate this here. When it comes to online users (list and counts) there is no difference between a master admin and a regular user:

1) users are any session with a user_id > 0
2) visitors are any session where user_id = 0
3) bots are any session where the user_name begins with "bot:"

It's all based on user_id - not whether a user is a master admin, admin or regular user.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
soaringeagle
@soaringeagle
6 years ago
3,304 posts
shouldnt these numbers be diferent then
counts.jpg
counts.jpg  •  20KB




--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
soaringeagle
@soaringeagle
6 years ago
3,304 posts
its actualy reading 0 bots online which i knows impossible (wish dashboard items were draggable to rearrange)


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
brian
@brian
6 years ago
10,148 posts
The User Accounts 2.3.0 module update changed how "bot sessions" are handled - by default bots no longer create sessions, since there's really no reason to waste system resources on bots. If you really want to see what bots are online, then you need to go into ACP -> Users -> Users -> "sessions" tab and check the "Enable Bot Sessions" option and save. That will re-enable sessions for bots.

This was changed because we've been seeing an increase in how "aggresive" bots are - some are hitting our JR hosting sites dozens of times a second, and they are also tweaking their agent strings and such that thousands of NEW sessions were being created pretty quickly. One site on our network had over 500,000 bot sessions in their session table which was making all session access take about 10 times as long as normal.

So turn it on if you want - I'd recommend leaving it off unless for some reason you really want to see the bots.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
soaringeagle
@soaringeagle
6 years ago
3,304 posts
i realized i didnt have redis sessions on after switching to redis (almost 48 hours ago) all users visitors and bots only say 1
can you use redis sessions on multiple sites now?


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
brian
@brian
6 years ago
10,148 posts
soaringeagle:
can you use redis sessions on multiple sites now?

Yep - click on "View Changelog": https://www.jamroom.net/the-jamroom-network/networkmarket/406/redis-cache


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
soaringeagle
@soaringeagle
6 years ago
3,304 posts
so why is it showing only 1 for everything
i click view bots and see none my sitemap crwler at least should show as a bot
also when i try reset keys from server browser (thinking that might reset sessions and get it to show right) i get an error


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
brian
@brian
6 years ago
10,148 posts
Like I posted above, I am not able to replicate your issue on any site. I have personally updated multiple sites to use the latest Redis module and do not see your issue. I assume you have enabled bot sessions?

It's not clear what you mean by "when i try reset keys from server browser (thinking that might reset sessions and get it to show right) i get an error". What does that mean? What are you clicking? What error do you get?


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
soaringeagle
@soaringeagle
6 years ago
3,304 posts
i think i understand whats going on
in user sessions a session lasts for x number of seconds or something
in redis cache a session is opened and destroyed virtually instantly and while theres almost always only 1 possibly 2 connections to redis server active
so i think the sessions are being closed faster they can be read and so only my pageload reading it and 1 "visitor" (my sitemap crawler that hits it fastest i must have changed the string from inspyder to firefox so its not being read as a bot now) are showing up

are the redis sessions that volitile that they are closed faster then they can be read as having existed?


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
brian
@brian
6 years ago
10,148 posts
No - that's not how it works.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
soaringeagle
@soaringeagle
6 years ago
3,304 posts
click this get this
redis.jpg
redis.jpg  •  50KB




--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
soaringeagle
@soaringeagle
6 years ago
3,304 posts
brian:
No - that's not how it works.

odd then
cause thats all i see is 2 sessions
tyoically max
mostly my ip for both every so often another refresh and its gone
wile anylitics clearly show a decent number of people on


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
brian
@brian
6 years ago
10,148 posts
soaringeagle:
click this get this

Update to version 1.0.2 - I just pushed that out to the marketplace. The "reset" button has been removed since it's functionality is replaced by the core Reset Caches tool.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
soaringeagle
@soaringeagle
6 years ago
3,304 posts
ok got ya
now i switch to user sessions and i see approx what i expect, i can se what visitors are on what pages bots too.. i swotch to redis.. and even after waiting 2 days i only see 1 maybe 2 on no bots (on dredlockssite i do see 1 bot maybe 2 on freedomswings)


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
brian
@brian
6 years ago
10,148 posts
I was thinking about this a bit I bet this is the reason you're only seeing 1 account online:

https://easyengine.io/tutorials/nginx/forwarding-visitors-real-ip/

You need to setup nginx to forward the real IP of the user. Let me know if that helps.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
soaringeagle
@soaringeagle
6 years ago
3,304 posts
use litespeed not nginx though it is installed as far as i know it was disabled from being used after 1st day


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
soaringeagle
@soaringeagle
6 years ago
3,304 posts
listeeed admin configuration Use Client IP in Header tur that on


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
soaringeagle
@soaringeagle
6 years ago
3,304 posts
still same issues with that on after enabling redis thugh i will give it time to see if that changes


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
brian
@brian
6 years ago
10,148 posts
It's all based on IP so if you still only see 1 user online then you need to make sure your web server is configured correctly to pass along the IP address of the browser and NOT the server. Your hosting company can help you with that or Google it.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
soaringeagle
@soaringeagle
6 years ago
3,304 posts
it does with user settings
could it be anything in redis.conf
i had to enable some memory management in there is there a setting in there it might be


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
brian
@brian
6 years ago
10,148 posts
soaringeagle:
it does with user settings
could it be anything in redis.conf
i had to enable some memory management in there is there a setting in there it might be

No - the only thing to set in there is the maxmemory value.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
soaringeagle
@soaringeagle
6 years ago
3,304 posts
also set the remove by rule
odd
caus litespeeds passing the ips through to user sessions regarless of client ip header setting
but not redis


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
brian
@brian
6 years ago
10,148 posts
The IP address does not matter to Redis - Redis does not care. PHP cares, which means your web server is not giving PHP the client IP. Contact your hosting provider and they can help. I've not seen this on any JR site, so it's something unique to your setup, so there's not much we can do on the JR end.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
soaringeagle
@soaringeagle
6 years ago
3,304 posts
ok but to help them figure it out
what is it that user sessions vs redis does diferently when requsting the ip from php


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
brian
@brian
6 years ago
10,148 posts
Redis isn't involved, so just don't worry about it. We don't test on lightspeed here, so I cannot comment on HOW to configure it, but you just need to have them make sure that the $_SERVER['REMOTE_ADDR'] value is correct. Point them to this thread - if they don't understand it then they really don't know how to admin a server.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
soaringeagle
@soaringeagle
6 years ago
3,304 posts
ok i'll point them here but not sure what you mean by "redis isnt involved" if it works under user sessions (default) but switching to redis for sessions is when i get all 1's


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
brian
@brian
6 years ago
10,148 posts
That doesn't make any sense - Redis is just "dumb storage" - the IP and key are the same whether it is MySQL or Redis.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
soaringeagle
@soaringeagle
6 years ago
3,304 posts
thats why its so confusing that simply changing the storage method changes the outout to the dashboard
including what you see when you view whos online

with the clear by options thers volitile_ttl and volitile some other 3 letters i think it uses ttl + infrequentcy of access
thats what i choose maybe the fact it has a short ttl and the sessions might have very low frequency of access and just get flushed real quickly

cant see any other reason why it would not list the same results


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities

Tags