Jump to content

[Solved] Tommy - Nodesjs + Puppeteer - Error "Incomplete response received from application"


Recommended Posts

Posted (edited)

Hi there!

 

I've done a test on tommy using nodejs + puppeteer node module to test if I can run my app there. The app.js just contains the basic code to start de webserver (which works) and launch a puppeteer instance. 

When I open the url, I receive this message "Incomplete response received from application". If I remove the puppeteer launch code, It works and start the webserver then I can see my test output.

 

I've uploaded the linux node_modules package to my folder that contains all modules I use in my app. These modules I've downloaded from linux mint distribution via npm. Since I'm not a linux user and my knownledge about linux env is very limited, I haven't' sure if the modules are correct to run on Tommy server... 

 

Please, could you help me to see what's going on?

 

Thanks!

app.txt

Edited by paladino
Posted

App 81140 output: Server running at http://127.0.0.1:3000/
App 81140 output: events.js:174
App 81140 output: throw er; // Unhandled 'error' event
App 81140 output: ^
App 81140 output: Error: spawn /home/paladino/node/fii/node_modules/puppeteer/.local-chromium/linux-722234/chrome-linux/chrome EACCES
App 81140 output: at Process.ChildProcess._handle.onexit (internal/child_process.js:240:19)
App 81140 output: at onErrorNT (internal/child_process.js:415:16)
App 81140 output: at process._tickCallback (internal/process/next_tick.js:63:19)
App 81140 output: Emitted 'error' event at:
App 81140 output: at Process.ChildProcess._handle.onexit (internal/child_process.js:246:12)
App 81140 output: at onErrorNT (internal/child_process.js:415:16)
App 81140 output: at process._tickCallback (internal/process/next_tick.js:63:19)
[ W 2020-03-28 22:00:13.0468 70966/Tl age/Cor/Con/InternalUtils.cpp:96 ]: [Client 8-12] Sending 502 response: application did not send a complete response
[ N 2020-03-28 22:00:13.2472 70966/T7 age/Cor/CoreMain.cpp:1117 ]: Checking whether to disconnect long-running connections for process 81140, application paladino - FII - Carga
App 86544 output: Server running at http://127.0.0.1:3000/
App 86544 output: events.js:174
App 86544 output: throw er; // Unhandled 'error' event
App 86544 output: ^
App 86544 output: Error: spawn /home/paladino/node/fii/node_modules/puppeteer/.local-chromium/linux-722234/chrome-linux/chrome EACCES
App 86544 output: at Process.ChildProcess._handle.onexit (internal/child_process.js:240:19)
App 86544 output: at onErrorNT (internal/child_process.js:415:16)
App 86544 output: at process._tickCallback (internal/process/next_tick.js:63:19)
App 86544 output: Emitted 'error' event at:
App 86544 output: at Process.ChildProcess._handle.onexit (internal/child_process.js:246:12)
App 86544 output: at onErrorNT (internal/child_process.js:415:16)
App 86544 output: at process._tickCallback (internal/process/next_tick.js:63:19)
[ W 2020-03-28 22:00:13.8005 70966/T7 age/Cor/Con/InternalUtils.cpp:96 ]: [Client 1-13] Sending 502 response: application did not send a complete response
[ W 2020-03-28 22:00:15.1355 70966/T3 age/Cor/App/Poo/AnalyticsCollection.cpp:102 ]: Process (pid=86544, group=paladino - FII - Carga) no longer exists! Detaching it from the pool.
[ N 2020-03-28 22:00:15.1356 70966/T3 age/Cor/CoreMain.cpp:1117 ]: Checking whether to disconnect long-running connections for process 86544, application paladino - FII - Carga
Posted (edited)

Thanks for the info.

.

I give some google and found that it could be permission to the chromium folder. I managed to change it to 777, now the error appears after 1 minute. I believe that's other problem now...

 

One more thing: could you verify if theses libs are installed?

 

pango.x86_64

libXcomposite.x86_64

libXcursor.x86_64

libXdamage.x86_64

libXext.x86_64

libXi.x86_64

libXtst.x86_64

cups-libs.x86_64

libXScrnSaver.x86_64

libXrandr.x86_64

GConf2.x86_64

alsa-lib.x86_64

atk.x86_64

gtk3.x86_64

ipa-gothic-fonts

xorg-x11-fonts-100dpi

xorg-x11-fonts-75dpi

xorg-x11-utils

xorg-x11-fonts-cyrillic

xorg-x11-fonts-Type1

xorg-x11-fonts-misc

 

Finally, please, could you check the logs again?

 

Thanks!

Edited by paladino
Posted

Xorg is a desktop, and you also listed a screensaver. Tommy is a headless server so he has no need of desktops or screensavers.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...