XF 2.2 Error- website not working suddenly

tommydamic68

Well-known member
Hello,
my website has been down for a day. I have done no changes, upgrades of any sort. My host says it’s an issue with my software. Any help would be appreciated. I have no access to my site.

Code:
[11-Jul-2021 18:01:48 UTC] PHP Fatal error: Uncaught Error: Class 'League\Flysystem\AwsS3v3\AwsS3Adapter' not found in /home/admin/public_html/community/src/config.php:31
Stack trace:
#0 [internal function]: XF\App->{closure}()
#1 /home/admin/public_html/community/src/XF/FsMounts.php(17): call_user_func(Object(Closure))
#2 /home/admin/public_html/community/src/XF/App.php(1099): XF\FsMounts::loadDefaultMounts(Array)
#3 /home/admin/public_html/community/src/XF/Container.php(28): XF\App->XF\{closure}(Object(XF\Container))
#4 /home/admin/public_html/community/src/XF/App.php(2577): XF\Container->offsetGet('fs')
#5 /home/admin/public_html/community/src/XF.php(908): XF\App->fs()
#6 /home/admin/public_html/community/src/XF/Util/File.php(738): XF::fs()
#7 /home/admin/public_html/community/src/XF/Error.php(100): XF\Util\File::installLockExists()
#8 /home/admin/public_html/community/src/XF/App.php(2348): XF\Error->logException(Object(XF\Db\InvalidQueryException), true, '')
#9 /home/admin/public_html/community/src/XF.php(196): XF\App->logException(Object(XF\Db\Inv in /home/admin/public_html/community/src/config.php on line 31
[11-Jul-2021 18:01:49 UTC] PHP Fatal error: Uncaught Error: Class 'League\Flysystem\AwsS3v3\AwsS3Adapter' not found in /home/admin/public_html/community/src/config.php:31
Stack trace:
#0 [internal function]: XF\App->{closure}()
#1 /home/admin/public_html/community/src/XF/FsMounts.php(17): call_user_func(Object(Closure))
#2 /home/admin/public_html/community/src/XF/App.php(1099): XF\FsMounts::loadDefaultMounts(Array)
#3 /home/admin/public_html/community/src/XF/Container.php(28): XF\App->XF\{closure}(Object(XF\Container))
#4 /home/admin/public_html/community/src/XF/App.php(2577): XF\Container->offsetGet('fs')
#5 /home/admin/public_html/community/src/XF.php(908): XF\App->fs()
#6 /home/admin/public_html/community/src/XF/Util/File.php(738): XF::fs()
#7 /home/admin/public_html/community/src/XF/Error.php(100): XF\Util\File::installLockExists()
#8 /home/admin/public_html/community/src/XF/App.php(2348): XF\Error->logException(Object(XF\Db\InvalidQueryException), true, '')
#9 /home/admin/public_html/community/src/XF.php(196): XF\App->logException(Object(XF\Db\Inv in /home/admin/public_html/community/src/config.php on line 31
 

kimchuy

Member
Hello,
my website has been down for a day. I have done no changes, upgrades of any sort. My host says it’s an issue with my software. Any help would be appreciated. I have no access to my site.

