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

Docker installation not working #430

Open
pezzeonline opened this issue Oct 11, 2022 · 14 comments
Open

Docker installation not working #430

pezzeonline opened this issue Oct 11, 2022 · 14 comments
Assignees
Labels
bug Something isn't working

Comments

@pezzeonline
Copy link

Describe the bug
When I launch the command in the documentation I receive always the same error:

ERROR: for mediaserver Container "327cdb9899a6" is unhealthy.

docker logs give me this error on the mediaserver container:

[INFO  tini (1)] Spawned child process './routr' with pid '8'
[INFO  tini (1)] Main child exited with signal (with signal 'Terminated')

To Reproduce
Steps to reproduce the behavior:

  1. Run the suggested command:
docker run -it --rm \
  -e CONFIG_PATH=$(pwd)/fonoster/config \
  --volume /var/run/docker.sock:/var/run/docker.sock \
  --volume $(pwd)/fonoster:/out:rw \
  fonoster/fonoster
  1. Wait for the error

Expected behavior
Application has to start

System information (please complete the following):

  • OS: Ubuntu Server 22.04 on Intel, Mac OSX 12.6 on Apple M1
@psanders
Copy link
Member

Hi @pezzeonline,

Thanks for taking the time to try Fonoster. We will have someone on the team triaging this issue.

cc: @YuriCodes @efraa

@YuriCodes
Copy link
Contributor

Hello @pezzeonline thank you for reaching out. We are currently working on giving you an accurate solution so you can get back to your project. Thank you for your patience

@psanders
Copy link
Member

@efraa I am bringing this to the board as the next thing that needs attention.

@chknus
Copy link

chknus commented Oct 20, 2022

Any updates on this? 😊

@psanders
Copy link
Member

@chknus we can confirm we are seeing the same issue.

However, we looking at the root of the problem.

I hope to have more information next week.

@pezzeonline
Copy link
Author

By the way if you start mediaserver alone it is working well using documented command:

docker run -it \
    -p 6060:6060 \
    -p 8088:8088 \
    -p 10000-10010:10000-10010 \
    -e EXTERN_ADDR=${you host address} \
    -e SIPPROXY_HOST=${sip proxy address} \
    -e SIPPROXY_USERNAME=${username at sip proxy} \
    -e SIPPROXY_SECRET=${secret at sip proxy} \
    -e RTP_PORT_START=10000 \
    -e RTP_PORT_END=10010 \
    -e ENABLE_TEST_ACCOUNT=true \
    fonoster/mediaserver

Same information (not error as I wrote):
[INFO tini (1)] Spawned child process '/run.sh' with pid '8'
but boot finish without problems.

@psanders
Copy link
Member

When running as part of Fonoster, the MediaServer depends on Routr.

For some reason, the MediaServer can't register to Routr, showing an Unhealthy state.

We didn't make much progress on this issue, but I will try to keep this thread updated.

@psanders
Copy link
Member

psanders commented Nov 4, 2022

@efraa I was able to install Fonoster on my Intel, however it failed on the M1. I will do more tests, but it feels like M1s that might be the problem.

@kymppi
Copy link

kymppi commented Nov 5, 2022

It's probably something with the CPU architecture. Intel cpus have x86_64 but M1 chips use arm. Most likely you will need to add cross-building

@psanders
Copy link
Member

@kymppi we checked an confirm is not an issue with the CPU architecture since Routr runs fine as a standalone service using Docker. We will continue triaging this issue and keep the thread updated.

cc @pezzeonline

@pezzeonline
Copy link
Author

@kymppi we checked an confirm is not an issue with the CPU architecture since Routr runs fine as a standalone service using Docker. We will continue triaging this issue and keep the thread updated.

cc @pezzeonline

Thank you. Actually, as I wrote in the first post, I have the same error on a Intel server with Ubuntu 22.04 LTS

@kymppi
Copy link

kymppi commented Nov 12, 2022

Thank you. Actually, as I wrote in the first post, I have the same error on a Intel server with Ubuntu 22.04 LTS

Oh lmao, I just read the macos part :P

@psanders
Copy link
Member

Quick update.

TLDR: Made some progress but it seems that this installer needs a lot more work.

Found few issues with the docker installer.

Addressed the issues in the this branch.

Tested the fixes on Ubuntu @ DigitalOcean and my M1.

After installing I had to stop/start the server due to the MediaServer.

The installation is considerably slower on my M1 (potentially due to QEMU.)

More to follow.

@damidani
Copy link

damidani commented Aug 28, 2023

Hello @psanders

I have the same problem. How do I install Fonoster with your branch?
If not, how can I get around the problem?

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

7 participants