Issues Sending SMTP Emails

Hello all,

I have an instance of Nextcloud installed on a Truenas Scale system. I am currently running Nextcloud 28.0.1.

I have everything setup and running well, however I am having issues setting up the SMTP Emails so that users can get password reset emails etc.

I have entered in the correct SMTP details, however when I send a test email, I am getting the below

I have checked the Nextcloud logs and I see the below appears at the time I attempt to send a test email

{
“reqId”: “d9njUzCVPAMNyEPCyO0j”,
“level”: 2,
“time”: “2024-01-24T19:05:48+00:00”,
“remoteAddr”: “192.168.1.64”,
“user”: “admin”,
“app”: “no app in context”,
“method”: “GET”,
“url”: “/settings/admin”,
“message”: “Invalid cliBasedCronUser data provided to provideInitialState by settings”,
“userAgent”: “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36”,
“version”: “28.0.1.1”,
“data”: ,
“id”: “65b15fcceaf17”

&

{
“reqId”: “d9njUzCVPAMNyEPCyO0j”,
“level”: 3,
“time”: “2024-01-24T19:05:48+00:00”,
“remoteAddr”: “192.168.1.64”,
“user”: “admin”,
“app”: “PHP”,
“method”: “GET”,
“url”: “/settings/admin”,
“message”: “Trying to access array offset on value of type bool at /var/www/html/apps/settings/lib/Settings/Admin/Server.php#76”,
“userAgent”: “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36”,
“version”: “28.0.1.1”,
“data”: {
“app”: “PHP”
},
“id”: “65b15fcceaf64”
}

Any ideas how I can fix this ?

Many thanks in advance.

Anything unusual about the file/folder ownership of/where config.php is located?

The message indicates that either fileowner() or posix_getpwuid() calls are failing on your system for some reason. Which is… weird. They’re built in PHP functions that return the file owner and information about the fileowner, respectively.

If you can provide the full (raw) stack trace for the 2nd entry that would be helpful. It’s from the 3 dot menu to the left next to the entry.