Nextcloud version (eg, 18.0.2):
Operating system and version (eg, Ubuntu 20.04):
Apache or nginx version (eg, Apache 2.4.25):
PHP version (eg, 7.1):
The issue you are facing:
TypeError: Argument 1 passed to InterfaSys\LogNormalizer\Normalizer::normalizeException() must be an instance of Exception, instance of TypeError given, called in /config/www/nextcloud/3rdparty/interfasys/lognormalizer/src/Normalizer.php on line 294
Is this the first time you’ve seen this error? (Y/N): Yes and No (New install)
Steps to replicate it:
- Start Nextcloud
- ???
- Pro… Error
The output of your Nextcloud log in Admin > Logging:
[index] Error: TypeError: Argument 1 passed to InterfaSys\LogNormalizer\Normalizer::normalizeException() must be an instance of Exception, instance of TypeError given, called in /config/www/nextcloud/3rdparty/interfasys/lognormalizer/src/Normalizer.php on line 294 at <<closure>>
0. /config/www/nextcloud/3rdparty/interfasys/lognormalizer/src/Normalizer.php line 294
InterfaSys\LogNormalizer\Normalizer->normalizeException(TypeError {})
1. /config/www/nextcloud/3rdparty/interfasys/lognormalizer/src/Normalizer.php line 256
InterfaSys\LogNormalizer\Normalizer->normalizeException(OCA\Mail\Exception\ServiceException {})
2. <<closure>>
InterfaSys\LogNormalizer\Normalizer->normalizeObject(OCA\Mail\Exception\ServiceException {}, 0)
3. /config/www/nextcloud/3rdparty/interfasys/lognormalizer/src/Normalizer.php line 100
call_user_func_array([InterfaSys\LogN ... "], [OCA\Mail\Except ... 0])
4. /config/www/nextcloud/3rdparty/interfasys/lognormalizer/src/Normalizer.php line 68
InterfaSys\LogNormalizer\Normalizer->normalize(OCA\Mail\Exception\ServiceException {})
5. <<closure>>
InterfaSys\LogNormalizer\Normalizer->format(OCA\Mail\Exception\ServiceException {}, "exception")
6. /config/www/nextcloud/lib/private/Log.php line 324
array_walk({message: "Sync ... }}, [InterfaSys\LogN ... "])
7. /config/www/nextcloud/lib/private/Log/PsrLoggerAdapter.php line 136
OC\Log->logException(OCA\Mail\Exception\ServiceException {}, {message: "Sync ... }})
8. /config/www/nextcloud/lib/private/AppFramework/ScopedPsrLogger.php line 89
OC\Log\PsrLoggerAdapter->error("Sync failed for ... d", {app: "mail",exc ... }})
9. /config/www/nextcloud/apps/mail/lib/Http/Middleware/ErrorMiddleware.php line 101
OC\AppFramework\ScopedPsrLogger->error("Sync failed for ... d", {exception: OCA\ ... }})
10. /config/www/nextcloud/lib/private/AppFramework/Middleware/MiddlewareDispatcher.php line 122
OCA\Mail\Http\Middleware\ErrorMiddleware->afterException(OCA\Mail\Control ... {}, "sync", OCA\Mail\Exception\ServiceException {})
11. /config/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 108
OC\AppFramework\Middleware\MiddlewareDispatcher->afterException(OCA\Mail\Control ... {}, "sync", OCA\Mail\Exception\ServiceException {})
12. /config/www/nextcloud/lib/private/AppFramework/App.php line 152
OC\AppFramework\Http\Dispatcher->dispatch(OCA\Mail\Control ... {}, "sync")
13. /config/www/nextcloud/lib/private/Route/Router.php line 308
OC\AppFramework\App::main("OCA\\Mail\\Cont ... r", "sync", OC\AppFramework\ ... {}, {action: null,id ... "})
14. /config/www/nextcloud/lib/base.php line 1009
OC\Route\Router->match("/apps/mail/api/mailboxes/84/sync")
15. /config/www/nextcloud/index.php line 37
OC::handleRequest()
POST /apps/mail/api/mailboxes/84/sync
from 192.168.2.1 by me at 2020-11-15T13:05:03+00:00
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'memcache.local' => '\\OC\\Memcache\\APCu',
'datadirectory' => '/data',
'instanceid' => '******',
'passwordsalt' => '******',
'secret' => '******',
'trusted_domains' =>
array (
0 => '******',
1 => '******',
),
'dbtype' => 'mysql',
'version' => '20.0.1.1',
'trusted_proxies' =>
array (
0 => 'swag',
),
'overwrite.cli.url' => '******',
'overwritehost' => '******',
'overwriteprotocol' => 'https',
'dbname' => 'nextcloud',
'dbhost' => '******',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'nextcloud',
'dbpassword' => '******',
'installed' => true,
'updater.release.channel' => 'stable',
'mail_smtpmode' => 'smtp',
'mail_smtpsecure' => 'tls',
'mail_sendmailmode' => 'smtp',
'mail_from_address' => '******',
'mail_domain' => 'live.com',
'mail_smtpauthtype' => 'LOGIN',
'mail_smtphost' => 'smtp-mail.outlook.com',
'mail_smtpport' => '587',
'mail_smtpauth' => 1,
'mail_smtpname' => '******',
'mail_smtppassword' => '******',
);
The output of your Apache/nginx/system log in /var/log/____
:
2020/11/15 14:04:32 [error] 418#418: *11 connect() failed (111: Connection refused) while connecting to upstream, client: *****, server: nextcloud.*, request: "GET /apps/mail/api/messages?mailboxId=55&limit=20 HTTP/2.0", upstream: "https://*****/apps/mail/api/messages?mailboxId=55&limit=20", host: "*****"
2020/11/15 14:04:33 [error] 418#418: *11 connect() failed (111: Connection refused) while connecting to upstream, client: *****, server: nextcloud.*, request: "PUT /apps/user_status/heartbeat HTTP/2.0", upstream: "https://*****/apps/user_status/heartbeat", host: "*****"
No clue if that was the correct info you asked for as I’m a complete noob, and if I censored too much then just shout for the info! Just removed IPs, host name and user/pws.
Since it’s a new install I can’t say for sure what I’m doing to get these errors. I have more than this but figured I should take one error at the time. I’m trying to set up mail but it doesn’t work. I can send (send test in admin page) and I get the folder structure of my mail loaded but no actual mail is being retrieved, it just loads forever. Related? Probably