Code:
[11-Jul-2021 18:01:48 UTC] PHP Fatal error: Uncaught Error: Class 'League\Flysystem\AwsS3v3\AwsS3Adapter' not found in /home/admin/public_html/community/src/config.php:31
Stack trace:
#0 [internal function]: XF\App->{closure}()
#1 /home/admin/public_html/community/src/XF/FsMounts.php(17): call_user_func(Object(Closure))
#2 /home/admin/public_html/community/src/XF/App.php(1099): XF\FsMounts::loadDefaultMounts(Array)
#3 /home/admin/public_html/community/src/XF/Container.php(28): XF\App->XF\{closure}(Object(XF\Container))
#4 /home/admin/public_html/community/src/XF/App.php(2577): XF\Container->offsetGet('fs')
#5 /home/admin/public_html/community/src/XF.php(908): XF\App->fs()
#6 /home/admin/public_html/community/src/XF/Util/File.php(738): XF::fs()
#7 /home/admin/public_html/community/src/XF/Error.php(100): XF\Util\File::installLockExists()
#8 /home/admin/public_html/community/src/XF/App.php(2348): XF\Error->logException(Object(XF\Db\InvalidQueryException), true, '')
#9 /home/admin/public_html/community/src/XF.php(196): XF\App->logException(Object(XF\Db\Inv in /home/admin/public_html/community/src/config.php on line 31
[11-Jul-2021 18:01:49 UTC] PHP Fatal error: Uncaught Error: Class 'League\Flysystem\AwsS3v3\AwsS3Adapter' not found in /home/admin/public_html/community/src/config.php:31
Stack trace:
#0 [internal function]: XF\App->{closure}()
#1 /home/admin/public_html/community/src/XF/FsMounts.php(17): call_user_func(Object(Closure))
#2 /home/admin/public_html/community/src/XF/App.php(1099): XF\FsMounts::loadDefaultMounts(Array)
#3 /home/admin/public_html/community/src/XF/Container.php(28): XF\App->XF\{closure}(Object(XF\Container))
#4 /home/admin/public_html/community/src/XF/App.php(2577): XF\Container->offsetGet('fs')
#5 /home/admin/public_html/community/src/XF.php(908): XF\App->fs()
#6 /home/admin/public_html/community/src/XF/Util/File.php(738): XF::fs()
#7 /home/admin/public_html/community/src/XF/Error.php(100): XF\Util\File::installLockExists()
#8 /home/admin/public_html/community/src/XF/App.php(2348): XF\Error->logException(Object(XF\Db\InvalidQueryException), true, '')
#9 /home/admin/public_html/community/src/XF.php(196): XF\App->logException(Object(XF\Db\Inv in /home/admin/public_html/community/src/config.php on line 31
Whats the value on your config at line 31?
 

thetechguy

Active member
Add this in your src/config.php file

$config['enableListeners'] = false;

This will disable the addons from your site. Then disable this addon from your admin panel "League\Flysystem"

Then enable the listeners again by changing it to true

$config['enableListeners'] = true;
 

Mike

XenForo developer
Staff member
This error would seem to indicate that you have set up your attachments to be served via S3 using the add-on that does this. You've either uninstalled the add-on, removed the files, or disabled listeners and thus the required code for that won't work.

If you've just deleted the files associated with the add-on, you can reupload those and it should resolve the issue (though there's a possibility it might not, depending on when caches were built). Otherwise, at minimum, you need to remove the lines from your config.php that set this up so you can access your site. From there, you either need to reinstall or rebuild the add-on and then you can restore these lines. If you don't want to do that, you can keep the lines removed, but you'll need to make sure you bring the files that were in S3 back to the proper location in XF or things like avatars and attachments won't function correctly.
 

MattW

Well-known member
There is something wrong with your server.

You still had my SSH key on there. I've removed the S3 storage adapter config, but now it's showing the following

Code:
<!-- MySQL statement prepare error [1286]: Unknown storage engine 'InnoDB' -->
 

MattW

Well-known member
Blocked the IP's causing the issue on your firewall

