Skip to content
This repository has been archived by the owner on Feb 27, 2020. It is now read-only.

Homestead does not work if SCTP not installed #54

Open
plwhite opened this issue Nov 14, 2016 · 3 comments
Open

Homestead does not work if SCTP not installed #54

plwhite opened this issue Nov 14, 2016 · 3 comments

Comments

@plwhite
Copy link
Collaborator

plwhite commented Nov 14, 2016

Symptoms

Homestead hangs on startup and does not function (hitting bug #49). Underlying cause appears to be that the node kernel does not have SCTP installed (and the OS does not have it available - this is a standard debian release on GKE which may not support SCTP).

Error message is as follows.

    10-11-2016 17:44:47.064 UTC Status diameterstack.cpp:573: Starting Diameter stack
    10-11-2016 17:44:47.066 UTC Error freeDiameter: ERROR: in '(*sock = socket(family, SOCK_STREAM, IPPROTO_SCTP))' :       Protocol not supported
    10-11-2016 17:44:47.066 UTC Error freeDiameter: ERROR: in '(fd_sctp_create_bind_server( &cnx->cc_socket, cnx->cc_family, ep_list, port ))' :    Protocol not supported
    10-11-2016 17:44:47.066 UTC Error freeDiameter: ERROR: in '(s->conn = fd_cnx_serv_sctp(fd_g_config->cnf_port, empty_conf_ep ? ((void *)0) : &fd_g_config->cnf_endpoints))' :    Protocol not supported
    10-11-2016 17:44:47.066 UTC Error freeDiameter: ERROR: in '((fd_servers_start()))' :    Protocol not supported
    10-11-2016 17:44:47.066 UTC Error main.cpp:803: Failed to initialize Diameter stack - function fd_core_start, rc 93
    10-11-2016 17:44:47.066 UTC Status main.cpp:804: Homestead is shutting down

Probable resolution is to disable SCTP.

Impact

Deployment DOA.

Release and environment

GKE.

Steps to reproduce

See above - install on GKE.

@plwhite plwhite changed the title Homestead does not work if SCTP installed Homestead does not work if SCTP not installed Nov 14, 2016
@plwhite
Copy link
Collaborator Author

plwhite commented Nov 14, 2016

Workaround - add the following line to the end of clearwater/base/Dockerfile:

RUN sed -i 's/SCTP_streams.*/No_SCTP;/' /usr/share/clearwater/bin/generic_create_diameterconf

Probably not the right fix, but seems to get past the issue.

@MatMeredith
Copy link
Contributor

MatMeredith commented Nov 18, 2016

Fix for this (and explanation) is available here: Metaswitch/clearwater-infrastructure#395 Not merged yet though as it needs testing.

@eleanor-merry
Copy link
Contributor

Ported to Metaswitch/project-clearwater-issues#12

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

No branches or pull requests

3 participants