• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Forwarded to devs NodeJS Application logs are broken

macmee

New Pleskian
Username:

TITLE


NodeJS Application logs are completely broken

PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE

Plesk Obsidian 18.0.48, Ubuntu 22.04.1

PROBLEM DESCRIPTION

Application logs for nodejs do not work:


This is a known and wide spread issue and has been for most of this year.

STEPS TO REPRODUCE

1. add the nodejs extension to plesk
2. create a nodejs app
3. go into the log viewer and select node
4. observe there are no logs *at all*
5. go to manage log files and select passenger.log
6. observe there are no logs from application
7. ssh into the machine and look at the /var/log folders for httpd, nginx and apache2
8. observe that neither error.log or access.log or in fact any files in any folders contain nodejs application logs

ACTUAL RESULT

no logs are displayed

EXPECTED RESULT

we would expect there to be logs from the nodejs application being run via passenger

ANY ADDITIONAL INFORMATION

I love plesk, I hope you folks fix this up!

YOUR EXPECTATIONS FROM PLESK SERVICE TEAM

Help with sorting out
 
Since Node.js extension version 2.1, all records are stored in the following file:

/var/log/passenger/passenger.log

Code:
# tail  /var/log/passenger/passenger.log
[ D 2022-12-07 11:50:40.0046 11270/Tb Ser/Server.h:691 ]: [ServerThr.2] Updating statistics
[ D 2022-12-07 11:50:40.0047 11183/Td Ser/Server.h:691 ]: [ApiServer] Updating statistics
[ D 2022-12-07 11:50:40.0047 11183/T8 age/Cor/Con/TurboCaching.h:246 ]: Clearing turbocache
[ D 2022-12-07 11:50:40.0047 11183/T8 Ser/Server.h:691 ]: [ServerThr.1] Updating statistics
[ D 2022-12-07 11:50:40.0047 11164/T5 Ser/Server.h:691 ]: [WatchdogApiServer] Updating statistics
[ D 2022-12-07 11:50:40.0047 11183/Ta age/Cor/Con/TurboCaching.h:246 ]: Clearing turbocache
[ D 2022-12-07 11:50:40.0047 11183/Ta Ser/Server.h:691 ]: [ServerThr.2] Updating statistics
[ D 2022-12-07 11:50:40.0048 11267/T6 Ser/Server.h:691 ]: [WatchdogApiServer] Updating statistics
[ D 2022-12-07 11:50:40.0067 11270/T3 age/Cor/App/Poo/AnalyticsCollection.cpp:151 ]: Collecting system metrics
[ D 2022-12-07 11:50:40.0069 11270/T3 age/Cor/App/Poo/AnalyticsCollection.cpp:69 ]: Analytics collection done; next analytics collection in 4.993 sec

Domains > example.com > Logs shows them:

Screenshot 2022-12-07 at 12.50.05.png

Make sure that you are using the latest NodeJS extension version: 2.2.1.

 
Since Node.js extension version 2.1, all records are stored in the following file:

/var/log/passenger/passenger.log

Code:
# tail  /var/log/passenger/passenger.log
[ D 2022-12-07 11:50:40.0046 11270/Tb Ser/Server.h:691 ]: [ServerThr.2] Updating statistics
[ D 2022-12-07 11:50:40.0047 11183/Td Ser/Server.h:691 ]: [ApiServer] Updating statistics
[ D 2022-12-07 11:50:40.0047 11183/T8 age/Cor/Con/TurboCaching.h:246 ]: Clearing turbocache
[ D 2022-12-07 11:50:40.0047 11183/T8 Ser/Server.h:691 ]: [ServerThr.1] Updating statistics
[ D 2022-12-07 11:50:40.0047 11164/T5 Ser/Server.h:691 ]: [WatchdogApiServer] Updating statistics
[ D 2022-12-07 11:50:40.0047 11183/Ta age/Cor/Con/TurboCaching.h:246 ]: Clearing turbocache
[ D 2022-12-07 11:50:40.0047 11183/Ta Ser/Server.h:691 ]: [ServerThr.2] Updating statistics
[ D 2022-12-07 11:50:40.0048 11267/T6 Ser/Server.h:691 ]: [WatchdogApiServer] Updating statistics
[ D 2022-12-07 11:50:40.0067 11270/T3 age/Cor/App/Poo/AnalyticsCollection.cpp:151 ]: Collecting system metrics
[ D 2022-12-07 11:50:40.0069 11270/T3 age/Cor/App/Poo/AnalyticsCollection.cpp:69 ]: Analytics collection done; next analytics collection in 4.993 sec

Domains > example.com > Logs shows them:

View attachment 22075

Make sure that you are using the latest NodeJS extension version: 2.2.1.

My passenger.log file only contains those updating statistics logs and does not contain any logs from my node application.

Also in the log viewer in plesk, selecting node in the drop-down shows nothing for me and the other users with this problem from the link in my initial post above
 
>> My passenger.log file only contains those updating statistics logs and does not contain any logs from my node application.

Same issue with Node.js Toolkit ( Version: 2.3.1-279 ).

Please fix asap.
 
Back
Top