Code:
[root@cloud domlogs]# csf -d 23.22.35.162
csf: DENY_IP_LIMIT (200), the following IP's were removed from /etc/csf/csf.deny:
5.188.206.198 # lfd: (smtpauth) Failed SMTP AUTH login from 5.188.206.198 (US/United States/-): 5 in the last 3600 secs - Sun Nov 29 20:08:43 2020
DROP  all opt -- in !lo out *  5.188.206.198  -> 0.0.0.0/0 
LOGDROPOUT  all opt -- in * out !lo  0.0.0.0/0  -> 5.188.206.198 
Adding 23.22.35.162 to csf.deny and iptables DROP...
DROP  all opt -- in !lo out *  23.22.35.162  -> 0.0.0.0/0 
LOGDROPOUT  all opt -- in * out !lo  0.0.0.0/0  -> 23.22.35.162 
[root@cloud domlogs]# htop
[root@cloud domlogs]# csf -d 3.224.220.101
csf: DENY_IP_LIMIT (200), the following IP's were removed from /etc/csf/csf.deny:
171.104.144.195 # lfd: (ftpd) Failed FTP login from 171.104.144.195 (CN/China/-): 10 in the last 3600 secs - Tue Dec  1 05:47:19 2020
DROP  all opt -- in !lo out *  171.104.144.195  -> 0.0.0.0/0 
LOGDROPOUT  all opt -- in * out !lo  0.0.0.0/0  -> 171.104.144.195 
Adding 3.224.220.101 to csf.deny and iptables DROP...
DROP  all opt -- in !lo out *  3.224.220.101  -> 0.0.0.0/0 
LOGDROPOUT  all opt -- in * out !lo  0.0.0.0/0  -> 3.224.220.101 
[root@cloud domlogs]#
 

tommydamic68

Well-known member
I see it now, the site, Matt, what do you think caused this issue. I hadn't changed anything or added anything in months.
Also, when trying to access the admin control panel I get this error.
Code:
Aws\S3\Exception\S3Exception: Error executing "HeadObject" on "https://sphynxlair.sfo2.digitaloceanspaces.com/internal_data/install-lock.php"; AWS HTTP error: Server error: `HEAD https://sphynxlair.sfo2.digitaloceanspaces.com/internal_data/install-lock.php` resulted in a `503 Service Unavailable` response (server): 503 Service Unavailable (Request-ID: not-available) - in src/addons/XFAws/_vendor/aws/aws-sdk-php/src/WrappedHttpHandler.php at line 191
Aws\WrappedHttpHandler->parseError() in src/addons/XFAws/_vendor/aws/aws-sdk-php/src/WrappedHttpHandler.php at line 97
Aws\WrappedHttpHandler->Aws\{closure}() in src/vendor/guzzlehttp/promises/src/Promise.php at line 204
GuzzleHttp\Promise\Promise::callHandler() in src/vendor/guzzlehttp/promises/src/Promise.php at line 169
GuzzleHttp\Promise\Promise::GuzzleHttp\Promise\{closure}() in src/vendor/guzzlehttp/promises/src/RejectedPromise.php at line 42
GuzzleHttp\Promise\RejectedPromise::GuzzleHttp\Promise\{closure}() in src/vendor/guzzlehttp/promises/src/TaskQueue.php at line 48
GuzzleHttp\Promise\TaskQueue->run() in src/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php at line 98
GuzzleHttp\Handler\CurlMultiHandler->tick() in src/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php at line 125
GuzzleHttp\Handler\CurlMultiHandler->execute() in src/vendor/guzzlehttp/promises/src/Promise.php at line 248
GuzzleHttp\Promise\Promise->invokeWaitFn() in src/vendor/guzzlehttp/promises/src/Promise.php at line 224
GuzzleHttp\Promise\Promise->waitIfPending() in src/vendor/guzzlehttp/promises/src/Promise.php at line 269
GuzzleHttp\Promise\Promise->invokeWaitList() in src/vendor/guzzlehttp/promises/src/Promise.php at line 226
GuzzleHttp\Promise\Promise->waitIfPending() in src/vendor/guzzlehttp/promises/src/Promise.php at line 269
GuzzleHttp\Promise\Promise->invokeWaitList() in src/vendor/guzzlehttp/promises/src/Promise.php at line 226
GuzzleHttp\Promise\Promise->waitIfPending() in src/vendor/guzzlehttp/promises/src/Promise.php at line 62
GuzzleHttp\Promise\Promise->wait() in src/addons/XFAws/_vendor/aws/aws-sdk-php/src/AwsClientTrait.php at line 58
Aws\AwsClient->execute() in src/addons/XFAws/_vendor/aws/aws-sdk-php/src/S3/S3ClientTrait.php at line 287
Aws\S3\S3Client->checkExistenceWithCommand() in src/addons/XFAws/_vendor/aws/aws-sdk-php/src/S3/S3ClientTrait.php at line 272
Aws\S3\S3Client->doesObjectExist() in src/addons/XFAws/_vendor/league/flysystem-aws-s3-v3/src/AwsS3Adapter.php at line 234
League\Flysystem\AwsS3v3\AwsS3Adapter->has() in src/vendor/league/flysystem/src/Filesystem.php at line 57
League\Flysystem\Filesystem->has()
call_user_func_array() in src/vendor/league/flysystem-eventable-filesystem/src/EventableFilesystem.php at line 431
League\Flysystem\EventableFilesystem\EventableFilesystem->callFilesystemMethod() in src/vendor/league/flysystem-eventable-filesystem/src/EventableFilesystem.php at line 395
League\Flysystem\EventableFilesystem\EventableFilesystem->delegateMethodCall() in src/vendor/league/flysystem-eventable-filesystem/src/EventableFilesystem.php at line 128
League\Flysystem\EventableFilesystem\EventableFilesystem->has() in src/vendor/league/flysystem/src/Filesystem.php at line 404
League\Flysystem\Filesystem->assertAbsent() in src/vendor/league/flysystem/src/Filesystem.php at line 66
League\Flysystem\Filesystem->write()
call_user_func_array() in src/vendor/league/flysystem-eventable-filesystem/src/EventableFilesystem.php at line 431
League\Flysystem\EventableFilesystem\EventableFilesystem->callFilesystemMethod() in src/vendor/league/flysystem-eventable-filesystem/src/EventableFilesystem.php at line 395
League\Flysystem\EventableFilesystem\EventableFilesystem->delegateMethodCall() in src/vendor/league/flysystem-eventable-filesystem/src/EventableFilesystem.php at line 247
League\Flysystem\EventableFilesystem\EventableFilesystem->write() in src/vendor/league/flysystem/src/MountManager.php at line 443
League\Flysystem\MountManager->write() in src/XF/Util/File.php at line 730
XF\Util\File::writeInstallLock() in src/XF/Admin/Controller/Login.php at line 150
XF\Admin\Controller\Login->completeLogin() in src/XF/Admin/Controller/Login.php at line 75
XF\Admin\Controller\Login->actionLogin() in src/XF/Mvc/Dispatcher.php at line 350
XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 257
XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 113
XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 55
XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2337
XF\App->run() in src/XF.php at line 488
XF::runApp() in admin.php at line 13
 

