Wow. I've been running Flarum since...well, a while ago, and never had to resort to this. All of this may be meaningless when it comes to troubleshooting, I don't quite know.
When I went to upgrade to b12, I turned off all my extensions (I had quite a few) and ran composer update --prefer-dist --no-dev -a --with-all-dependencies
That an error, which didn't seem like a dealbreaker:
The "https://extiverse.com/satis/packages.json" file could not be downloaded (HTTP/1.1 500 Internal Server Error)
https://flagrow.io/satis could not be fully loaded, package information was loaded from the local cache and may be out of date
but then we had this conversation:
- Updating zerosonesfun/announce (1.2 => 1.3): Downloading (failed) Update failed (The "https://api.github.com/repos/zerosonesfun/announce/zipball/5200fe39943315e7f74fca74b14e5ce7e693ba0f" file could not be downloaded (HTTP/1.1 404 Not Found))
Would you like to try reinstalling the package instead [yes]? yes
- Removing zerosonesfun/announce (1.2)
- Installing zerosonesfun/announce (1.3): Downloading (failed) Failed to download zerosonesfun/announce from dist: The "https://api.github.com/repos/zerosonesfun/announce/zipball/5200fe39943315e7f74fca74b14e5ce7e693ba0f" file could not be downloaded (HTTP/1.1 404 Not Found)
Now trying to download from source
And, BOOM:
[RuntimeException]
Failed to clone https://github.com/zerosonesfun/announce.git via https, ssh protocols, aborting.
- https://github.com/zerosonesfun/announce.git
Cloning into '/home/ferrellw/public_html/forum/vendor/zerosonesfun/announce'...
remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/zerosonesfun/announce.git/'
- git@github.com:zerosonesfun/announce.git
Cloning into '/home/ferrellw/public_html/forum/vendor/zerosonesfun/announce'...
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
SO, that seemed to be that. It finished, I guess.
QUESTION: What happens when an extension is abandoned like that? Do I need to remove it before any upgrades? Did this hurt anything?
Next, I went ahead and ran 'php flarum migrate', and got these errors:
PHP Warning: require(/home/ferrellw/public_html/forum/vendor/composer/../zendframework/zend-diactoros/src/functions/create_uploaded_file.php): failed to open stream: No such file or directory in /home/ferrellw/public_html/forum/vendor/composer/autoload_real.php on line 66
PHP Warning: require(/home/ferrellw/public_html/forum/vendor/composer/../zendframework/zend-diactoros/src/functions/create_uploaded_file.php): failed to open stream: No such file or directory in /home/ferrellw/public_html/forum/vendor/composer/autoload_real.php on line 66
PHP Fatal error: require(): Failed opening required '/home/ferrellw/public_html/forum/vendor/composer/../zendframework/zend-diactoros/src/functions/create_uploaded_file.php' (include_path='.:/opt/remi/php73/root/usr/share/pear:/opt/remi/php73/root/usr/share/php:/usr/share/pear:/usr/share/php') in /home/ferrellw/public_html/forum/vendor/composer/autoload_real.php on line 66
Oddly enough, the vendor/composer/zendframework folder was empty. I checked a backup copy, and it has stuff in it, so I threw those folders back in this copy.
At that point, 'php flarum migrate' ran:
Migrating Flarum...
Nothing to migrate.
Publishing assets...
DONE.
But now I've got no forum, just a 500 error.
The server log says this, which I can't really parse:
[Tue Jul 28 16:41:44.769539 2020] [proxy_fcgi:error] [pid 167288:tid 139651322996480] [client 78.142.63.3:25905] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Class 'Laminas\HttpHandlerRunner\RequestHandlerRunner' not found in /home/ferrellw/public_html/forum/vendor/flarum/core/src/Http/Server.php:32\nStack trace:\n#0 /home/ferrellw/public_html/forum/index.php(22): Flarum\Http\Server->listen()\n#1 {main}\n thrown in /home/ferrellw/public_html/forum/vendor/flarum/core/src/Http/Server.php on line 32
Should I give up and just start restoring a backup? Or is this installation fixable/worth fighting for? I'm not sure what to hit at next.