[Spce-user] failed to create domain

stefanormc stefanormc at gmail.com
Fri Jan 30 10:36:41 EST 2015


prosody cfg.lua:


admins = { }

modules_enabled = {

	-- Generally required
		"roster"; -- Allow users to have a roster. Recommended ;)
		"saslauth"; -- Authentication for clients and servers. Recommended if you want to log in.
		"tls"; -- Add support for secure TLS on c2s/s2s connections
		"dialback"; -- s2s dialback support
		"disco"; -- Service discovery

	-- Not essential, but recommended
		"private"; -- Private XML storage (for room bookmarks, etc.)
		--"vcard"; -- Allow users to set vCards

	-- These are commented by default as they have a performance impact
		--"privacy"; -- Support privacy lists
		--"compression"; -- Stream compression

	-- Nice to have
		--"version"; -- Replies to server version requests
		--"uptime"; -- Report how long server has been running
		"time"; -- Let others know the time here on this server
		"ping"; -- Replies to XMPP pings with pongs
		"pep"; -- Enables users to publish their mood, activity, playing music and more
		--"register"; -- Allow users to register on this server using a client and change passwords
		-- typically used by an IM client to retrieve the most recent presence information from an offline contact
		"lastactivity"; -- XEP-0012: Last Activity

	-- Admin interfaces
		--"admin_adhoc"; -- Allows administration via an XMPP client that supports ad-hoc commands
		--"admin_telnet"; -- Opens telnet console interface on localhost port 5582

	-- HTTP modules
		--"bosh"; -- Enable BOSH clients, aka "Jabber over HTTP"
		--"http_files"; -- Serve static files from a directory over HTTP
		"websocket"; -- Enables XMPP over websocket

	-- Other specific functionality
		"posix"; -- POSIX functionality, sends server to background, enables syslog, etc.
		--"groups"; -- Shared roster support
		--"announce"; -- Send announcement to all online users
		--"welcome"; -- Welcome users who register accounts
		--"watchregistrations"; -- Alert admins of registrations
		--"motd"; -- Send a message to users when they log in
		--"legacyauth"; -- Legacy authentication. Only used by some old clients and bots.
	-- Sipwise modules
		"sipwise_admin_telnet"; -- Opens telnet console interface on console_interface port 5582
		"sipwise_vcard_cusax";
		"sipwise_vhosts_sql";
		"sipwise_vjud";
		"sipwise_groups";
};

use_libevent = true;
daemonize = true
pidfile = "/var/run/prosody/prosody.pid"

modules_disabled = {
	-- "offline"; -- Store offline messages
	-- "c2s"; -- Handle client connections
	-- "s2s"; -- Handle server-to-server connections
};

allow_registration = false;

ssl = {
	key = "/etc/kamailio/kamailio-selfsigned.key";
	certificate = "/etc/kamailio/kamailio-selfsigned.pem";
}

c2s_require_encryption = true

s2s_secure = true

cross_domain_websocket = true;
consider_websocket_secure = true;

-- we authenticate against kamailio.subscriber using mod_auth_sql
authentication = "sql"

default_storage = "sql"
storage = "sql"

-- used by storage modules
sql = {
	driver = "MySQL",
	database = "prosody",
	username = "prosody",
	password = "qLWaHWnxpYkyh3LobijW",
	host = "localhost"
}

-- used by auth_sql and sipwise_vhosts_sql
auth_sql = {
	driver = "MySQL",
	database = "kamailio",
	username = "prosody",
	password = "qLWaHWnxpYkyh3LobijW",
	host = "localhost"
}
-- used by [sipwise_]admin_telnet
console_port = 5582
console_interface = "127.0.0.1"


log = {
	{ levels = { min =  "info" }, to = "syslog" };
}

VirtualHost "localhost"

------ Components ------
-- You can specify components to add hosts that provide special services,
-- like multi-user conferences, and transports.
-- For more information on components, see http://prosody.im/doc/components

---Set up a MUC (multi-user chat) room server on conference.example.com:
--Component "conference.example.com" "muc"

-- Set up a SOCKS5 bytestream proxy for server-proxied file transfers:
--Component "proxy.example.com" "proxy65"

---Set up an external component (default component port is 5347)
--
-- External components allow adding various services, such as gateways/
-- transports to other networks like ICQ, MSN and Yahoo. For more info
-- see: http://prosody.im/doc/components#adding_an_external_component
--
--Component "gateway.example.com"
--	component_secret = "password"

> On 30 Jan 2015, at 13:20, Victor Seva <vseva at sipwise.com> wrote:
> 
> On 01/30/2015 07:54 AM, stefanormc wrote:
>> hello
>> 
>> I’m stuck in the config of sipwise on creating a domain. I checked
>> around but did not find much except another thread with similar problem
>> that did not help me.
>> 
>> I keep getting:
>> 
>> Failed to create domain. (A service could not be reached, "127.0.0.1",
>> port 5582)
>> 
>> and in fact I do not have anything listening on that port:
>> 
>> Local Address           Foreign Address         State       PID/Program
>> name
>> tcp        0      0 0.0.0.0:5222            0.0.0.0:*              
>> LISTEN      6626/lua5.1     
>> tcp        0      0 0.0.0.0:5269            0.0.0.0:*              
>> LISTEN      6626/lua5.1     
> 
> So prosody is up and running
> 
>> 
>> I checked the config.yml and network.yml and did not notice much wrong
>> except web_int under eth0 instead of lo, is this correct?
>> 
>> My guess is prosody did not start? is that possible?
> 
> attach your /etc/prosody/prosody.cfg.lua





> 
> And what is the ngcp_version here
> 
> _______________________________________________
> Spce-user mailing list
> Spce-user at lists.sipwise.com <mailto:Spce-user at lists.sipwise.com>
> https://lists.sipwise.com/listinfo/spce-user <https://lists.sipwise.com/listinfo/spce-user>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sipwise.com/mailman/private/spce-user_lists.sipwise.com/attachments/20150130/877fc76d/attachment.html>


More information about the Spce-user mailing list