MattW

Well-known member
Also, when trying to access the admin control panel I get this error.
Code:
Aws\S3\Exception\S3Exception: Error executing "HeadObject" on "https://sphynxlair.sfo2.digitaloceanspaces.com/internal_data/install-lock.php"; AWS HTTP error: Server error: `HEAD https://sphynxlair.sfo2.digitaloceanspaces.com/internal_data/install-lock.php` resulted in a `503 Service Unavailable` response (server): 503 Service Unavailable (Request-ID: not-available) - in src/addons/XFAws/_vendor/aws/aws-sdk-php/src/WrappedHttpHandler.php at line 191
Aws\WrappedHttpHandler->parseError() in src/addons/XFAws/_vendor/aws/aws-sdk-php/src/WrappedHttpHandler.php at line 97
Aws\WrappedHttpHandler->Aws\{closure}() in src/vendor/guzzlehttp/promises/src/Promise.php at line 204
GuzzleHttp\Promise\Promise::callHandler() in src/vendor/guzzlehttp/promises/src/Promise.php at line 169
GuzzleHttp\Promise\Promise::GuzzleHttp\Promise\{closure}() in src/vendor/guzzlehttp/promises/src/RejectedPromise.php at line 42
GuzzleHttp\Promise\RejectedPromise::GuzzleHttp\Promise\{closure}() in src/vendor/guzzlehttp/promises/src/TaskQueue.php at line 48
GuzzleHttp\Promise\TaskQueue->run() in src/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php at line 98
GuzzleHttp\Handler\CurlMultiHandler->tick() in src/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php at line 125
GuzzleHttp\Handler\CurlMultiHandler->execute() in src/vendor/guzzlehttp/promises/src/Promise.php at line 248
GuzzleHttp\Promise\Promise->invokeWaitFn() in src/vendor/guzzlehttp/promises/src/Promise.php at line 224
GuzzleHttp\Promise\Promise->waitIfPending() in src/vendor/guzzlehttp/promises/src/Promise.php at line 269
GuzzleHttp\Promise\Promise->invokeWaitList() in src/vendor/guzzlehttp/promises/src/Promise.php at line 226
GuzzleHttp\Promise\Promise->waitIfPending() in src/vendor/guzzlehttp/promises/src/Promise.php at line 269
GuzzleHttp\Promise\Promise->invokeWaitList() in src/vendor/guzzlehttp/promises/src/Promise.php at line 226
GuzzleHttp\Promise\Promise->waitIfPending() in src/vendor/guzzlehttp/promises/src/Promise.php at line 62
GuzzleHttp\Promise\Promise->wait() in src/addons/XFAws/_vendor/aws/aws-sdk-php/src/AwsClientTrait.php at line 58
Aws\AwsClient->execute() in src/addons/XFAws/_vendor/aws/aws-sdk-php/src/S3/S3ClientTrait.php at line 287
Aws\S3\S3Client->checkExistenceWithCommand() in src/addons/XFAws/_vendor/aws/aws-sdk-php/src/S3/S3ClientTrait.php at line 272
Aws\S3\S3Client->doesObjectExist() in src/addons/XFAws/_vendor/league/flysystem-aws-s3-v3/src/AwsS3Adapter.php at line 234
League\Flysystem\AwsS3v3\AwsS3Adapter->has() in src/vendor/league/flysystem/src/Filesystem.php at line 57
League\Flysystem\Filesystem->has()
call_user_func_array() in src/vendor/league/flysystem-eventable-filesystem/src/EventableFilesystem.php at line 431
League\Flysystem\EventableFilesystem\EventableFilesystem->callFilesystemMethod() in src/vendor/league/flysystem-eventable-filesystem/src/EventableFilesystem.php at line 395
League\Flysystem\EventableFilesystem\EventableFilesystem->delegateMethodCall() in src/vendor/league/flysystem-eventable-filesystem/src/EventableFilesystem.php at line 128
League\Flysystem\EventableFilesystem\EventableFilesystem->has() in src/vendor/league/flysystem/src/Filesystem.php at line 404
League\Flysystem\Filesystem->assertAbsent() in src/vendor/league/flysystem/src/Filesystem.php at line 66
League\Flysystem\Filesystem->write()
call_user_func_array() in src/vendor/league/flysystem-eventable-filesystem/src/EventableFilesystem.php at line 431
League\Flysystem\EventableFilesystem\EventableFilesystem->callFilesystemMethod() in src/vendor/league/flysystem-eventable-filesystem/src/EventableFilesystem.php at line 395
League\Flysystem\EventableFilesystem\EventableFilesystem->delegateMethodCall() in src/vendor/league/flysystem-eventable-filesystem/src/EventableFilesystem.php at line 247
League\Flysystem\EventableFilesystem\EventableFilesystem->write() in src/vendor/league/flysystem/src/MountManager.php at line 443
League\Flysystem\MountManager->write() in src/XF/Util/File.php at line 730
XF\Util\File::writeInstallLock() in src/XF/Admin/Controller/Login.php at line 150
XF\Admin\Controller\Login->completeLogin() in src/XF/Admin/Controller/Login.php at line 75
XF\Admin\Controller\Login->actionLogin() in src/XF/Mvc/Dispatcher.php at line 350
XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 257
XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 113
XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 55
XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2337
XF\App->run() in src/XF.php at line 488
XF::runApp() in admin.php at line 13
That's because the config is still disabled.

Code:
[root@cloud domlogs]# grep Amazonbot sphynxlair.com-ssl_log | wc -l
51453
[root@cloud domlogs]#
 
Top