I have a selenium script that I execute in another python program. This program will only execute when I am logged into the server using ssh as root but not executable by the www-data user because it returns with the error:
selenium.common.exceptions.WebDriverException: Message: Service /usr/bin/chromedriver unexpectedly exited. Status code was: 1
I run the script using this command:
os.system('python3 /var/website/webscraping.py' + str(VARIABLE))
Any help would be appriciated!