Я пытаюсь установить Etherpad в Raspberry Pi 3 Model B Plus с Raspbian GNU / Linux 10 (бастер).
Я слежу за установкой из https://github.com/ether/etherpad-lite, но при запускеbin/run.sh
Я получаю Maximum call stack size exceeded
ошибку:
pi@raspberrypi:~/etherpad-lite $ bin/run.sh
Ensure that all dependencies are up to date... If this is the first time you have run Etherpad please be patient.
audited 13513 packages in 23.203s
found 25 vulnerabilities (2 low, 23 high)
run `npm audit fix` to fix them, or `npm audit` for details
Clearing minified cache...
Started Etherpad...
[2019-10-29 09:52:27.967] [DEBUG] console - Running on Node v13.0.1 (minimum required Node version: 8.9.0)
[2019-10-29 09:52:28.668] [INFO] console - All relative paths will be interpreted relative to the identified Etherpad base dir: /home/pi/etherpad-lite
[2019-10-29 09:52:28.671] [DEBUG] AbsolutePaths - Relative path "settings.json" can be rewritten to "/home/pi/etherpad-lite/settings.json"
[2019-10-29 09:52:28.672] [DEBUG] AbsolutePaths - Relative path "credentials.json" can be rewritten to "/home/pi/etherpad-lite/credentials.json"
[2019-10-29 09:52:28.714] [INFO] console - settings loaded from: /home/pi/etherpad-lite/settings.json
[2019-10-29 09:52:28.716] [INFO] console - No credentials file found in /home/pi/etherpad-lite/credentials.json. Ignoring.
[2019-10-29 09:52:28.720] [INFO] console - Using skin "no-skin" in dir: /home/pi/etherpad-lite/src/static/skins/no-skin
[2019-10-29 09:52:28.722] [INFO] console - Session key loaded from: /home/pi/etherpad-lite/SESSIONKEY.txt
[2019-10-29 09:52:28.722] [WARN] console - DirtyDB is used. This is fine for testing but not recommended for production. File location: /home/pi/etherpad-lite/var/dirty.db
[2019-10-29 09:52:28.843] [ERROR] console - exception thrown: Maximum call stack size exceeded
[2019-10-29 09:52:28.845] [INFO] console - RangeError: Maximum call stack size exceeded
at ReadStream (/home/pi/etherpad-lite/src/node_modules/graceful-fs/graceful-fs.js:193:23)
at ReadStream (/home/pi/etherpad-lite/src/node_modules/graceful-fs/graceful-fs.js:195:28)
at ReadStream (/home/pi/etherpad-lite/src/node_modules/graceful-fs/graceful-fs.js:195:28)
at ReadStream (/home/pi/etherpad-lite/src/node_modules/graceful-fs/graceful-fs.js:195:28)
at ReadStream (/home/pi/etherpad-lite/src/node_modules/graceful-fs/graceful-fs.js:195:28)
at ReadStream (/home/pi/etherpad-lite/src/node_modules/graceful-fs/graceful-fs.js:195:28)
at ReadStream (/home/pi/etherpad-lite/src/node_modules/graceful-fs/graceful-fs.js:195:28)
at ReadStream (/home/pi/etherpad-lite/src/node_modules/graceful-fs/graceful-fs.js:195:28)
at ReadStream (/home/pi/etherpad-lite/src/node_modules/graceful-fs/graceful-fs.js:195:28)
at ReadStream (/home/pi/etherpad-lite/src/node_modules/graceful-fs/graceful-fs.js:195:28)
Когда я пытаюсь использовать mysql
dbtype вместо dirty
, я получаю:
pi@raspberrypi:~/etherpad-lite $ bin/run.sh
Ensure that all dependencies are up to date... If this is the first time you have run Etherpad please be patient.
audited 13513 packages in 22.859s
found 25 vulnerabilities (2 low, 23 high)
run `npm audit fix` to fix them, or `npm audit` for details
Clearing minified cache...
Started Etherpad...
[2019-10-29 09:55:06.837] [DEBUG] console - Running on Node v13.0.1 (minimum required Node version: 8.9.0)
[2019-10-29 09:55:07.529] [INFO] console - All relative paths will be interpreted relative to the identified Etherpad base dir: /home/pi/etherpad-lite
[2019-10-29 09:55:07.532] [DEBUG] AbsolutePaths - Relative path "settings.json" can be rewritten to "/home/pi/etherpad-lite/settings.json"
[2019-10-29 09:55:07.533] [DEBUG] AbsolutePaths - Relative path "credentials.json" can be rewritten to "/home/pi/etherpad-lite/credentials.json"
[2019-10-29 09:55:07.578] [INFO] console - settings loaded from: /home/pi/etherpad-lite/settings.json
[2019-10-29 09:55:07.581] [INFO] console - No credentials file found in /home/pi/etherpad-lite/credentials.json. Ignoring.
[2019-10-29 09:55:07.585] [INFO] console - Using skin "no-skin" in dir: /home/pi/etherpad-lite/src/static/skins/no-skin
[2019-10-29 09:55:07.587] [INFO] console - Session key loaded from: /home/pi/etherpad-lite/SESSIONKEY.txt
[2019-10-29 09:55:08.037] [ERROR] console - (node:2230) [DEP0126] DeprecationWarning: timers.active() is deprecated. Please use timeout.refresh() instead.
[2019-10-29 09:55:08.050] [ERROR] console - (node:2230) [DEP0096] DeprecationWarning: timers.unenroll() is deprecated. Please use clearTimeout instead.
[2019-10-29 09:55:11.352] [INFO] APIHandler - Api key file "/home/pi/etherpad-lite/APIKEY.txt" not found. Creating with random contents.
[2019-10-29 09:55:12.677] [INFO] console - Installed plugins:
[2019-10-29 09:55:12.686] [INFO] console - Report bugs at https://github.com/ether/etherpad-lite/issues
[2019-10-29 09:55:12.695] [INFO] console - Your Etherpad version is 1.8.0 (d967914)
[2019-10-29 09:55:13.342] [INFO] console - You can access your Etherpad instance at http://0.0.0.0:9001/
[2019-10-29 09:55:13.343] [WARN] console - Admin username and password not set in settings.json. To access admin please uncomment and edit 'users' in settings.json
[2019-10-29 09:55:13.344] [WARN] console - Etherpad is running in Development mode. This mode is slower for users and less secure than production mode. You should set the NODE_ENV environment variable to production by using: export NODE_ENV=production
и как толькоЯ перехожу к IP-порту Raspberry Pi 9001 для доступа к Etherpad (я вижу домашнюю страницу Etherpad). Я получаю ту же ошибку:
[2019-10-29 09:56:26.873] [INFO] ueberDB - Flushed 1 values
[2019-10-29 09:56:28.328] [INFO] ueberDB - Flushed 1 values
[2019-10-29 09:56:28.433] [INFO] ueberDB - Flushed 1 values
[2019-10-29 09:56:28.535] [ERROR] console - RangeError: Maximum call stack size exceeded
at Function.[Symbol.hasInstance] (<anonymous>)
at ReadStream (/home/pi/etherpad-lite/src/node_modules/graceful-fs/graceful-fs.js:194:14)
at ReadStream (/home/pi/etherpad-lite/src/node_modules/graceful-fs/graceful-fs.js:195:28)
at ReadStream (/home/pi/etherpad-lite/src/node_modules/graceful-fs/graceful-fs.js:195:28)
at ReadStream (/home/pi/etherpad-lite/src/node_modules/graceful-fs/graceful-fs.js:195:28)
at ReadStream (/home/pi/etherpad-lite/src/node_modules/graceful-fs/graceful-fs.js:195:28)
at ReadStream (/home/pi/etherpad-lite/src/node_modules/graceful-fs/graceful-fs.js:195:28)
at ReadStream (/home/pi/etherpad-lite/src/node_modules/graceful-fs/graceful-fs.js:195:28)
at ReadStream (/home/pi/etherpad-lite/src/node_modules/graceful-fs/graceful-fs.js:195:28)
at ReadStream (/home/pi/etherpad-lite/src/node_modules/graceful-fs/graceful-fs.js:195:28)
[2019-10-29 09:56:28.536] [INFO] console - graceful shutdown...
[2019-10-29 09:56:28.539] [INFO] console - db sucessfully closed.
Я обнаружил некоторые связанные проблемы:
но в моем случае я даже не могу использовать Etherpad. Я попытался увеличить максимальный размер стека вызовов после этого поста: Как мне увеличить максимальный размер стека вызовов в Node.js , но я могу сделать это неправильно, поскольку это ничего не меняет.
РЕДАКТИРОВАТЬ: Когда я редактирую bin/run.sh
и изменяю размер стека, например, на 8192, я получаю ошибку ошибки сегментации
Есть идеи? Спасибо!
Информация об uname, npm и nodejs:
uname -a
Linux raspberrypi 4.19.75-v7+ #1270 SMP Tue Sep 24 18:45:11 BST 2019 armv7l GNU/Linux
npm --version
6.12.0
node --version
v13.0.1