Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kaushakya opened this issue Feb 19, 2023 · 0 comments

Comments

@kaushakya
Copy link

kaushakya commented Feb 19, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant