• Hi, Pleskians! We are running a UX testing of our upcoming product intended for server management and monitoring.
    We would like to invite you to have a call with us and have some fun checking our prototype. The agenda is pretty simple - we bring new design and some scenarios that you need to walk through and succeed. We will be watching and taking insights for further development of the design.
    If you would like to participate, please use this link to book a meeting. We will sent the link to the clickable prototype at the meeting.
  • (Plesk for Windows):
    MySQL Connector/ODBC 3.51, 5.1, and 5.3 are no longer shipped with Plesk because they have reached end of life. MariaDB Connector/ODBC 64-bit 3.2.4 is now used instead.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.

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