Skip to content

Talked Issue: Error: Attempt to read property "message" on null at nextcloud talk... #55

@kaushakya

Description

@kaushakya

Greetings!
I have a Nextcloud (25.0.3) server and I tried setting up the Talked server on another AWS VM (Ubuntu 20.04.3 LTS) following the procedure at: https://github.com/MetaProvide/talked. When I am using the command "/recording start" in a chat room, I am getting an error "An error occurred while running the command. Please ask an administrator to check the logs." the logs from the Nextcloud are:
"PHP Error: Attempt to read property "message" on null at /mypath/apps/talked/lib/Command/Record.php#204" and "spreed InvalidArgumentException: Chat command failed [Code: 1]: php /mypath/occ talked:record 'ah6u7siz' 'start'".

My systemd service contains:

[Unit]
Description=talked
Requires=network.target
After=network.target

[Service]
WorkingDirectory=/opt/talked
User=talked
Group=talked

RuntimeDirectory=talked

Environment=TALKED_CONFIG_PATH=/opt/talked/config.toml

ProtectSystem=full
ProtectHome=true
ProtectKernelTunables=true
ProtectKernelModules=true
ProtectControlGroups=true
PrivateTmp=yes
NoNewPrivileges=yes

SyslogIdentifier=talked
StandardOutput=syslog
StandardError=syslog

ExecStart=/opt/talked/talked/bin/uwsgi --http 127.0.0.1:5000 --die-on-term --master --manage-script-name --mount /=talked.main:app
Restart=always

[Install]
WantedBy=multi-user.target

My apache (Apache/2.4.41) config file:

<IfModule mod_ssl.c>
        <VirtualHost *:443>
                ServerAdmin webmaster@localhost
                ServerName talked.mydomain.com
                DocumentRoot /var/www/talked
                ErrorLog ${APACHE_LOG_DIR}/error.log
                CustomLog ${APACHE_LOG_DIR}/access.log combined

                <Directory "/var/www/talked">
                        AuthType Basic
                        AuthName "Restricted Content"
                        AuthUserFile /etc/apache2/.htpasswd
                        Require valid-user
                </Directory>

                SSLEngine on
                <FilesMatch "\.(cgi|shtml|phtml|php)$">
                                SSLOptions +StdEnvVars
                </FilesMatch>
                <Directory /usr/lib/cgi-bin>
                                SSLOptions +StdEnvVars
                </Directory>
				Include /etc/letsencrypt/options-ssl-apache.conf

				ProxyPreserveHost On
				ProxyPass / http://127.0.0.1:5000
				ProxyPassReverse / http://127.0.0.1:5000
				
				SSLCertificateFile /etc/letsencrypt/live/talked.mydomain.com/fullchain.pem
				SSLCertificateKeyFile /etc/letsencrypt/live/talked.mydomain.com/privkey.pem
        </VirtualHost>
</IfModule>

I believe I have set this up correctly but I am getting the error. I have searched over the web for the same but I can hardly see a post that covers this issue.
Note: I have gone through this as well - #44

Further, on visiting the link (https://talked.mydomain.com) on the browser, after authentication, I am getting:
{"message":"version: 0.5.0"}
which seems okay.

Looking forward to hearing from you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions