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.

4

1 回答 1

4

您必须在项目中更改 bootstarp 文件的权限,如下所示:

sudo chmod 755 YOUR_FILE.py
于 2015-05-12T14:31:44.220 回答