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

error in start recording #17

Open
surbiks opened this issue Jun 16, 2020 · 17 comments
Open

error in start recording #17

surbiks opened this issue Jun 16, 2020 · 17 comments
Assignees
Labels
bug Something isn't working

Comments

@surbiks
Copy link

surbiks commented Jun 16, 2020

when click on start recording show record dialog but timer is stopped in 0.
Screenshot from 2020-06-16 14-39-25

@streamer45 streamer45 self-assigned this Jun 16, 2020
@streamer45
Copy link
Owner

Hi @golil ,

a couple of questions to help with debugging:

  • What browser (version and OS) are you running?
  • Is your Mattermost instance running on https?

@surbiks
Copy link
Author

surbiks commented Jun 18, 2020

hi

  • i test in google chrome 83 in ubuntu 20.04, i use mattermost server version 5.22.2

  • i have nginx server and it use https but my mattermost run in docker and use http.
    i use nginx as proxy and all request to it must be https but mattermost located behind a proxy and run as http

@streamer45 streamer45 added the bug Something isn't working label Jun 18, 2020
@streamer45
Copy link
Owner

@golil

From the error it looks like the plugin is unable to create the worker needed to initialize the recorder.
This should be a JavaScript file stored at /plugins/${pluginId}/public/recorder.worker.js.

The most likely reason is that the file is not found somehow (maybe nginx not rewriting properly).
Can you show your network tab after a reload? It should show all the fetches resources and a failure for that file.

@surbiks
Copy link
Author

surbiks commented Jun 19, 2020

hi
if check again when reload page cant load config file

13
12
14

all file load successfully but config URL is wrong

@streamer45
Copy link
Owner

Ah, that's interesting and it might be what's causing your error.
The config should be located at /plugins/com.mattermost.voice/config when the plugin is enabled.
Could the proxy you have in between be causing the problem?
I would try to fetch the config directly from Mattermost (locally on http) and see if it's found.

@surbiks
Copy link
Author

surbiks commented Jun 20, 2020

i check mattermost plugins location in server and no any config file in /plugins/com.mattermost.voice/
try to change settings and save again but its not store config to file , no any config file in plugin folder.

my proxy shouldn't be a problem because i have several service in my server and all of theme use this proxy

update:
i now create config manually in server and config file loaded.but have some error again :
122
123

@surbiks
Copy link
Author

surbiks commented Jun 20, 2020

i think problem is mattermost server address beacuse i use custom address like https://xyz.ss/app/mm for mattermost but your plugin cant use it. i check your screen plugin and its have same problem in upload file

@streamer45
Copy link
Owner

@golil

I see, you have the Mattermost installation in a subpath. That explains it.
I've pushed a fix and published a new release. Let me know if that works 👍

@surbiks
Copy link
Author

surbiks commented Jun 20, 2020

i use new release but not work

3232

@streamer45
Copy link
Owner

That looks like the proxy is not redirecting properly then. Is the recorder.worker.js file in the plugin's public folder?

@surbiks
Copy link
Author

surbiks commented Jun 20, 2020

That looks like the proxy is not redirecting properly then. Is the recorder.worker.js file in the plugin's public folder?

yes its located in plugins folder.
how can solved this? i use nginx

@streamer45
Copy link
Owner

@golil

First of all I'd check if your SiteURL is properly set. It needs to include the subpath. You can find more specific information here.
Also, a sample of your nginx configuration would be useful.

@surbiks
Copy link
Author

surbiks commented Jun 22, 2020

location /app/mm {  
    gzip on;

    proxy_set_header Connection "";  
    proxy_set_header Host $http_host;  
    proxy_set_header X-Real-IP $remote_addr;  
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;  
    proxy_set_header X-Forwarded-Proto $proxy_x_forwarded_proto;  
    proxy_set_header X-Frame-Options SAMEORIGIN;  
    proxy_buffers 256 16k;  
    proxy_buffer_size 16k;  
    proxy_read_timeout 600s;  

    include /opt/app/conf.d/restrictions.conf;  

    set $upstream http://mattermost:8000;  
    proxy_pass $upstream;  
}  

its my proxy config, Site URL is set correctly.

@streamer45
Copy link
Owner

Can you try and see if fetching https://yoursite/app/mm/static/plugins/com.mattermost.voice/public/recorder.worker.js works?

@surbiks
Copy link
Author

surbiks commented Jun 22, 2020

Can you try and see if fetching https://yoursite/app/mm/static/plugins/com.mattermost.voice/public/recorder.worker.js works?

no not work.
but this work https://mysite/app/mm/static/plugins/com.mattermost.voice/com.mattermost.voice_8d7088889a8f7053_bundle.js

@streamer45
Copy link
Owner

That's expected being a static file. But every other plugin related file should be accessible through:

https://$SITE_URL/plugins/com.mattermost.voice/public/somefile

Does the config endpoint work now?

https://yoursite/app/mm/plugins/com.mattermost.voice/config

@surbiks
Copy link
Author

surbiks commented Jun 24, 2020

That's expected being a static file. But every other plugin related file should be accessible through:

https://$SITE_URL/plugins/com.mattermost.voice/public/somefile

Does the config endpoint work now?

https://yoursite/app/mm/plugins/com.mattermost.voice/config

yes config endpoint work
Screenshot from 2020-06-24 13-31-27

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants