Giter Site home page Giter Site logo

bragi-mpd's Issues

Do I need a websockify instance for each MPD instance

Hi - apologies for the dumb question but if I have multiple instances of MPD running on multiple servers, do I need a separate instance of websockify for each MPD instance to be able to point it at the right host:port? Thanks.

websockify error

Hello,

I have an issue using websockify v0.9.0-2 on the branch mentioned in this PR. I got the following error :

└─> websockify --web . 8800 localhost:6600
/usr/lib/python3.9/site-packages/websockify/websocket.py:30: UserWarning: no 'numpy' module, HyBi protocol will be slower
  warnings.warn("no 'numpy' module, HyBi protocol will be slower")
WebSocket server settings:
  - Listen on :8800
  - Web server. Web root: /tmp/Bragi-MPD
  - No SSL/TLS support (no cert file)
  - proxying from :8800 to localhost:6600
127.0.0.1 - - [19/Jan/2021 17:17:02] code 404, message File not found
127.0.0.1 - - [19/Jan/2021 17:17:07] 127.0.0.1: Plain non-SSL (ws://) WebSocket connection
127.0.0.1 - - [19/Jan/2021 17:17:07] connecting to: localhost:6600
handler exception: 'array.array' object has no attribute 'fromstring'

Confusing install instructions

Hi

Can you please add a concise install steps for those of us who are not developers.

I git clone the repo. I install websockify and the python libs via Debian repo. I enter Bragi-MPD folder


./run 8800 localhost:6600
zsh: no such file or directory: ./run

then I try


python -m SimpleHTTPServer                                                                                                                             ⏎
Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/usr/lib/python2.7/SimpleHTTPServer.py", line 235, in <module>
    test()
  File "/usr/lib/python2.7/SimpleHTTPServer.py", line 231, in test
    BaseHTTPServer.test(HandlerClass, ServerClass)
  File "/usr/lib/python2.7/BaseHTTPServer.py", line 606, in test
    httpd = ServerClass(server_address, HandlerClass)
  File "/usr/lib/python2.7/SocketServer.py", line 417, in __init__
    self.server_bind()
  File "/usr/lib/python2.7/BaseHTTPServer.py", line 108, in server_bind
    SocketServer.TCPServer.server_bind(self)
  File "/usr/lib/python2.7/SocketServer.py", line 431, in server_bind
    self.socket.bind(self.server_address)
  File "/usr/lib/python2.7/socket.py", line 228, in meth
    return getattr(self._sock,name)(*args)
socket.error: [Errno 98] Address already in use

Websocket keeps disconnecting, web client stuck at "Connecting..."

I get this output from websockify:

$ websockify 8800 localhost:6600
WebSocket server settings:
  - Listen on :8800
  - No SSL/TLS support (no cert file)
  - proxying from :8800 to localhost:6600
127.0.0.1 - - [22/Sep/2020 18:13:55] 127.0.0.1: Plain non-SSL (ws://) WebSocket connection
127.0.0.1 - - [22/Sep/2020 18:13:55] connecting to: localhost:6600
127.0.0.1 - - [22/Sep/2020 18:13:58] 127.0.0.1: Plain non-SSL (ws://) WebSocket connection
127.0.0.1 - - [22/Sep/2020 18:13:58] connecting to: localhost:6600
127.0.0.1 - - [22/Sep/2020 18:14:01] 127.0.0.1: Plain non-SSL (ws://) WebSocket connection
127.0.0.1 - - [22/Sep/2020 18:14:01] connecting to: localhost:6600
127.0.0.1 - - [22/Sep/2020 18:14:04] 127.0.0.1: Plain non-SSL (ws://) WebSocket connection
127.0.0.1 - - [22/Sep/2020 18:14:04] connecting to: localhost:6600
127.0.0.1 - - [22/Sep/2020 18:14:07] 127.0.0.1: Plain non-SSL (ws://) WebSocket connection
127.0.0.1 - - [22/Sep/2020 18:14:07] connecting to: localhost:6600

The mdp log shows this:

Sep 22 18:13 : client: [348] opened from 127.0.0.1:41806
Sep 22 18:13 : client: [348] closed
Sep 22 18:13 : client: [349] opened from 127.0.0.1:41828
Sep 22 18:13 : client: [349] closed
Sep 22 18:13 : client: [350] opened from 127.0.0.1:41832
Sep 22 18:13 : client: [350] closed
Sep 22 18:14 : client: [351] opened from 127.0.0.1:41836
Sep 22 18:14 : client: [351] closed
Sep 22 18:14 : client: [352] opened from 127.0.0.1:41838
Sep 22 18:14 : client: [352] closed
Sep 22 18:14 : client: [353] opened from 127.0.0.1:41844
Sep 22 18:14 : client: [353] closed
Sep 22 18:14 : client: [354] opened from 127.0.0.1:41848
Sep 22 18:14 : client: [354] closed
Sep 22 18:14 : client: [355] opened from 127.0.0.1:41850
Sep 22 18:14 : client: [355] closed
Sep 22 18:14 : client: [356] opened from 127.0.0.1:41854

Is this some sort of incompatibility with the current version of mpd? I have mpd 0.21.22-1+b3 and websockify 0.9.0+dfsg1-2. I'm on Debian 10 and I'm using nginx to serve Bragi.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.