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

config files could not read in scan #20

Open
Vasanth3g opened this issue Oct 17, 2018 · 3 comments
Open

config files could not read in scan #20

Vasanth3g opened this issue Oct 17, 2018 · 3 comments
Assignees

Comments

@Vasanth3g
Copy link

Error in config file - cache not found: [Errno 20] Not a directory: '/opt/trafficserver/etc/trafficserver/storage.config/records.config'
Choose an option (or option number)

[1] Read Storage config

(option, or use ^C or ^D to quit):
@ocket8888
Copy link
Collaborator

Can you paste the output of sudo scan --tgm --debug -D -c /opt/trafficserver/etc/trafficserver/ ?

@Vasanth3g
Copy link
Author

Vasanth3g commented Oct 18, 2018

DEBUG: 'utils' module: Loaded
DEBUG: 		POINTER_SIZE: 8
DEBUG: 'directory' module: Loaded
DEBUG: 		DirEntry size: 10
DEBUG: 		Doc size: 72
DEBUG: 'stripe' module: Loaded
DEBUG: 		Span Block Header size: 24
DEBUG: 		Stripe (metadata) size: 72
DEBUG: 'span' module: Loaded
DEBUG: 		DiskHeader size: 32
DEBUG: 'config' module: Loaded
DEBUG: main: Starting scan version 3.3.6 with args: Namespace(config_dir='/opt/trafficserver/etc/trafficserver/storage.config', debug=True, dump=False, dump_breakdown=None, fips=False, loadavg=None, tgm=True, version=False)
DEBUG: config.init: reading configuration files from /opt/trafficserver/etc/trafficserver/storage.config/
DEBUG: readRecordConfig: opening file /opt/trafficserver/etc/trafficserver/storage.config/records.config for reading
DEBUG: Traceback (most recent call last):
DEBUG:	  File "/usr/lib/python3.6/site-packages/scan/__init__.py", line 181, in main
DEBUG:	    config.init(confDir)
DEBUG:	  File "/usr/lib/python3.6/site-packages/scan/config.py", line 179, in init
DEBUG:	    num = readRecordConfig()
DEBUG:	  File "/usr/lib/python3.6/site-packages/scan/config.py", line 254, in readRecordConfig
DEBUG:	    with open(fname) as file:
DEBUG:	NotADirectoryError: [Errno 20] Not a directory: '/opt/trafficserver/etc/trafficserver/storage.config/records.config'
DEBUG:	
Unable to scan cache: '[Errno 20] Not a directory: '/opt/trafficserver/etc/trafficserver/storage.config/records.config''

@ocket8888
Copy link
Collaborator

It appears that you gave it a path to the actual storage.config file. What you should do is give it the path to the directory that contains your storage.config, records.config etc. In this case it looks like that's /opt/trafficserver/etc/trafficserver/.

@ocket8888 ocket8888 self-assigned this Oct 23, 2018
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