4

I installed newrelic on my OS(Ubuntu 14.04) in python3.4, then generate newrelic.ini via license key, after that I run this command:

sudo newrelic-admin run-program python backend/__main__.py

but after that i've get this error :

Traceback (most recent call last):
 File "/usr/local/bin/newrelic-admin", line 9, in <module>
 load_entry_point('newrelic==2.50.0.39', 'console_scripts', 'newrelic-admin')()
 File "/usr/local/lib/python3.4/dist-packages/newrelic-2.50.0.39/newrelic/admin/__init__.py", line 128, in main
 callback(sys.argv[2:])
 File "/usr/local/lib/python3.4/dist-packages/newrelic-2.50.0.39/newrelic/admin/run_program.py", line 96, in run_program
 os.execl(program_exe_path, *args)
 File "/usr/lib/python3.4/os.py", line 489, in execl
 execv(file, args)
PermissionError: [Errno 13] Permission denied

i've run that with sudo but it throws permission denied anyway! why this happens and how can i prevent this? any help would be appreciated.

Arash GM
  • 10,316
  • 6
  • 58
  • 76
  • It looks like, based on the stack trace, you want to change the permissions on the `run_program.py` file. – Alex W May 12 '15 at 14:33

1 Answers1

4

You have to change the permission of your bootstarp file in your project like this:

sudo chmod 755 YOUR_FILE.py
Moe Far
  • 2,742
  • 2
  • 23
  • 41