AnoopAlias / AUTOM8N

AUTOM8N is a WHM/cPanel plugin providing a DNS load-balanced, high available, horizontally scaling webstack and offering active-active-redundancy-high-availability-and-native-nginx-on-cpanel
https://autom8n.com/
GNU General Public License v3.0
107 stars 53 forks source link

AttributeError: 'NoneType' object has no attribute 'split' #228

Closed maateen closed 7 years ago

maateen commented 7 years ago

When I run /opt/nDeploy/scripts/cpanel-nDeploy-setup.sh enable on my server, I get:

Traceback (most recent call last):
  File "/opt/nDeploy/scripts/generate_config.py", line 706, in <module>
    nginx_confgen(is_suspended, myowner, clusterenabled, *cluster_serverlist, configuser=cpaneluser, configdomain=main_domain, maindomain=main_domain)  # Generate conf for main domain
  File "/opt/nDeploy/scripts/generate_config.py", line 519, in nginx_confgen
    app_template = templateEnv.get_template(apptemplate_code)
  File "/usr/lib64/python2.6/site-packages/jinja2/environment.py", line 552, in get_template
    template = self.loader.load(self, name, self.make_globals(globals))
  File "/usr/lib64/python2.6/site-packages/jinja2/loaders.py", line 96, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "/usr/lib64/python2.6/site-packages/jinja2/loaders.py", line 143, in get_source
    pieces = split_template_path(template)
  File "/usr/lib64/python2.6/site-packages/jinja2/loaders.py", line 25, in split_template_path
    for piece in template.split('/'):
AttributeError: 'NoneType' object has no attribute 'split'

I think it's a bug, so reporting. Please let me know if anymore information is needed.

maateen commented 7 years ago

Fix: remove all files of V3 and then try to install v4.

AnoopAlias commented 7 years ago

Yes v3 and v4 are not compatible . You need to remove /etc/nginx and /opt/nDeploy also after removing v3 and before installing v4 .