paladino Posted March 28, 2020 Posted March 28, 2020 (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 March 28, 2020 by paladino
paladino Posted March 28, 2020 Author Posted March 28, 2020 Hi, The url is: http://rpaladino.heliohost.org/fii The node app just try to launch the puppeteer module and this error pop up. Without the puppeter launch, it works. Thanks!
Krydos Posted March 28, 2020 Posted March 28, 2020 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
paladino Posted March 29, 2020 Author Posted March 29, 2020 (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_64libXcomposite.x86_64libXcursor.x86_64libXdamage.x86_64libXext.x86_64libXi.x86_64libXtst.x86_64cups-libs.x86_64libXScrnSaver.x86_64libXrandr.x86_64GConf2.x86_64alsa-lib.x86_64atk.x86_64gtk3.x86_64ipa-gothic-fontsxorg-x11-fonts-100dpixorg-x11-fonts-75dpixorg-x11-utilsxorg-x11-fonts-cyrillicxorg-x11-fonts-Type1xorg-x11-fonts-misc Finally, please, could you check the logs again? Thanks! Edited March 29, 2020 by paladino
Krydos Posted March 29, 2020 Posted March 29, 2020 Xorg is a desktop, and you also listed a screensaver. Tommy is a headless server so he has no need of desktops or screensavers.
paladino Posted March 29, 2020 Author Posted March 29, 2020 I understand. So that's why puppeteer will not work. Thanks!
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now