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

Errors on two different servers #8

Open
rdetwiler opened this issue Jun 24, 2015 · 1 comment
Open

Errors on two different servers #8

rdetwiler opened this issue Jun 24, 2015 · 1 comment

Comments

@rdetwiler
Copy link

[root@mahoning ~]# python varnishtuner.py
|>> Varnish is offline! I'm beta crazy today so I'll continue...
Traceback (most recent call last):
File "varnishtuner.py", line 515, in
varnish_binpath_default = os.path.dirname(which("varnishstat")) + "/"
File "/usr/lib64/python2.6/posixpath.py", line 119, in dirname
i = p.rfind('/') + 1
AttributeError: 'NoneType' object has no attribute 'rfind'
[root@mahoning ~]#

[root@vip ~]# python varnishtuner.py
Traceback (most recent call last):
File "varnishtuner.py", line 539, in
SCI = ServerCPUInfo()
File "varnishtuner.py", line 96, in init
self.have_ht = self.haveHT()
File "varnishtuner.py", line 139, in haveHT
if self.numberHT() == self.numberCores():
File "varnishtuner.py", line 128, in numberCores
nr_cpus = self.numberCPUs()
File "varnishtuner.py", line 123, in numberCPUs
return int(cpu_d['physical id']) + 1
File "varnishtuner.py", line 61, in getitem
val = dict.getitem(self, key)
KeyError: 'physical id'
[root@vip ~]#

@unixy
Copy link
Owner

unixy commented Aug 30, 2015

Issue you're having on server 'vip' should be fixed in master now. On 'mahoning', perhaps you don't have Varnish installed or is installed in a non-shell visible location? If so, use this to tell the tuner script where to find it:

python varnishtuner.py -b /path/to/your/varnish/directory/

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