Proxy doesn't start in Plesk
See original GitHub issueHello,
I’m trying to configure the proxy in Plesk according to this guide: https://docs.plesk.com/en-US/onyx/customer-guide/nodejs-support.76652/, but it tells me that there is no app.js file. Here I tried to put it pointing to src/api.js, but it doesn’t work.
If I’m going to execute script and run “start”, I get the following error:
> google-tag-manager-proxy@1.0.0 start /var/www/vhosts/domain.com/gtm.domain.com
> node -r esm src/api.js
npm WARN lifecycle The node binary used for scripts is /usr/bin/node but npm is using /opt/plesk/node/8/bin/node itself. Use the `--scripts-prepend-node-path` option to include the path for the node binary npm was executed with.
/var/www/vhosts/domain.com/gtm.domain.com/src/api.js:18
export async function init () {
SyntaxError: Unexpected token function
at Object.Module._extensions..js (module.js:586:10)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! google-tag-manager-proxy@1.0.0 start: `node -r esm src/api.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the google-tag-manager-proxy@1.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! [/var/www/vhosts/domain.com/.npm/_logs/2019-09-05T10_03_59_393Z-debug.log]
I attach the generated log: 2019-09-05T10_03_59_393Z-debug.log
Regards, Jordi
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Resolved - Nginx error failed - Can not start proxy server
Hello, I have a recurring malfunction of Nginx on several of my production servers. After installation of Plesk Onyx v17.0.17 on Debian 8.7 ......
Read more >Unable to start or enable nginx as proxy on Plesk server: 99
Log in to Plesk. Go to Tools & Settings > IP Addresses and remove the affected IP address if it is still present...
Read more >Unable to start or enable nginx as proxy on Plesk server: 99
Go to Tools & Settings > IP Addresses and remove the affected IP address if it is still present there. Via the SSH,...
Read more >Unable to repair web server configuration: Can not reload ...
Cause. nginx installation is corrupted. Resolution. Reinstall nginx reverse proxy: Connect to a Plesk server via SSH.
Read more >Unable to manage service by nginxmng - Plesk Support
Connect to the Plesk server via SSH. Re-enable Plesk nginx proxy using these commands: # /usr/local/psa/admin/bin/nginxmng - ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @ZitRos, excuse me. I forgot to answer you. Tomorrow I’ll give you the plesk data and we’ll try to solve it.
Closed due to inactivity.