Hi there...

Just simple JS file like this

const http = require('http');
const hostname = '194.233.77.86';
const port = 4000;
const server = http.createServer((req, res) => {
res.statusCode = 200;
 res.setHeader('Content-Type', 'text/plain');
 res.end('This is a test from nodjs app.js!\n');
});
server.listen(port, hostname, () => {
 console.log(`Server running at http://${hostname}:${port}/`);
});

and run this file with PM2 Manager in aa panel, but it's show error log like here

still not have idea, but i follow instruction from youtube -> https://www.youtube.com/watch?v=iF8Pj_kFOZ4

direction is look same as thats video.

Thanks!!

    7 days later
    11 days later

    aaPanel_Kern Hi Kern, it's whatsapp-web.js with express service ... now it's redirect to 127.0.0.1 ... when i ping , it's reply ... and im checking pm2 list, it's online..

    i'm no familiar with nodejs project in aapanel, just test on my localhost or heroku it's working, try in vpn with aapanel, not work.

    any clue kern?

      aaPanel_Kern it's show message all ready in use.

      2022-08-23T15:17:39: Port 3000 is already in use
      2022-08-23T15:17:40: Port 3000 is already in use
      2022-08-23T15:17:41: Port 3000 is already in use
      2022-08-23T15:17:43: Port 3000 is already in use
      2022-08-23T15:17:44: Port 3000 is already in use

      before that, i'm using 3000 port for gitea, but gitea has been terminated and clean. now i'm using for -nodejs.. it's mean port 3000 is used by others?

        aaPanel_Kern its just 1 line

        tcp6       0      0 :::3000                 :::*                    LISTEN      896/httpd  

        it's normal

          Connect with us: πŸ“¨ Telegram πŸ’¬ Discord Email: support@aapanel.com