Skip to content

Commit 5d6b08a

Browse files
committed
Add troubleshooting topic to documentation
1 parent a766a3a commit 5d6b08a

File tree

3 files changed

+86
-0
lines changed

3 files changed

+86
-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,74 @@
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. Uninstall Java, then install a different version of Java.
74+

0 commit comments

Comments
 (0)