CyberPanel Community

ClosedCannot serve ECMAScript 6/2015 for ExpressJS NodeJS app

za
zaesar #1

Hi everyone,

I am a bit confused. I haven’t made any changes on my website since December. And now suddenly I get a 404. It seems everything ok.

  1. Cloudflare DNS is pointing to my IP.
  2. My VPS server seems fine. No message error.
  3. Updated Cyberpanel
  4. Looked at the Error logs. kill the port and restarted.

Not sure what can be wrong. The only thing I see suspicious is that in website lists, my website shows Suspended. When going to “Manage” I can’t see an option where to activate it or unsuspend it.

Asked ChatGPT and has no idea.

Does anyone has an idea what can be wrong?

Appreciate your help enormous! It is crucial to restore the website

41 replies
jo
josephgodwinke #2

Welcome @zaesar Happy New Year

Go to https://SERVER_URL:8090/websites/siteState choose your website and un-suspend it.

za
zaesar #3

Thanks for your response!

I’ve done what you suggested but now I get:

Web server is down Error code 521

Visit cloudflare.com for more information.

Any suggestion of what I can do? Really appreciate your help!!

jo
josephgodwinke #4

Error 521 means that your origin server does not respond to cf requests

Change your ssl encryptions mode to Flexible on cf

Purging the cf cache might also help

za
zaesar #5

Should I do that on Cloudflare?

Thank you very much for taking your time!

jo
josephgodwinke #6

Yes cf means cloudflare. Do that on cloudflare dashboard

If all fails disable Cloudflare if possible and try again

za
zaesar #7

Yes! I’ve checked and it is already set to flexible

Any idea of what could be wrong?

Again and one hundred times. Thank you a lot!!

jo
josephgodwinke #8

Is this a wordpress site? if it is disable plugins and try again.

Also check rewrite rules/.htaccess for conflict. Use the default wordpress .htaccess

za
zaesar #9

Nope it is a React and NodeJs. Isee this message on the page: You

Browser

Working

Madrid

Cloudflare

Working

aifilms.ai

Host

Error

It looks like a Host Error

jo
josephgodwinke #10

Is your server up? reboot it and try access through ssh terminal

za
zaesar #11

Sorry how do I reboot?

jo
josephgodwinke #12

Go to dashboard of your service provider and see if you can restart the vm there. Also you can try log into ssh terminal and see if you get in. If you get to log into server using ssh run these commands and post screenshot

# ubuntu
systemctl status lscpd
systemctl status lsws

# almalinux
service lsws status
service lscpd status

post for each command

jo
josephgodwinke #15

Try disable your firewalls e,g, to disable firewalld that comes presintalled on cyberpanel

systemctl disable --now firewalld.service
firewall-cmd --state
za
zaesar #16

Ok, now they are not running but still not working the website…

:frowning:

jo
josephgodwinke #17

Restart litespeed and cyberpanel’s lscpd

systemctl restart lsws
systemctl restart lscpd
za
zaesar #18

When running: ```
systemctl restart lsws

I get:
Job for lshttpd.service failed. See "systemctl status lshttpd.service" and "journalctl -xe" for details.
za
zaesar #19

When running “systemctl status lshttpd.service” I get:

lshttpd.service - OpenLiteSpeed HTTP Server
Loaded: loaded (/usr/lib/systemd/system/lshttpd.service; enabled; vendor preset: disabled)
Drop-In: /etc/systemd/system/lshttpd.service.d
└─override.conf
Active: activating (start) since mié 2023-02-15 22:32:33 UTC; 17s ago
Control: 3748 (lswsctrl)
CGroup: /system.slice/lshttpd.service
├─3748 /bin/sh /usr/local/lsws/bin/lswsctrl start
└─3815 sleep 1

feb 15 22:32:33 aifilms-server.vps systemd[1]: lshttpd.service holdoff ti…
feb 15 22:32:33 aifilms-server.vps systemd[1]: Stopped OpenLiteSpeed HTTP…
feb 15 22:32:33 aifilms-server.vps systemd[1]: Starting OpenLiteSpeed HTT…
feb 15 22:32:34 aifilms-server.vps lswsctrl[3748]: [OK] litespeed: pid=3765.
Hint: Some lines were ellipsized, use -l to show in full.

jo
josephgodwinke #20

Run

/usr/local/lsws/bin/lswsctrl start
za
zaesar2 #22

Hi Joseph!

I’m the same person but could not reply to you anymore…

Created new account because this is super urgent and your help was super useful!

Which upgrade script should I run?

Again, thank you a lot!

jo
josephgodwinke #23

Run this

sh <(curl https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/preUpgrade.sh || wget -O - https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/preUpgrade.sh)
za
zaesar2 #24

Thanks for your response.

I’ve upgraded but when trying to reload the page: aifilms I still get “Web server is down” - Host Error

Any suggestions of the next steps?

Dr
Dreamer #26

Try disable cloudflare (cloudflare DNS settings turn cloud gray) then try reissue SSL certificate if that helps.

za
zaesar2 #28

Thank you but this doesn’t help much. Not a Pro and using ChatGPT to know what you mean. As the answer I get it would take 24 hours and from there ask for a new certificate. A bit too much for my issue I think. And as you can see on the screenshot I shared, it is not a problem from Cloudflare.It is a problem from the Host. In any case, thank you but I hope someone comes with a better response.

Dr
Dreamer #29

No you can you can do all that in couple minutes…

za
zaesar2 #30

Could you please explain me in more detailed how to do that? I’m a newbie and it is not easy for me with just some few sentences. Appreciate a lot

za
zaesar2 #32

Thanks for the links. I’ve turned gray the cloud on Cloudflare and save it. Made Issue SSL. Turned back the cloud to orange and save it.

Waited some minutes.

Still Web server down. Not sure what else I can do!
It is super frustrating

Appreciate any help!

Dr
Dreamer #33

Just keep cloud gray till you get problem solved.

za
zaesar2 #34

Have waited a couple of minutes and now this shows up:

Now even it doesn’t reach the page. I did what you suggested. Turned the cloud on Cloudflare gray from my domain. All the other DNSs I keep without touching. Would like to show a screenshot but just can show one per reply. And soon I will not be able to reply anymore here. If you could send me a link where we could keep talking in case it doesn’t work and I can’t reply anymore. Would be super important to me. Because I have nobody that can help me with this.

Appreciate

Dr
Dreamer #35

Anything on logs?

Dr
Dreamer #38

If you have just one site on server just spin new Ubuntu 20.04 with fresh cyberpanel and move site there, might be easier that way for you…

Dr
Dreamer #39

It’s either ports not open or litespeed not running for some reason… if you have done everything on steps @josephgodwinke gave you and nothing worked I would just try fresh install if server won’t have tons of sites…

za
zaesar #40

Yes, I followed all the steps from @josephgodwinke. I’m scared to fresh install everything. Does it mean I have to install again Cyberpanel and my website? It took me a while the time I did it and with help. So, this option scares me a lot to do it.

In any case if you have time to look what is wrong and help me I would gladly pay you if necessary.

Waiting for your response.

za
zaesar #41

Please can I contact you? It doesn’t work we tried many different ways. Dreamer told me you know about NodeJS. Maybe there is a mistake. But I haven’t change anything on the website since deployed. The only thing I did was upgrade MongoDB. Could you please help me? If you want I can pay you

Dr
Dreamer #42

@josephgodwinke I checked his set up there is definitely some problems with node.js setup terminal command node -v give some errors too but site been running fine before. I tried tinker vhost too but no luck. I’m not familiar with node maybe you can help him.

Sign in to reply