Development news: AAOkube migration incoming

Read and comment on the latest community news and site updates.
User avatar
Unas
Admin / Site programmer
Posts: 8837
Joined: Tue Jul 10, 2007 4:43 pm
Gender: Male
Spoken languages: Français, English, Español
Contact:

Development news: AAOkube migration incoming

Post by Unas »

Development news
AAOkube migration incoming
What is AAOkube ?

As you may have noticed, I've not been very active on AAO in the last few years, and as a result, I've left the technical architecture of the site get severely outdated.
This causes stability issues, and potential security issues, as most of the underlying software has not been updated for a while.
In addition, the server that has been hosting AAO since 2017 is reaching end of life soon, and I have to migrate to a new server before it all goes offline.

This is why I've been working since August on a new architecture called AAOkube.
It is a much more modern and modular architecture, based on the most current technologies in the cloud computing world, Docker and Kubernetes.

What does it change ?

This change is really technical : most users won't see the difference at first. (if it goes well, at least)
That being said, it's a radical change behind the scenes, so you might encounter issues shortly after the migration - please report them in the forums as always.

Among the benefits of this move, I expect :
  • Simpler software upgrades for me,
  • More stability, hopefully no more blackouts like those that have plagued the site regularly for a few years (Kubernetes brings a lot of tools to detect and recover from failures automatically)
  • A lot more simplicity if I ever need to move the website somewhere else in the future.
  • For developers who want to contribute to AAO, a simple way to run AAO on their own computer to test their changes.
When does it happen, and what should I do ?

I am planning the migration early next week, probably on Monday Oct 5th. (This might change, depending on my busy schedule.)

Expect several hours of downtime, while I freeze the database here and transfer to the new environment.

You don't have anything specific to do, but avoid planning important work on your trials on Monday, as you might lose it if I shut the site down while you're working.
ImageImageImage
If knowledge can create problems, it is not through ignorance that we can solve them.
Si le savoir peut créer des problèmes, ce n'est pas l'ignorance qui les résoudra. ( Isaac Asimov )
mars0id
Posts: 12
Joined: Mon Sep 28, 2020 12:51 am
Gender: Male
Spoken languages: English
Location: america

Re: Development news: AAOkube migration incoming

Post by mars0id »

hey, how long will construction take? yes it starts on the 5th, but should we expect to come back tuesday, or will the whole week be patchy?
"uhh... there is no evidence,,, take off your clothes." phoenix at manfred, probably
User avatar
Unas
Admin / Site programmer
Posts: 8837
Joined: Tue Jul 10, 2007 4:43 pm
Gender: Male
Spoken languages: Français, English, Español
Contact:

Re: Development news: AAOkube migration incoming

Post by Unas »

The transition will take no more than a few hours, if everything goes well.
So on the 5th in the evening it should be back.
ImageImageImage
If knowledge can create problems, it is not through ignorance that we can solve them.
Si le savoir peut créer des problèmes, ce n'est pas l'ignorance qui les résoudra. ( Isaac Asimov )
User avatar
Enthalpy
Community Manager
Posts: 4850
Joined: Wed Jan 04, 2012 4:40 am
Gender: Male
Spoken languages: English, limited Spanish

Re: Development news: AAOkube migration incoming

Post by Enthalpy »

Based on the details you sent me, I'm looking forward to said "simple way to run AAO on their own computer to test their changes." Though I guess this means that I'll finally need to learn how to use Docker.
[D]isordered speech is not so much injury to the lips that give it forth, as to the disproportion and incoherence of things in themselves, so negligently expressed. ~ Ben Jonson
Current AAO Development Priority: Issue #94: Grayscale Mode
User avatar
Unas
Admin / Site programmer
Posts: 8837
Joined: Tue Jul 10, 2007 4:43 pm
Gender: Male
Spoken languages: Français, English, Español
Contact:

Re: Development news: AAOkube migration incoming

Post by Unas »

