Skip to content

Commit 77d55e9

Browse files
committed
Add troubleshooting topic to documentation
1 parent 7088216 commit 77d55e9

File tree

3 files changed

+91
-0
lines changed

3 files changed

+91
-0
lines changed

presto-docs/src/main/sphinx/index.rst

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ Presto Documentation
2323
router
2424
develop
2525
presto-cpp
26+
troubleshoot
2627
release
2728

2829
.. Note: If "release" is not the last item, the CSS must be updated.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
***************
2+
Troubleshooting
3+
***************
4+
5+
This section collects known problems and their identified solutions or workarounds,
6+
and are grouped by topic.
7+
8+
.. toctree::
9+
:maxdepth: 1
10+
11+
troubleshoot/deploy
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
================
2+
Deploying Presto
3+
================
4+
5+
This page presents common problems encountered when deploying Presto.
6+
7+
.. contents::
8+
:local:
9+
:backlinks: none
10+
:depth: 1
11+
12+
``Permission denied: ‘/private/var/presto/data/var/run/launcher.pid``
13+
---------------------------------------------------------------------
14+
15+
Problem
16+
^^^^^^^
17+
18+
``bin/launcher run`` or ``bin/launcher start`` returns the following error:
19+
20+
``Permission denied: ‘/private/var/presto/data/var/run/launcher.pid``
21+
22+
Solution
23+
^^^^^^^^
24+
25+
Run the command as root or using ``sudo``.
26+
27+
.. code-block:: none
28+
29+
sudo bin/launcher run
30+
sudo bin/launcher start
31+
32+
33+
``xcode select failed to locate python``
34+
----------------------------------------
35+
36+
Problem
37+
^^^^^^^
38+
39+
(OS X only) ``bin/launcher run`` or ``bin/launcher start`` returns the following error:
40+
41+
``xcode select failed to locate python requesting installation of command``
42+
43+
Solution
44+
^^^^^^^^
45+
46+
Create a symlink where XCode looks for python that links to python3. An example of such a command:
47+
48+
.. code-block:: none
49+
50+
ln -s /Library/Developer/CommandLineTools/usr/bin/python3 /Library/Developer/CommandLineTools/usr/bin/python
51+
52+
53+
54+
55+
``Error: VM option ‘UseG1GC’ is experimental``
56+
----------------------------------------------
57+
58+
Problem
59+
^^^^^^^
60+
``bin/launcher run`` or ``bin/launcher start`` returns the following error:
61+
62+
.. code-block:: none
63+
64+
Error: VM option ‘UseG1GC’ is experimental and must be enabled via -XX:+UnlockExperimentalVM Options.
65+
66+
Error: Could not create the Java Virtual Machine.
67+
68+
Error: A fatal exception has occurred. Program will exit.
69+
70+
Solution
71+
^^^^^^^^
72+
73+
This error occurs with some versions of Java.
74+
75+
1. Check the version of Java that is installed on the system.
76+
77+
2. If the installed version of Java is not the version in
78+
`Requirements <https://github.com/prestodb/presto?tab=readme-ov-file#requirements>`_,
79+
then uninstall Java and install a recommended version.

0 commit comments

Comments
 (0)