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

Trigger installation issues #308

Open
francisjes opened this issue Nov 28, 2016 · 6 comments
Open

Trigger installation issues #308

francisjes opened this issue Nov 28, 2016 · 6 comments

Comments

@francisjes
Copy link

i installed trigger tool in my Ubuntu PC. but after that i am not able to see the default files like settings.py netdevices.csv etc under trigger folder even i tried to copy from conf folder. but getting below message
root@PC:/usr# cd /etc/trigger/
root@PC:/etc/trigger# ls
root@PC:/etc/trigger#
root@PC:/etc/trigger# sudo cp conf/trigger_settings.py /etc/trigger/settings.py
cp: cannot stat âconf/trigger_settings.pyâ: No such file or directory
root@HPC:/etc/trigger#

please provide the complete process of installation of Trigger tools

@tcuthbert
Copy link
Contributor

Looks like something went wrong with your copy there cp: cannot stat âconf/trigger_settings.pyâ: No such file or directory

@tcuthbert
Copy link
Contributor

What's the output of?:

cat /etc/trigger/settings.py
stat /etc/trigger/settings.py

@francisjes
Copy link
Author

francisjes commented Nov 28, 2016 via email

@tcuthbert
Copy link
Contributor

What happens when you run

cd /etc/trigger
sudo touch afile
ls

@francisjes
Copy link
Author

francisjes commented Nov 28, 2016 via email

@tcuthbert
Copy link
Contributor

OK. As there is an issue with cp we could try two things:

  1. from /etc/trigger do the following touch settings.py then cut and paste the contents of trigger_settings.py into settings.py and save.

  2. set your TRIGGER_SETTINGS environment variable to an alternate location. You could test this like so:

export TRIGGER_SETTINGS=conf/trigger_settings.py

I just noticed something. Did you clone/copy the trigger repo into /etc/trigger/ ? If so dont' do that, clone it to something like ~/.local/src/trigger, /srv/trigger, /opt/trigger or /usr/local/src/trigger and set yourself as the owner with chown.

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