I'll publish the new dev env a few days later, I still have a little bit of cleaning to do before making it public.
But ideally, developers shouldn't have to go too much in depth with how Docker works, as I'll be providing a few scripts that basically do everything that is needed.

The only difficulty is that I'm working in a linux environment, and I haven't tested all this in Windows. In theory, if you have GitBash + Docker installed, if should be enough, but there may be some quirks I haven't noticed :-)
ImageImageImage
If knowledge can create problems, it is not through ignorance that we can solve them.
Si le savoir peut créer des problèmes, ce n'est pas l'ignorance qui les résoudra. ( Isaac Asimov )
User avatar
Unas
Admin / Site programmer
Posts: 8837
Joined: Tue Jul 10, 2007 4:43 pm
Gender: Male
Spoken languages: Français, English, Español
Contact:

Re: Development news: AAOkube migration incoming

Post by Unas »

The move is finally complete.
It took a lot longer than planned, as I uncovered some issues with the forum after migrating the data, and it took time to resolve those.

As mentioned in the announvement, you might still see errors here and there while browsing, especially the forums : please let me know.
ImageImageImage
If knowledge can create problems, it is not through ignorance that we can solve them.
Si le savoir peut créer des problèmes, ce n'est pas l'ignorance qui les résoudra. ( Isaac Asimov )
User avatar
Enthalpy
Community Manager
Posts: 4850
Joined: Wed Jan 04, 2012 4:40 am
Gender: Male
Spoken languages: English, limited Spanish

Re: Development news: AAOkube migration incoming

Post by Enthalpy »

clcman hasn't been able to save one of his trials. The PHP returns the error "Failed to load resource: the server responded with a status of 413 (Request Entity Too Large)". The trial file he's attempting to save is 817 KB large.

I can give you any additional details you want, including the trial file.
[D]isordered speech is not so much injury to the lips that give it forth, as to the disproportion and incoherence of things in themselves, so negligently expressed. ~ Ben Jonson
Current AAO Development Priority: Issue #94: Grayscale Mode
User avatar
Unas
Admin / Site programmer
Posts: 8837
Joined: Tue Jul 10, 2007 4:43 pm
Gender: Male
Spoken languages: Français, English, Español
Contact:

Re: Development news: AAOkube migration incoming

Post by Unas »

I've done a small config update that should help with that.

But yes, if it still doesn't work, I'd need to know which trial it is in order to get the file and test locally.
ImageImageImage
If knowledge can create problems, it is not through ignorance that we can solve them.
Si le savoir peut créer des problèmes, ce n'est pas l'ignorance qui les résoudra. ( Isaac Asimov )
User avatar
Tiagofvarela
Posts: 342
Joined: Thu Jun 26, 2014 7:16 pm
Gender: Male
Spoken languages: English, Portuguese
Location: Portugal

Re: Development news: AAOkube migration incoming

Post by Tiagofvarela »

I think this is likely to be a widespread issue for larger trials, so here's mine in which I get a similar error:
trial_id=105940
A Laggy Turnabout ★
A Batty Turnabout ★
A Tricky Turnabout ★
Upcoming: A Worldly Turnabout, A Courtly Turnabout, A Clumsy Turnabout, A Needy Turnabout
Awsome2464
Posts: 39
Joined: Mon Mar 23, 2020 4:40 am
Gender: Male
Spoken languages: English

Re: Development news: AAOkube migration incoming

Post by Awsome2464 »

I've been having this save issue, as well. I don't get a specific error code, only this:
Failed to save for an unknown reason. Please retry.
If the problem persists, please report this bug in the forums.
User avatar
clcman
Posts: 1312
Joined: Tue Apr 26, 2011 3:40 pm
Gender: Male
Spoken languages: English
Location: Classified

Re: Development news: AAOkube migration incoming

Post by clcman »

Awsome2464 wrote:I've been having this save issue, as well. I don't get a specific error code, only this:
Failed to save for an unknown reason. Please retry.
If the problem persists, please report this bug in the forums.
Awesome, that's also the report I got, but Enthalpy was able to dig a more specific error code out of it. From what I tested so far, my 500 frame trial saved fine, but my 1600 and 2100 frame trials would not.

