Deploying Presto¶
This page presents common problems encountered when deploying Presto.
Permission denied for launcher.pid¶
Problem
Running bin/launcher run or bin/launcher start returns the following error:
Permission denied: '/private/var/presto/data/var/run/launcher.pid'
Solution
Run the command as root or using sudo:
sudo bin/launcher run
sudo bin/launcher start
Xcode failed to locate Python¶
Problem
Note
macOS only
Running bin/launcher run or bin/launcher start returns the following error:
xcode select failed to locate python requesting installation of command
Solution
Create a symlink where XCode looks for python that links to python3. An example of such a command:
ln -s /Library/Developer/CommandLineTools/usr/bin/python3 /Library/Developer/CommandLineTools/usr/bin/python
JVM option ‘UseG1GC’ is experimental¶
Problem
Running bin/launcher run or bin/launcher start returns the following error:
Error: VM option 'UseG1GC' is experimental and must be enabled via -XX:+UnlockExperimentalVM Options.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Solution
This error occurs with some versions of Java.
Ensure installed Java version meets the Requirements.