command error(dcos client) against DCOS Cluster - certificate

Finding a solution to get out from this issue.
I've installed DC/OS 1.10 cluster using seven VMs.
Role of each VMs(one bootstrap-node, three mesos-masters, three mesos slaves, OS: ubuntu16.04)
No errors while installation.
The cluster is configured well and also installed client(dcos) to manage cluster through terminal.
When I execute below command
dcos cluster setup http://*.*.*.4
I got message next line.
Error downloading CA certificate from cluster. Please check the provided DC/OS URL
This is my config.yaml that i use for installation.
Any opinions & comments are ok
Thanks you in advance.
Tombart
This is the result of "systemctl list-units dcos*"
and also attached two pictures.
How can i resolve this issue? dcos cluster setup http://...
Yes,I'm using DC/OS(opensource, followed by this https://dcos.io/docs/1.10/installing/custom/)
As you can see my config.yaml.
I add internal dns service with google dns as well.
This is the output regarding spartan service on one of mesos-masters
Oct 23 09:16:34 m-abb20479 spartan-env[11898]: [warning] <0.28886.50>#spartan_handler_fsm:resolve:225 Resolver ({{8,8,4,4},53}) Process exited: normal stacktrace [{spartan_handler_fsm,do_resolve,3,[{file,"/pkg/src/spartan/_build/prod/lib/spartan/src/spa
Oct 23 09:23:09 m-abb20479 spartan-env[11898]: [error] <0.869.0> Lager event handler error_logger_lager_h exited with reason {'EXIT',{{badmatch,[<0.31575.50>,{info,{'DOWN',#Ref<0.0.2097153.96391>,process,<0.31578.50>,noproc}},{wait_for_query,{state,#Por
Oct 23 09:44:40 m-abb20479 spartan-env[11898]: [warning] <0.7478.51>#spartan_handler_fsm:resolve:225 Resolver ({{8,8,4,4},53}) Process exited: normal stacktrace [{spartan_handler_fsm,do_resolve,3,[{file,"/pkg/src/spartan/_build/prod/lib/spartan/src/spar
Oct 23 10:00:09 m-abb20479 spartan-env[11898]: [warning] <0.13739.51>#spartan_handler_fsm:resolve:225 Resolver ({{8,8,8,8},53}) Process exited: normal stacktrace [{spartan_handler_fsm,do_resolve,3,[{file,"/pkg/src/spartan/_build/prod/lib/spartan/src/spa
Oct 23 10:00:10 m-abb20479 spartan-env[11898]: [warning] <0.13775.51>#spartan_handler_fsm:resolve:225 Resolver ({{8,8,8,8},53}) Process exited: normal stacktrace [{spartan_handler_fsm,do_resolve,3,[{file,"/pkg/src/spartan/_build/prod/lib/spartan/src/spa
Oct 23 10:00:10 m-abb20479 spartan-env[11898]: [warning] <0.13766.51>#spartan_handler_fsm:resolve:225 Resolver ({{8,8,4,4},53}) Process exited: normal stacktrace [{spartan_handler_fsm,do_resolve,3,[{file,"/pkg/src/spartan/_build/prod/lib/spartan/src/spa
Oct 23 10:00:40 m-abb20479 spartan-env[11898]: [warning] <0.13976.51>#spartan_handler_fsm:resolve:225 Resolver ({{8,8,4,4},53}) Process exited: normal stacktrace [{spartan_handler_fsm,do_resolve,3,[{file,"/pkg/src/spartan/_build/prod/lib/spartan/src/spa
Oct 23 10:00:40 m-abb20479 spartan-env[11898]: [warning] <0.13971.51>#spartan_handler_fsm:resolve:225 Resolver ({{8,8,8,8},53}) Process exited: normal stacktrace [{spartan_handler_fsm,do_resolve,3,[{file,"/pkg/src/spartan/_build/prod/lib/spartan/src/spa
Oct 23 10:03:15 m-abb20479 spartan-env[11898]: [warning] <0.15053.51>#spartan_handler_fsm:resolve:225 Resolver ({{8,8,4,4},53}) Process exited: normal stacktrace [{spartan_handler_fsm,do_resolve,3,[{file,"/pkg/src/spartan/_build/prod/lib/spartan/src/spa
Oct 23 10:03:15 m-abb20479 spartan-env[11898]: [warning] <0.15058.51>#spartan_handler_fsm:resolve:225 Resolver ({{8,8,8,8},53}) Process exited: normal stacktrace [{spartan_handler_fsm,do_resolve,3,[{file,"/pkg/src/spartan/_build/prod/lib/spartan/src/spa
Oct 23 10:07:55 m-abb20479 spartan-env[11898]: [warning] <0.17068.51>#spartan_handler_fsm:resolve:225 Resolver ({{8,8,4,4},53}) Process exited: normal stacktrace [{spartan_handler_fsm,do_resolve,3,[{file,"/pkg/src/spartan/_build/prod/lib/spartan/src/spa
Oct 23 10:07:55 m-abb20479 spartan-env[11898]: [warning] <0.17066.51>#spartan_handler_fsm:resolve:225 Resolver ({{8,8,8,8},53}) Process exited: normal stacktrace [{spartan_handler_fsm,do_resolve,3,[{file,"/pkg/src/spartan/_build/prod/lib/spartan/src/spa
Oct 23 10:08:58 m-abb20479 spartan-env[11898]: [warning] <0.17501.51>#spartan_handler_fsm:resolve:225 Resolver ({{8,8,4,4},53}) Process exited: normal stacktrace [{spartan_handler_fsm,do_resolve,3,[{file,"/pkg/src/spartan/_build/prod/lib/spartan/src/spa
Oct 23 10:08:59 m-abb20479 spartan-env[11898]: [warning] <0.17509.51>#spartan_handler_fsm:resolve:225 Resolver ({{8,8,8,8},53}) Process exited: normal stacktrace [{spartan_handler_fsm,do_resolve,3,[{file,"/pkg/src/spartan/_build/prod/lib/spartan/src/spa
Oct 23 10:08:59 m-abb20479 spartan-env[11898]: [warning] <0.17508.51>#spartan_handler_fsm:resolve:225 Resolver ({{8,8,4,4},53}) Process exited: normal stacktrace [{spartan_handler_fsm,do_resolve,3,[{file,"/pkg/src/spartan/_build/prod/lib/spartan/src/spa
Oct 23 10:10:54 m-abb20479 spartan-env[11898]: [warning] <0.18307.51>#spartan_handler_fsm:resolve:225 Resolver ({{8,8,4,4},53}) Process exited: normal stacktrace [{spartan_handler_fsm,do_resolve,3,[{file,"/pkg/src/spartan/_build/prod/lib/spartan/src/spa
this is output from one of mesos-slaves
Oct 23 10:02:05 s-0c35686e spartan-env[11468]: [warning] <0.934.39>#spartan_handler_fsm:resolve:225 Resolver ({{8,8,8,8},53}) Process exited: normal stacktrace [{spartan_handler_fsm,do_resolve,3,[{file,"/pkg/src/spartan/_build/prod/lib/spartan/src/spart
Oct 23 10:02:05 s-0c35686e spartan-env[11468]: [warning] <0.953.39>#spartan_handler_fsm:resolve:225 Resolver ({{8,8,4,4},53}) Process exited: normal stacktrace [{spartan_handler_fsm,do_resolve,3,[{file,"/pkg/src/spartan/_build/prod/lib/spartan/src/spart
Oct 23 10:02:05 s-0c35686e spartan-env[11468]: [warning] <0.838.39>#spartan_handler_fsm:resolve:225 Resolver ({{8,8,4,4},53}) Process exited: normal stacktrace [{spartan_handler_fsm,do_resolve,3,[{file,"/pkg/src/spartan/_build/prod/lib/spartan/src/spart
Oct 23 10:02:05 s-0c35686e spartan-env[11468]: [warning] <0.976.39>#spartan_handler_fsm:resolve:225 Resolver ({{8,8,8,8},53}) Process exited: normal stacktrace [{spartan_handler_fsm,do_resolve,3,[{file,"/pkg/src/spartan/_build/prod/lib/spartan/src/spart
Oct 23 10:08:46 s-0c35686e spartan-env[11468]: [error] <0.869.0> Lager event handler error_logger_lager_h exited with reason {'EXIT',{{badmatch,[<0.3854.39>,{info,{'DOWN',#Ref<0.0.3670017.105535>,process,<0.3898.39>,noproc}},{wait_for_query,{state,#Port
Oct 23 10:08:46 s-0c35686e spartan-env[11468]: [error] <0.3854.39> Ranch listener {spartan_tcp_listener,{198,51,100,1}} terminated with reason: function_clause
Oct 23 10:10:35 s-0c35686e spartan-env[11468]: [warning] <0.4615.39>#spartan_handler_fsm:resolve:225 Resolver ({{8,8,8,8},53}) Process exited: normal stacktrace [{spartan_handler_fsm,do_resolve,3,[{file,"/pkg/src/spartan/_build/prod/lib/spartan/src/spar
Oct 23 10:10:35 s-0c35686e spartan-env[11468]: [warning] <0.4586.39>#spartan_handler_fsm:resolve:225 Resolver ({{8,8,4,4},53}) Process exited: normal stacktrace [{spartan_handler_fsm,do_resolve,3,[{file,"/pkg/src/spartan/_build/prod/lib/spartan/src/spar
Oct 23 10:11:13 s-0c35686e spartan-env[11468]: [warning] <0.4895.39>#spartan_handler_fsm:resolve:225 Resolver ({{8,8,4,4},53}) Process exited: normal stacktrace [{spartan_handler_fsm,do_resolve,3,[{file,"/pkg/src/spartan/_build/prod/lib/spartan/src/spar
Oct 23 10:14:25 s-0c35686e spartan-env[11468]: [warning] <0.6245.39>#spartan_handler_fsm:resolve:225 Resolver ({{8,8,4,4},53}) Process exited: normal stacktrace [{spartan_handler_fsm,do_resolve,3,[{file,"/pkg/src/spartan/_build/prod/lib/spartan/src/spar
Oct 23 10:14:25 s-0c35686e spartan-env[11468]: [warning] <0.6292.39>#spartan_handler_fsm:resolve:225 Resolver ({{8,8,8,8},53}) Process exited: normal stacktrace [{spartan_handler_fsm,do_resolve,3,[{file,"/pkg/src/spartan/_build/prod/lib/spartan/src/spar
Oct 23 10:16:29 s-0c35686e spartan-env[11468]: [warning] <0.7159.39>#spartan_handler_fsm:resolve:225 Resolver ({{8,8,8,8},53}) Process exited: normal stacktrace [{spartan_handler_fsm,do_resolve,3,[{file,"/pkg/src/spartan/_build/prod/lib/spartan/src/spar
Oct 23 10:22:31 s-0c35686e spartan-env[11468]: [warning] <0.9709.39>#spartan_handler_fsm:resolve:225 Resolver ({{8,8,8,8},53}) Process exited: normal stacktrace [{spartan_handler_fsm,do_resolve,3,[{file,"/pkg/src/spartan/_build/prod/lib/spartan/src/spar
Oct 23 10:29:17 s-0c35686e spartan-env[11468]: [error] <0.869.0> Lager event handler error_logger_lager_h exited with reason {'EXIT',{{badmatch,[<0.12567.39>,{info,{'DOWN',#Ref<0.0.3670017.122650>,process,<0.12573.39>,noproc}},{wait_for_query,{state,#Po
Oct 23 10:29:17 s-0c35686e spartan-env[11468]: [error] <0.12567.39> Ranch listener {spartan_tcp_listener,{198,51,100,2}} terminated with reason: function_clause

First of all Ubuntu is not between supported systems. I'd be surprised if the installation would be completed successfully. For installing DC/OS on Ubuntu some extra steps are necessary.
What is the output of following command on any master node?
systemctl list-units dcos*
Are all services running? If you open http://*.*.*.4 in a browser, do you see login screen? Have you followed all steps in DC/OS install guide?

Related

Can't start MAMP servers

i am unable to start servers, the 'start servers'-icon flashes green for a second and nothing happens. This is what i get in the apache_error log:
[Mon Dec 26 03:36:16 2016] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Mon Dec 26 03:36:17 2016] [notice] Digest: generating secret for digest authentication ...
[Mon Dec 26 03:36:17 2016] [notice] Digest: done
[Mon Dec 26 03:36:18 2016] [notice] Apache/2.2.31 (Win32) DAV/2 mod_ssl/2.2.31 OpenSSL/1.0.2e mod_fcgid/2.3.9 mod_wsgi/3.4 Python/2.7.6 PHP/7.0.9 mod_perl/2.0.8 Perl/v5.16.3 configured -- resuming normal operations
[Mon Dec 26 03:36:18 2016] [notice] Server built: May 6 2016 10:19:53
[Mon Dec 26 03:36:18 2016] [crit] (22)Invalid argument: Parent: Failed to create the child process.
[Mon Dec 26 03:36:18 2016] [crit] (OS 6)Invalid reference. : master_main: create child process failed. Exiting.
I had the same problem on Windows 10 and disabling Perl worked for me:
C:\MAMP\conf\apache\httpd.conf
...
LoadModule perl_module modules/mod_perl.so
...
I hope this helps.

Permission denied error using datapsuher in CentIOS

Installing/configuring the extension datapusher in a instance of CKAN (version 2.4.1) on CentOS, following the steps of the installation guide from source (production steps), install the datapusher in the default location, configure Apache, etc., starts apache whitin errors with wsgi module:
[Wed Oct 21 17:54:53 2015] [info] mod_wsgi (pid=29799): Starting process 'ckan_gva_dp' with uid=48, gid=48 and threads=15.
[Wed Oct 21 17:54:53 2015] [info] mod_wsgi (pid=29800): Initializing Python.
[Wed Oct 21 17:54:53 2015] [info] mod_wsgi (pid=29804): Initializing Python.
[Wed Oct 21 17:54:53 2015] [info] mod_wsgi (pid=29805): Initializing Python.
[Wed Oct 21 17:54:53 2015] [notice] Apache/2.2.15 (Unix) DAV/2 mod_wsgi/3.2 Python/2.6.6 configured -- resuming normal operations
[Wed Oct 21 17:54:53 2015] [info] Server built: Aug 24 2015 17:50:06
[Wed Oct 21 17:54:53 2015] [info] mod_wsgi (pid=29806): Initializing Python.
But when test datapsher calling to port 8800, try me back a 500 error, with the the following message in the log:
[Wed Oct 21 19:00:55 2015] [info] [client 10.115.100.69] mod_wsgi (pid=29800, process='ckan_gva_dp', application='ckan-gva:8800|'): Loading WSGI script '/etc/ckan/datapusher.wsgi'.
[Wed Oct 21 19:00:55 2015] [error] [client 10.115.100.69] mod_wsgi (pid=29800): Target WSGI script '/etc/ckan/datapusher.wsgi' cannot be loaded as Python module.
[Wed Oct 21 19:00:55 2015] [error] [client 10.115.100.69] mod_wsgi (pid=29800): Exception occurred processing WSGI script '/etc/ckan/datapusher.wsgi'.
[Wed Oct 21 19:00:55 2015] [error] [client 10.115.100.69] Traceback (most recent call last):
[Wed Oct 21 19:00:55 2015] [error] [client 10.115.100.69] File "/etc/ckan/datapusher.wsgi", line 10, in <module>
[Wed Oct 21 19:00:55 2015] [error] [client 10.115.100.69] web.init()
[Wed Oct 21 19:00:55 2015] [error] [client 10.115.100.69] File "/usr/lib/ckan/datapusher/lib/python2.6/site-packages/ckanserviceprovider/web.py", line 50, in init
[Wed Oct 21 19:00:55 2015] [error] [client 10.115.100.69] _configure_logger()
[Wed Oct 21 19:00:55 2015] [error] [client 10.115.100.69] File "/usr/lib/ckan/datapusher/lib/python2.6/site-packages/ckanserviceprovider/web.py", line 121, in _configure_logger
[Wed Oct 21 19:00:55 2015] [error] [client 10.115.100.69] _configure_logger_for_production(logging.getLogger())
[Wed Oct 21 19:00:55 2015] [error] [client 10.115.100.69] File "/usr/lib/ckan/datapusher/lib/python2.6/site-packages/ckanserviceprovider/web.py", line 98, in _configure_logger_for_production
[Wed Oct 21 19:00:55 2015] [error] [client 10.115.100.69] app.config.get('LOG_FILE'), maxBytes=67108864, backupCount=5)
[Wed Oct 21 19:00:55 2015] [error] [client 10.115.100.69] File "/usr/lib/python2.6/logging/handlers.py", line 112, in __init__
[Wed Oct 21 19:00:55 2015] [error] [client 10.115.100.69] BaseRotatingHandler.__init__(self, filename, mode, encoding, delay)
[Wed Oct 21 19:00:55 2015] [error] [client 10.115.100.69] File "/usr/lib/python2.6/logging/handlers.py", line 64, in __init__
[Wed Oct 21 19:00:55 2015] [error] [client 10.115.100.69] logging.FileHandler.__init__(self, filename, mode, encoding, delay)
[Wed Oct 21 19:00:55 2015] [error] [client 10.115.100.69] File "/usr/lib/python2.6/logging/__init__.py", line 835, in __init__
[Wed Oct 21 19:00:55 2015] [error] [client 10.115.100.69] StreamHandler.__init__(self, self._open())
[Wed Oct 21 19:00:55 2015] [error] [client 10.115.100.69] File "/usr/lib/python2.6/logging/__init__.py", line 854, in _open
[Wed Oct 21 19:00:55 2015] [error] [client 10.115.100.69] stream = open(self.baseFilename, self.mode)
[Wed Oct 21 19:00:55 2015] [error] [client 10.115.100.69] IOError: [Errno 13] Permission denied: '/tmp/ckan_service.log'
I tried to change the permissions on the folder /tmp (777), add execute permissions to wsgi script, check that all the dependencies specified in requeriments.txt are installed, with the environment for datapusher active, etc., ckan_service.log was empty...
¿Some idea?

MeteorJS Mongo connection timed out

I have a MeteorJS app that is not connecting to Mongo. It's been deployed using meteor deploy but for some reason it times out when trying to connect to the database :S I can still access the mongo database using meteor mongo and all of the data is present!
I am using Meteor 0.9.3.1 and here are my packages:
standard-app-packages
insecure
underscore
arunoda:npm#0.2.6
mrt:bootstrap-3
http
iron:router
mrt:q#0.9.7
mrt:moment#2.8.1
mrt:twilio-meteor
email
Here are the logs from meteor logs :
[Thu Oct 16 2014 17:39:25 GMT+0000 (UTC)] INFO Exception in setInterval callback: MongoError: connection to [production-db-a3.meteor.io:27017] timed out
at Object.Future.wait (/meteor/dev_bundles/0.3.55/lib/node_modules/fibers/future.js:326:15)
at _.extend._nextObject (packages/mongo/mongo_driver.js:858)
at _.extend.forEach (packages/mongo/mongo_driver.js:892)
at _.extend.map (packages/mongo/mongo_driver.js:902)
at _.extend.fetch (packages/mongo/mongo_driver.js:926)
at Cursor.(anonymous function) [as fetch] (packages/mongo/mongo_driver.js:741)
at Object.residentModel.getActiveResidents (app/shared/collections/residents.js:43:40)
at Object._.extend._run (app/server/services/deviceService/sensorChangeWatchdog.js:6:39)
at app/lib/watchdogFactory.js:7:12
at _.extend.withValue (packages/meteor/dynamics_nodejs.js:56)
- - - - -
at Object.toError (/meteor/containers/450809a5-5a17-5e6e-8233-85e6ad895366/bundle/programs/server/npm/mongo/node_modules/mongodb/lib/mongodb/utils.js:110:11)
at commandHandler (/meteor/containers/450809a5-5a17-5e6e-8233-85e6ad895366/bundle/programs/server/npm/mongo/node_modules/mongodb/lib/mongodb/cursor.js:679:63)
at null.<anonymous> (/meteor/containers/450809a5-5a17-5e6e-8233-85e6ad895366/bundle/programs/server/npm/mongo/node_modules/mongodb/lib/mongodb/db.js:1843:9)
at g (events.js:180:16)
at emit (events.js:98:17)
at Base.__executeAllServerSpecificErrorCallbacks (/meteor/containers/450809a5-5a17-5e6e-8233-85e6ad895366/bundle/programs/server/npm/mongo/node_modules/mongodb/lib/mongodb/connection/base.js:365:29)
at Server.<anonymous> (/meteor/containers/450809a5-5a17-5e6e-8233-85e6ad895366/bundle/programs/server/npm/mongo/node_modules/mongodb/lib/mongodb/connection/repl_set/ha.js:445:10)
at Server.g (events.js:180:16)
at Server.emit (events.js:98:17)
at null.<anonymous> (/meteor/containers/450809a5-5a17-5e6e-8233-85e6ad895366/bundle/programs/server/npm/mongo/node_modules/mongodb/lib/mongodb/connection/server.js:501:88)
[Thu Oct 16 2014 17:41:05 GMT+0000 (UTC)] INFO STATUS running -> killed
[Thu Oct 16 2014 17:41:05 GMT+0000 (UTC)] NOTICE Starting application on port 19159
[Thu Oct 16 2014 17:41:05 GMT+0000 (UTC)] INFO STATUS killed -> starting
[Thu Oct 16 2014 17:41:06 GMT+0000 (UTC)] INFO STATUS starting -> running
[Thu Oct 16 2014 17:41:07 GMT+0000 (UTC)] INFO init

Meteor: Couldn't deploy

I deployed a site successfully a few days ago and was able to configure logins and do other stuff but today it is down. The strange thing is I deploy to a different location without any changes and now I couldn't even access the page to configure stuff. I don't really know how to debug these things. Here is the logs
[Wed Sep 11 2013 15:19:16 GMT+0000 (UTC)] INFO STATUS waiting -> starting
[Wed Sep 11 2013 15:19:16 GMT+0000 (UTC)] INFO STATUS starting -> running
[Wed Sep 11 2013 15:19:17 GMT+0000 (UTC)] WARNING timers.js:103
[Wed Sep 11 2013 15:19:17 GMT+0000 (UTC)] WARNING ^
[Wed Sep 11 2013 15:19:17 GMT+0000 (UTC)] WARNING if (!process.listeners('uncaughtException').length) throw e;
[Wed Sep 11 2013 15:19:17 GMT+0000 (UTC)] WARNING Error: Could not locate any valid servers in initial seed list
at MongoClient.connect.connectFunction (/meteor/containers/6c32717b-367c-bd8f-b229-ad69088fe830/bundle/programs/server/npm/mongo-livedata/main/node_modules/mongodb/lib/mongodb/mongo_client.js:281:52)
at Db.open (/meteor/containers/6c32717b-367c-bd8f-b229-ad69088fe830/bundle/programs/server/npm/mongo-livedata/main/node_modules/mongodb/lib/mongodb/db.js:267:16)
at Server.connect.connectionPool.on.server._serverState (/meteor/containers/6c32717b-367c-bd8f-b229-ad69088fe830/bundle/programs/server/npm/mongo-livedata/main/node_modules/mongodb/lib/mongodb/connection/server.js:499:7)
at EventEmitter.emit (events.js:126:20)
at connection.on._self._poolState (/meteor/containers/6c32717b-367c-bd8f-b229-ad69088fe830/bundle/programs/server/npm/mongo-livedata/main/node_modules/mongodb/lib/mongodb/connection/connection_pool.js:168:15)
at EventEmitter.emit (events.js:99:17)
at Socket.timeoutHandler (/meteor/containers/6c32717b-367c-bd8f-b229-ad69088fe830/bundle/programs/server/npm/mongo-livedata/main/node_modules/mongodb/lib/mongodb/connection/connection.js:463:10)
at Socket.EventEmitter.emit (events.js:93:17)
at Socket._onTimeout (net.js:188:8)
at Timer.list.ontimeout (timers.js:101:19)
[Wed Sep 11 2013 15:19:17 GMT+0000 (UTC)] ERROR Application crashed with code: 1
[Wed Sep 11 2013 15:19:17 GMT+0000 (UTC)] INFO STATUS running -> waiting
Given the timing, looks like the very brief outage from this morning. Could you check it again and let me know if everything is back to normal?

Error setting up ws-security (Apache Rampart/C) for UsernameToken authentication and NO encryption

I'm having problems setting up AXIS2/C web services (axis2/c 1.6.0) with Apache Rampart/C 1.3.0 (not to be confused with their java counterparts, aka just "axis2" and "rampart") for UsernameToken authentication. I want NO encryption because I'm trying to test this with SoapUI first; when I get this working I'll add the encryption stuff (I couldn't set up Rampart/c without security policy either, it just gives me a configuration error).
The webservice works perfectly fine without Rampart. But when I try to configure Rampart for the security, I get this error in the response:
<soapenv:Fault>
<faultcode>soapenv:Client</faultcode>
<faultstring>No Error</faultstring>
</soapenv:Fault>
When I go to the Axis2 logs, I find the following errors:
[Thu May 16 12:17:59 2013] [debug] rampart_sec_header_processor.c(1815) [rampart]Processing security header in Strict layout
[Thu May 16 12:17:59 2013] [debug] rampart_sec_header_processor.c(1824) [rampart]Processing security header element (null)
[Thu May 16 12:17:59 2013] [error] rampart_sec_header_processor.c(1908) [rampart]Unknown security header (null)
[Thu May 16 12:17:59 2013] [error] rampart_sec_header_processor.c(1915) [rampart](null) processing failed
[Thu May 16 12:17:59 2013] [error] rampart_in_handler.c(143) [rampart][rampart_in_handler] Security Header processing failed.
This is quite odd, as if it couldn't find the Security Header at all. I'm suspecting the SOAP Request might have something wrong, but I have no idea what that might be. Or perhaps I found a rare Rampart/c bug?
For the username and password, I used the callback .so provided with the Rampart samples, and with the username "Alice" and password "abcd!1234".
Here's the full listing for the relevant files (IP addresses redacted):
services.xml:
<service name="ws_vacaciones">
<parameter name="wsdl_path">/informix/AXIS2C/services/ws_vacaciones/ws_vacaciones.wsdl</parameter>
<parameter name="ServiceClass">ws_vacaciones</parameter>
<description> I4GL-SOA Published Service - ws_vacaciones </description>
<module ref="rampart"/>
<operation name="ve_traba"/>
<wsp:Policy
xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"
xmlns:sec="http://schemas.xmlsoap.org/ws/2012/12/secext"
xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
<wsp:ExactlyOne>
<wsp:All>
<wsp:Policy>
<sp:UsernameToken sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient"/>
</wsp:Policy>
<rampc:RampartConfig xmlns:rampc="http://ws.apache.org/rampart/c/policy">
<rampc:User>Alice</rampc:User>
<rampc:PasswordType>PasswordText</rampc:PasswordType>
<rampc:PasswordCallbackClass>/informix/AXIS2C/samples/lib/rampartc/libpwcb.so</rampc:PasswordCallbackClass>
</rampc:RampartConfig>
</wsp:All>
</wsp:ExactlyOne>
</wsp:Policy>
</service>
services.xml (alternative; gives same error):
<service name="ws_vacaciones">
<parameter name="wsdl_path">/informix/AXIS2C/services/ws_vacaciones/ws_vacaciones.wsdl</parameter>
<parameter name="ServiceClass">ws_vacaciones</parameter>
<parameter name="InflowSecurity">
<action>
<items>UsernameToken</items>
<passwordCallbackClass>/informix/AXIS2C/samples/lib/rampartc/libpwcb.so</passwordCallbackClass>
</action>
</parameter>
<description> I4GL-SOA Published Service - ws_vacaciones </description>
<module ref="rampart"/>
<operation name="ve_traba"/>
<wsp:Policy
xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"
xmlns:sec="http://schemas.xmlsoap.org/ws/2012/12/secext"
xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
<wsp:ExactlyOne>
<wsp:All>
<wsp:Policy>
<sp:UsernameToken sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient"/>
</wsp:Policy>
<rampc:RampartConfig xmlns:rampc="http://ws.apache.org/rampart/c/policy">
<rampc:User>Alice</rampc:User>
<rampc:PasswordType>PasswordText</rampc:PasswordType>
<rampc:PasswordCallbackClass>/informix/AXIS2C/samples/lib/rampartc/libpwcb.so</rampc:PasswordCallbackClass>
</rampc:RampartConfig>
</wsp:All>
</wsp:ExactlyOne>
</wsp:Policy>
</service>
SOAPUI request:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ws="http://XX.XX.XX.XXX:9090/axis2/services/ws_vacaciones"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<soapenv:Header>
<wsse:Security soapenv:mustUnderstand="0">
<!-- set to 0 for debugging purposes; using 1 gives same errors -->
<wsse:UsernameToken wsu:Id="blah">
<wsse:Username>Alice</wsse:Username>
<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">abcd!1234</wsse:Password>
<wsu:Created>2013-05-14T15:15:00</wsu:Created>
<wsu:Expires>2019-05-14T15:15:00</wsu:Expires>
</wsse:UsernameToken>
</wsse:Security>
</soapenv:Header>
<soapenv:Body>
<ws:ve_traba_request>
<ws:employeeid>12345</ws:employeeid>
<ws:date>2013-04-09</ws:date>
</ws:ve_traba_request>
</soapenv:Body>
</soapenv:Envelope>
RESPONSE:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header/>
<soapenv:Body>
<soapenv:Fault>
<faultcode>soapenv:Client</faultcode>
<faultstring>No Error</faultstring>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
axis2.log (relevant parts):
[Thu May 16 12:17:54 2013] [info] Starting HTTP server thread
[Thu May 16 12:17:59 2013] [debug] http_worker.c(200) Client HTTP version HTTP/1.1
[Thu May 16 12:17:59 2013] [debug] soap_builder.c(930) Identified soap version is soap11
[Thu May 16 12:17:59 2013] [debug] phase.c(210) Invoke the handler request_uri_based_dispatcher within the phase Transport
[Thu May 16 12:17:59 2013] [debug] req_uri_disp.c(100) Checking for service using target endpoint address : http://XX.XX.XXX.XX:9090/axis2/services/ws_vacaciones
[Thu May 16 12:17:59 2013] [debug] req_uri_disp.c(121) Service found using target endpoint address
[Thu May 16 12:17:59 2013] [debug] phase.c(210) Invoke the handler AddressingInHandler within the phase Transport
[Thu May 16 12:17:59 2013] [info] Starting addressing in handler
[Thu May 16 12:17:59 2013] [info] addr_in_handler.c
[Thu May 16 12:17:59 2013] [debug] phase.c(210) Invoke the handler addressing_based_dispatcher within the phase Transport
[Thu May 16 12:17:59 2013] [debug] phase.c(210) Invoke the handler rest_dispatcher within the phase Dispatch
[Thu May 16 12:17:59 2013] [debug] phase.c(210) Invoke the handler soap_message_body_based_dispatcher within the phase Dispatch
[Thu May 16 12:17:59 2013] [debug] soap_body_disp.c(231) Checking for operation using SOAP messagebody's first child's local name : ve_traba__request
[Thu May 16 12:17:59 2013] [debug] phase.c(210) Invoke the handler soap_action_based_dispatcher within the phase Dispatch
[Thu May 16 12:17:59 2013] [debug] soap_action_disp.c(115) Checking for operation using SOAPAction : ve_traba
[Thu May 16 12:17:59 2013] [debug] soap_action_disp.c(146) Operation found using SOAPAction
[Thu May 16 12:17:59 2013] [debug] phase.c(210) Invoke the handler dispatch_post_conditions_evaluator within the phase PostDispatch
[Thu May 16 12:17:59 2013] [debug] phase.c(210) Invoke the handler context_handler within the phase PostDispatch
[Thu May 16 12:17:59 2013] [debug] phase.c(210) Invoke the handler RampartInHandler within the phase Security
[Thu May 16 12:17:59 2013] [debug] rampart_util.c(32) [rampart]Trying to load module /informix/AXIS2C/samples/lib/rampartc/libpwcb.so
[Thu May 16 12:17:59 2013] [debug] class_loader.c(140) /informix/AXIS2C/samples/lib/rampartc/libpwcb.so shared lib loaded successfully
[Thu May 16 12:17:59 2013] [debug] rampart_util.c(48) [rampart]Successfully loaded module /informix/AXIS2C/samples/lib/rampartc/libpwcb.so
[Thu May 16 12:17:59 2013] [debug] rampart_sec_header_processor.c(1815) [rampart]Processing security header in Strict layout
[Thu May 16 12:17:59 2013] [debug] rampart_sec_header_processor.c(1824) [rampart]Processing security header element (null)
[Thu May 16 12:17:59 2013] [error] rampart_sec_header_processor.c(1908) [rampart]Unknown security header (null)
[Thu May 16 12:17:59 2013] [error] rampart_sec_header_processor.c(1915) [rampart](null) processing failed
[Thu May 16 12:17:59 2013] [error] rampart_in_handler.c(143) [rampart][rampart_in_handler] Security Header processing failed.
[Thu May 16 12:17:59 2013] [error] phase.c(233) Handler RampartInHandler invoke failed within phase Security
[Thu May 16 12:17:59 2013] [error] engine.c(696) Invoking phase Security failed
[Thu May 16 12:17:59 2013] [error] engine.c(279) Invoking operation specific phases failed for operation ve_traba
[Thu May 16 12:17:59 2013] [debug] phase.c(210) Invoke the handler RampartOutHandler within the phase MessageOut
[Thu May 16 12:17:59 2013] [debug] rampart_handler_util.c(247) [rampart][rhu] Service is NULL. Check if the security is enabled in the Conf
[Thu May 16 12:17:59 2013] [error] rampart_engine.c(159) [rampart][rampart_engine] Cannot get saved rampart_context
[Thu May 16 12:17:59 2013] [error] rampart_out_handler.c(136) [rampart][rampart_out_handler] ramaprt_context creation failed.
[Thu May 16 12:17:59 2013] [error] phase.c(233) Handler RampartOutHandler invoke failed within phase MessageOut
[Thu May 16 12:17:59 2013] [error] engine.c(696) Invoking phase MessageOut failed
[Thu May 16 12:17:59 2013] [info] Request served in 0.019 seconds
[Thu May 16 12:18:00 2013] [info] Received signal SIGINT. Server shutting down
[Thu May 16 12:18:00 2013] [info] Terminating HTTP server thread
[Thu May 16 12:18:00 2013] [debug] http_svr_thread.c(181) Terminating HTTP server thread.
[Thu May 16 12:18:00 2013] [info] Successfully terminated HTTP server thread
[Thu May 16 12:18:00 2013] [info] Shutdown complete ...
Finally found out what happened. Apparently, SoapUI removes the Security headers before submitting; hence, the (null) Security Header message.
To specify the security headers, I need to doubleclick on the project, click on the "WS-Security Configurations", add an Outgoing WS-Security Configuration, and add a Username entry to that config.
Later, on the request, on the bottom left, I click the "..." button corresponding to the Authentication and Security settings, and under "Outgoing WSS:" choose the Configuration that I just added.
After doing this, the soapfault changes to wsse:InvalidSecurityToken, the description reading "Username Token not expected". So this means I need to fix the rampart/c configuration. But at least now I know what's going on.