Speaking of which, my 1600-frame trial (which has some changes I would like to be able to save) is this one: trial_id=113018
And my 2100-frame trial (which has no real changes, I just opened it up, changed a letter and tried to save it) is this one: trial_id=106431
What do REAL, NON-BRIBED people have to say about HTB!?
"This really changed the way I thought about Phoenix as a character. ...Wow." - Reecer6
"HTB! contains truths that might be hard to stomach, but had to be unveiled nonetheless." - Blackrune
"This deserves a best plot twist award." - Evo
"It changed my life, and it can change yours too. For the better, I mean." - Calvinball
"I will never look at Phoenix Wright the same way again" - PhoenixRises123
"omg best thing on aao" - AceAttorneyMaster111
DISCOVER THE TRUTH YOU NEVER KNEW YOU DIDN'T KNOW IN HTB! PROLOGUE AND PART 1, AVAILABLE NOW!!


"Those people who think they know everything are a great annoyance to those of us who do." -Isaac Asimov
"For every complex problem, there is an answer that is clear, simple and wrong." -H. L. Mencken
Awsome2464
Posts: 39
Joined: Mon Mar 23, 2020 4:40 am
Gender: Male
Spoken languages: English

Re: Development news: AAOkube migration incoming

Post by Awsome2464 »

Well, the project I'm working on for the current case competition is currently at around 1500, so I guess it really is just bigger cases.

That case in particular's ID is this: trial_id=117133
User avatar
Tiagofvarela
Posts: 342
Joined: Thu Jun 26, 2014 7:16 pm
Gender: Male
Spoken languages: English, Portuguese
Location: Portugal

Re: Development news: AAOkube migration incoming

Post by Tiagofvarela »

I've furthermore achieved the following error:
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_messenger.php on line 212: Illegal string offset 'enforum_notify'
When I posted:

Since it sent me to a blank page with the error message I originally thought it did not post, but it actually did.
I posted it on Windows 10, Firefox 81.0.1 (64-bit).

Edit: Also got the error posting this.
A Laggy Turnabout ★
A Batty Turnabout ★
A Tricky Turnabout ★
Upcoming: A Worldly Turnabout, A Courtly Turnabout, A Clumsy Turnabout, A Needy Turnabout
User avatar
Enthalpy
Community Manager
Posts: 4850
Joined: Wed Jan 04, 2012 4:40 am
Gender: Male
Spoken languages: English, limited Spanish

Re: Development news: AAOkube migration incoming

Post by Enthalpy »

clcman wrote:
Awsome2464 wrote:I've been having this save issue, as well. I don't get a specific error code, only this:
Failed to save for an unknown reason. Please retry.
If the problem persists, please report this bug in the forums.
Awesome, that's also the report I got, but Enthalpy was able to dig a more specific error code out of it.
In case it matters, I was able to see the error code only because I used save.php.
[D]isordered speech is not so much injury to the lips that give it forth, as to the disproportion and incoherence of things in themselves, so negligently expressed. ~ Ben Jonson
Current AAO Development Priority: Issue #94: Grayscale Mode
User avatar
Unas
Admin / Site programmer
Posts: 8837
Joined: Tue Jul 10, 2007 4:43 pm
Gender: Male
Spoken languages: Français, English, Español
Contact:

Re: Development news: AAOkube migration incoming

Post by Unas »

Thanks all for providing trial IDs, it does make it easier to test on my end to make sure it is correct :-)

The config change I did earlier was the correct one, but I did it in the wrong place xD
Now it's updated again, and hopefully it should be fixed.
Let me know if the issue is solved for you all !
ImageImageImage
If knowledge can create problems, it is not through ignorance that we can solve them.
Si le savoir peut créer des problèmes, ce n'est pas l'ignorance qui les résoudra. ( Isaac Asimov )
Locked