question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Proxy doesn't start in Plesk

See original GitHub issue

Hello,

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:closed
  • Created 4 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
jordiweblideracommented, Oct 17, 2019

Hi @ZitRos, excuse me. I forgot to answer you. Tomorrow I’ll give you the plesk data and we’ll try to solve it.

0reactions
ZitRoscommented, Feb 11, 2020

Closed due to inactivity.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found