Giter VIP home page Giter VIP logo

Comments (11)

izderadicka avatar izderadicka commented on June 11, 2024

Are you using provided Dockerfile for alpine linux?
What exact config/ rguments are you using to run program?

To get more detailed logging (debug) you'll need to compile in debug mode (without --release, binary then will be in target/debug) and set environment variable to RUST_LOG=debug (which will log debug from all creates) or just RUST_LOG=audioserve=debug - to log only debug messages from this binary.

You can also try to strip down features you are not using - compile with --no-default-features and then --features you want. This will leave out unwanted code in case it causes problems.

When exactly the termination of container happens?

  • when streaming some music?
  • when working with files in collections directories (copying new, renaming etc)?
  • or when audioserve is unused?

As exist status is 0 I assume it's not segfault or some other OS enforced termination.

from audioserve.

izderadicka avatar izderadicka commented on June 11, 2024

Also looking now at default logging when running in Docker container it was not ideal - although info logging is enabled for release build, it's not enabled by adding appropriate env. variable (I've fixed it in latest master).
So at least I would recommend to have ENV RUST_LOG=audioserve=info in docker file, then you can see if program terminated normally - as this message should be last one:

INFO  audioserve > Server finished

from audioserve.

Mange avatar Mange commented on June 11, 2024

I run it using this docker-compose configuration:

    audioserve:
      image: izderadicka/audioserve
      container_name: audioserve
      command: ["--allow-symlinks", "/audiobooks"]
      volumes:
        - /home/mange/services/audioserve/config:/home/audioserve/.audioserve
        - /home/mange/services/audioserve/library:/audiobooks
      env_file:
        - /home/mange/services/audioserve/config/secrets.env
      restart: unless-stopped

It happens when the service is not used.

I'll see about recompiling it and trying the debug logs for a bit, but now it's been running without issue for 4 days. I'll recompile it the next time it crashes, just before I also capture the whole output of docker inspect so I had additional clues.

from audioserve.

izderadicka avatar izderadicka commented on June 11, 2024

@Mange Any more crashes? Some logs?

from audioserve.

Mange avatar Mange commented on June 11, 2024

Seems from docker inspect that the current container was started on the 8th of august, a week after my last update. But since then it's been running (Up 2 weeks).

Log is just full of

 ERROR websock > Upgrade is not to websocket
 ERROR websock > It must be upgrade connection

so I can't give you anything from there.

from audioserve.

izderadicka avatar izderadicka commented on June 11, 2024

Thanks,
the error messages are related to the playback position sharing, which is kind of experimental now (position is sent over websocket as file is playing). If you are not using it you can disable it in client by not specifying group.

from audioserve.

Mange avatar Mange commented on June 11, 2024

I am actually trying to use it, though. 😄

from audioserve.

izderadicka avatar izderadicka commented on June 11, 2024

@Mange And is it working? Can you open another issue for these error messages? I'm also trying to use it , but getting different messages

ERROR websock                                       > Socket error Ws

I think I know why this message come from - it's when websocket is closed unexpentantly (mobile device lost connection, rev. proxy closes connection). Here it looks like client is using incorrect websocket request - or maybe it's proxy (normally you need to do some setup on rev. proxy for websockets to work).

from audioserve.

izderadicka avatar izderadicka commented on June 11, 2024

Any update? Still problem with docker image stability?

from audioserve.

Mange avatar Mange commented on June 11, 2024

from audioserve.

izderadicka avatar izderadicka commented on June 11, 2024

@Mange Thanks

from audioserve.

Related Issues (20)

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.