ULX

Author Topic: MOTD not loading  (Read 10697 times)

0 Members and 1 Guest are viewing this topic.

Offline [GA] TheOverTaker

  • Newbie
  • *
  • Posts: 12
  • Karma: 2
MOTD not loading
« on: July 29, 2017, 10:39:45 AM »
My ULX motd doesn't work at all. It only appears with a gray screen. This only occured after our website migrated to HTTPS. I've made a post on this earlier, but the only solution was to migrate back to HTTP, but at this point, it would be dumb for me not to switch to it.
Here is the url: neotekgaming.com/showthread.php?tid=4&pid=4#pid4
Splice of my server.cfg:
//MOTD
ulx showmotd 3
ulx_motdurl "neotekgaming.com/showthread.php?tid=4&pid=4#pid4"
I've tried putting https://, www, http:// to no avail. It only appears with a black screen.
My ULib/ULX versions (run "ulx version" in console):
ULib v2.61
ULX v3.71


Game mode(s) I am having this problem on: Sandbox.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: MOTD not loading
« Reply #1 on: July 29, 2017, 01:56:02 PM »
If you don't specify https:// or http:// in front of your site in ULX settings, ULX automatically tries to make it http://
So, if your site won't load using http://neotekgaming.com/showthread.php?tid=4&pid=4#pid4 - then Gmod can't load it either.
If from server console, try
Code: [Select]
ulx_showmotdurl "https://neotekgaming.com/showthread.php?tid=4&pid=4#pid4"Make sure you use quotes.
If in Xgui, just try that with quotes.

That being said, I can't guarantee that will work.
Your forum site loads some content in http mode. Aka Mixed Mode
Gmod web loader may be choking on that. Most browsers ignore it with a little warning in the security status.
Gmod, who knows.

EDIT - fixed url, removed a = sign
« Last Edit: July 29, 2017, 02:22:42 PM by JamminR »
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline [GA] TheOverTaker

  • Newbie
  • *
  • Posts: 12
  • Karma: 2
Re: MOTD not loading
« Reply #2 on: July 29, 2017, 02:55:58 PM »
Did that, still not working.

Updated ULX to latest version too.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: MOTD not loading
« Reply #3 on: July 29, 2017, 03:19:34 PM »
Then it's likely due to your mixed mode site.
You could test just to make sure https is still working in Gmod/ulx by loading "https://www.google.com".
Gmod html has always been picky about web content you try to feed it.
If there is any fancy scripting or dynamic content, or quirks (like Mixed mode), it seems to want to give up.

Also, the last post you made in Nov 2016, when asked, you never did answer whether or not you had other addons that might break url.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline [GA] TheOverTaker

  • Newbie
  • *
  • Posts: 12
  • Karma: 2
Re: MOTD not loading
« Reply #4 on: July 30, 2017, 10:46:37 AM »
Alright, I fixed the mixed content thing.
I tested google and it worked fine. no https:// or anything, just google.com
Neotekgaming.com - instant gray box.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: MOTD not loading
« Reply #5 on: July 30, 2017, 01:24:58 PM »
Alright, I fixed the mixed content thing.

No, unfortunately, you didn't.
I tried your site in Firefox and still says some unsecure content was blocked.

