Jump to content

Autoshite technical help. Ask questions about how the site works here.


Pillock

Recommended Posts

3 hours ago, SiC said:

This has been on my radar to reply, but I haven't had a chance the last week to reply properly.

Could you see if you can access this:

https://autoshite.com/can_you_see_us.txt

If you can, then its probably on our side. If not, then for whatever reason 3 isn't allowing traffic to route to autoshite and not a whole lot I can do. 

Is there anyone else using 3 and having issues or does it work?

I'm on a Smarty SIM based 4G router - they use the 3 network - never had a problem with Autoshite (and, yes, I can see your txt file)
I do have problems on some sites as Smarty does not allocate a public IP to users so everything goes out from a common IP range for a gazillion folks and some sites have blocked it (French Car Forum or similar is one)

Link to comment
Share on other sites

Just had a thought. I bet three are using IPv6 (new style of IP address) where they can but a lot of the world is using IPv4 still. A quick check of a DNS lookup (system that finds the IP address) of the IPv6 address brings back an IP address that isn't our server...

I don't have login access to the DNS provider, so I can't do much right now. I've given the person who has current access another prod...

Link to comment
Share on other sites

I suspect it will also be phone/device and network specific issue. As many devices probably will still lump themselves into IPv4. Also might even be some base stations are set to route IPv6 traffic and others not (possibly 5G specific?). 

I'm not 100% this is the issue but certainly the IPv6 being wrong will be an issue. 

Link to comment
Share on other sites

10 hours ago, SiC said:

This has been on my radar to reply, but I haven't had a chance the last week to reply properly.

Could you see if you can access this:

https://autoshite.com/can_you_see_us.txt

If you can, then its probably on our side. If not, then for whatever reason 3 isn't allowing traffic to route to autoshite and not a whole lot I can do. 

Is there anyone else using 3 and having issues or does it work?

Thanks for getting back to me. I've been up in Scotland with the truck for two days, and for reasons above, I've not been able to access the site.

Yes, I've tried the link above and could read the text.

Link to comment
Share on other sites

7 minutes ago, AndyW201 said:

Yes, I've tried the link above and could read the text.

Is that when using your mobile data? Presumably the site doesn't work when on that same mobile data and reading that text?

Link to comment
Share on other sites

2 minutes ago, SiC said:

Is that when using your mobile data? Presumably the site doesn't work when on that same mobile data and reading that text?

Yes, I can currently only access the site on wi-fi, but I came out of wi-fi and pasted that link into my browser and it came up fine, if that makes sense.

FWIW, All our phones are on 3 mobile data, I can access the site on my wife's and daughter's phones no problem on the data. My own phone's only a couple of months old, but I had no problem getting on the site on data, up until last Thursday. It came on  briefly today, but I could only get the homepage, I wasn't signed in and could not access the sign-in page.

Link to comment
Share on other sites

2 hours ago, AndyW201 said:

Yes, I can currently only access the site on wi-fi, but I came out of wi-fi and pasted that link into my browser and it came up fine, if that makes sense.

FWIW, All our phones are on 3 mobile data, I can access the site on my wife's and daughter's phones no problem on the data. My own phone's only a couple of months old, but I had no problem getting on the site on data, up until last Thursday. It came on  briefly today, but I could only get the homepage, I wasn't signed in and could not access the sign-in page.

I've deleted the offending IP address. If you could try again when get a chance and see if it fixes it at all. 

Link to comment
Share on other sites

8 hours ago, SiC said:

I've deleted the offending IP address. If you could try again when get a chance and see if it fixes it at all. 

Yes, that appears to have fixed it! (fingers crossed.) I can get on the forum now on data.

Many, many thanks for sorting  that Si, you're a legend. 👍

Link to comment
Share on other sites

  • 2 weeks later...

@SiC I found an interesting way to break the forum, if you use the forum search function and search for anything with a - in the middle of it, after a bit of churning ya get chucked a 502 bad gateway, 

for example Peugeot-205

and this was the original search term/URL that brought it to my attention for me

https://autoshite.com/search/?&q=L-92Y&quick=1&search_and_or=and&sortby=relevancy

breaking the internet with Invacars since 2018! :) 

 

its not the end of the world but just thought I'd make ya aware of it just incase :) 

Link to comment
Share on other sites

Yeah there is an issue with the search. I first discovered it here:

Then LBF discovered it above. I've just unhidden his post as I didn't want others to readily discover it as doing it enough will cause 502 Bad Gateway errors. Originally it would lock it up hard for many minutes until it got back with a result. I've reconfigure the server so it will timeout after 30s.

Yesterday someone else must have discovered it as I had reports of 502 errors again. It sorted itself as the 30s timeout kicked in.

To stop it happening completely I reduced the search period to 1 day. Then I increased it to 365 days this morning as that seems a happy medium. 

Basically it appears the forum software isn't really happy about searching the (literally) millions of posts on here. Normal text searches are fine but stick a non alphanumeric character in there and it'll spend absolutely ages (tens of minutes) going through every post. A bit crap imo. A simple text search is very quick.

I plan to use a different search indexing backend (elasticsearch) that is better suited to performing searches. However it's quite resource heavy (runs on Java *shudder*) and I need to figure the best way for it to coexist. I might have to spin another small (cheap) instance up to run it on a separate server. Also depends how much people really use the search. Going by the notice on here, it does get used frequently.  

Problem is I've simply not had the time recently. This doesn't help either at home...

image-3.png

So for now the search period will have to stay relatively short. Otherwise someone will break the server for everyone else!

Link to comment
Share on other sites

Only happened in recent days though and I probably use search history a few times a week

Searching the forum for specific I know exist, nothing returned as older than March this year.  Adjust the time line, still nothing earlier March this year.

Link to comment
Share on other sites

Hope this can get fixed as AS actually had one of the most user friendly search functions I've found on a forum. It's a bit of a PITA as I often search for threads I regularly post in and now have to scroll through several pages to find what I want - if it's been updated fairly recently 

Link to comment
Share on other sites

It's definitely something I want to get fixed. I've upped the search period to 365 days and it seems that the non alphanumeric searches aren't cripplingly slow at that. Basically if you use any non alphanumeric characters in the search (e.g. -+,!;:/. etc) it causes it to take ages. If you repeat that enough times, it will cause the server to run out of connections to process. Then everyone gets 502 errors until those searches finish.

My plan is to move to Elasticsearch. This should make searches a lot more accurate and hopefully quicker. But it's not trivial to setup and secure. I've spent a brief bit of time already but need a bit longer. It's also a big resource hog which complicates thing and may need additional compute resources added. I may put out a call out on here or ask some colleagues at work to double check the config is right.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...