• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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