So, I went out and found an online scanner for you.
This site found 200 (it's limit) pages with "HTTP" links to a Google font.
https://www.jitbit.com/sslcheck/#url=https://neotekgaming.com/
It seems your default theme links to an off site HTTP google font.
It's quite likely that you could find the URL in the theme code and change it to HTTPS. Google now hosts https content in it's entirety. (Most http requests get redirected to HTTPS in fact, which is why google.com worked for you without you typing https. As I stated earlier though, USE HTTPS:// when specifying links in ULX MOTD. ULX by default, when you don't specify, adds only http://, not https://)

Once you fix that mixed mode linking, there may be other challenges. Let's start with fixing that one though.


"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline [GA] TheOverTaker

  • Newbie
  • *
  • Posts: 12
  • Karma: 2
Re: MOTD not loading
« Reply #6 on: July 30, 2017, 04:42:08 PM »
Thanks for pointing me to the font problem. I [think] I actually fixed it now, ran the scan and nothing came up.
Anyway, it's still presenting me with the same problem, and I do have https:// in the front of the URL.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: MOTD not loading
« Reply #7 on: July 30, 2017, 07:59:36 PM »
I don't have a Dev install that I can test. I'd like to see if I do the same on a clean install if I get a grey screen.
One thing I remember about the last time I tried using external site loading was that Gmod didn't like dynamic pages. (That was years ago though)
For instance, you have some fancy CSS or something with that rotating logo at the top of your page.
Are you absolutely certain you had that before going HTTPS?
Also, I know it's not a direct to the rules page, but have you tried just setting your motd to "https://neotekgaming.com/" ?
I'd be curious if even that worked.
When I tried using the full url in the link to that SSL checker page, even the SSL check mangled the url to "http://neotekgaming.com/showthread.php?tid=4"

Either way, to anyone else monitoring this thread, does anyone else here on the forums have a test box they can test to see if they use "https://neotekgaming.com/showthread.php?tid=4&pid=4#pid4" as motd URL if they too get a grey screen?
(It can't be a listen server, you'd likely not see motd)
I'm reasonably sure this isn't going to be a ULX issue, but more of a Gmod doesn't like some html/https issue.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline [GA] TheOverTaker

  • Newbie
  • *
  • Posts: 12
  • Karma: 2
Re: MOTD not loading
« Reply #8 on: July 31, 2017, 05:22:42 AM »
Quote
For instance, you have some fancy CSS or something with that rotating logo at the top of your page.
Are you absolutely certain you had that before going HTTPS?
Yes, nothing has changed except the google font stuff.
Quote
Also, I know it's not a direct to the rules page, but have you tried just setting your motd to "https://neotekgaming.com/" ?
I'd be curious if even that worked.
Did that, no change.
Probably gonna try a forum with the same theme to see what happens.

Offline [GA] TheOverTaker

  • Newbie
  • *
  • Posts: 12
  • Karma: 2
Re: MOTD not loading
« Reply #9 on: July 31, 2017, 05:56:20 AM »
Alright, I made a simple HTML file with the word "test" in it.

That doesn't load. I'm beginning to think this has to do with the certificate. It's comodo issued so nothing really different about it..

EDIT: Tried site with Comodo certificate and it loads fine.. so confused

EDIT2: Used a different addon and it redirects to "chrome://chromewebdata/" everytime I type in neotekgaming.com. Looking this up comes up with a few things.. mostly from the awesomium site, which is down right now
« Last Edit: July 31, 2017, 06:45:53 AM by [GA] TheOverTaker »

Offline Timmy

  • Ulysses Team Member
  • Sr. Member
  • *****
  • Posts: 252
  • Karma: 168
  • Code monkey
Re: MOTD not loading
« Reply #10 on: July 31, 2017, 12:06:18 PM »
Tested on a dedicated server with only ULib & ULX installed:

https://neotekgaming.com/showthread.php?tid=4&pid=4#pid4
-> Does not load, grey window.

Exact copy: https://timmy.ws/ulyssesmod/motd/neotekgaming.com/rules.html?ver=1501526546
-> Loads okay.

It doesn’t seem to be an issue with the loaded content. You’re not sending any special headers either. SSL/TLS configuration looks correct from here.

https://www.ssllabs.com/ssltest/analyze.html?d=neotekgaming.com&hideResults=on

I’m baffled! Very odd indeed.

Edit: Would you be able to test how Awesomium responds when you use a free Let’s Encrypt certificate? You can generate these over at https://www.sslforfree.com.
« Last Edit: July 31, 2017, 01:23:21 PM by Timmy »

Offline [GA] TheOverTaker

  • Newbie
  • *
  • Posts: 12
  • Karma: 2
Re: MOTD not loading
« Reply #11 on: July 31, 2017, 01:32:26 PM »
I'd like to, but I'm hosting from one.com (doesn't allow shell access or anything like that, they provide their own SSL) so not sure how I would do that.


About to literally make a copy of the page and host it on my personal site (which uses Let's Encrypt)
« Last Edit: July 31, 2017, 01:47:35 PM by [GA] TheOverTaker »

Offline Timmy

  • Ulysses Team Member
  • Sr. Member
  • *****
  • Posts: 252
  • Karma: 168
  • Code monkey
Re: MOTD not loading
« Reply #12 on: July 31, 2017, 03:25:00 PM »
Bummer!

It looks like all HTTPS sites hosted by One.com suffer from the same problem. None of these load:
- https://one-tutorials.com
- https://0-0.nu
- https://0-1-2-3.net
- https://tap3edit.com
« Last Edit: July 31, 2017, 03:31:40 PM by Timmy »

Offline [GA] TheOverTaker

  • Newbie
  • *
  • Posts: 12
  • Karma: 2
Re: MOTD not loading
« Reply #13 on: July 31, 2017, 03:48:25 PM »
Hmm.. guess that pinpoints the issue.
Not sure why it would be like that either, I'll just use a personal site to host a small HTML file containing the rules I guess.

Offline [GA] TheOverTaker

  • Newbie
  • *
  • Posts: 12
  • Karma: 2
Re: MOTD not loading
« Reply #14 on: July 31, 2017, 06:25:50 PM »
Contacted owner of another addon that had the same issue
Here's what he said: