[edit]
Need to do some more work on this...
THIS HAS NOT WORKED - THE SCRIPT ALREADY HAD THE CORRECT LINE
When I ran the command manually from the bash console it worked fine
$ python web2py/web2py.py -S 'APP_NAME' -M -R applications/APP_NAME/private/SCRIPT_NAME.py
web2py Web Framework
Created by Massimo Di Pierro, Copyright 2007-2022
Version 2.14.6-stable+timestamp.2016.05.10.00.21.47
Database drivers available: psycopg2, pymysql, imaplib, MySQLdb, sqlite3, pg8000, pyodbc, pymongo, mysqlconnector
However the correct line was already in the script being run
It looks like the relative path reference is changed or broken... or there is a permissions issue??
[edit]
INITIAL POST...
Hopefully this helps someone else... The required image upgrade (moving from classic to glastonbury) caused an error in a scheduled script that loaded web2py and automatically ran another script (see solution below)
log output before change from classic to glastonbury
web2py Web Framework
Created by Massimo Di Pierro, Copyright 2007-2022
Version 2.14.6-stable+timestamp.2016.05.10.00.21.47
Database drivers available: psycopg2, pymysql, imaplib, MySQLdb, sqlite3, pg8000, pyodbc, pymongo, mysqlconnector
2022-10-25 09:10:29 -- Completed task, took 23.51 seconds, return code was 0.
log output after change from classic to glastonbury
web2py Web Framework
Created by Massimo Di Pierro, Copyright 2007-2022
Version 2.14.6-stable+timestamp.2016.05.10.00.21.47
Database drivers available: sqlite3, imaplib, pyodbc, pymysql, pg8000
Traceback (most recent call last):
File ".../web2py/gluon/shell.py", line 263, in run
execfile(startfile, _env)
File ".../private/pa_message_queue_processor.py", line 9, in <module>
from BeautifulSoup import BeautifulSoup
File "/home/.../web2py/gluon/custom_import.py", line 95, in custom_importer
return base_importer(pname, globals, locals, fromlist, level)
ImportError: No module named BeautifulSoup
2022-10-26 09:10:22 -- Completed task, took 14.91 seconds, return code was 0.
** I thought the solution was in updating the web2py.py path reference in the initial one line scheduled script
from: python web2py.py -S 'APP_NAME' -M -R applications/APP_NAME/private/SCRIPT_NAME.py
to: python web2py/web2py.py -S 'APP_NAME' -M -R applications/APP_NAME/private/SCRIPT_NAME.py