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

New reported servers will not appear until I log out and log back in. #575

Open
Borekss opened this issue Apr 17, 2024 · 3 comments
Open

Comments

@Borekss
Copy link

Borekss commented Apr 17, 2024

Here is how to reproduce the problem:

  • install patchman client on server Y
  • run patchman-client
  • run patchman -a
  • server Y is missing from the Hosts
  • log out - log in
  • server Y is displayed

I observed the same problem when assigning all Ubuntu versions to one OS Group. Maybe all DB changes are refreshed only after new login?

@furlongm
Copy link
Owner

If you disable memcached does that help?

@Borekss
Copy link
Author

Borekss commented Apr 18, 2024

I find out that sometimes a new host is added right away and sometimes the next time I log in. I tried disabling

CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.memcached.PyMemcacheCache',
'LOCATION': '127.0.0.1:11211',
'OPTIONS': {
'ignore_exc': True,
},
}
}

and restarting apache. Nothing changed. But I found that if I add the OS to a group for example, it helps to either log out or wait a few minutes. Then the change will show up. Regardless if memcached is on or off.

@zeridon
Copy link

zeridon commented Sep 10, 2024

Caching is indeed the issue. Either disable caching configuration in local_settings.py or remove the caching related middlewares in settings.py. Probably the issue is that no propper headers are set.

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

3 participants