Web admin page blank

Home Forums MongooseIM Web admin page blank

This topic contains 4 replies, has 3 voices, and was last updated by  erszcz 1 year, 2 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #63497

    nunohorta
    Member

    Hi

    I just installed mongooseim on Centos 7 64 bits. It starts fine, no errors on logs. On the configuration I only added an admin user:

    {acl, admin, {user, “admin”, “localhost”}}

    when I access http://myipaddress:5280/admin/

    there’s no errors. Just an amazing white page. It doesn’t prompt for username or password. I tried to restart the services a couple of time but it doesn’t seem to affect and the logs seem okay.

    Any ideas?

    #64239

    Mike Silvers
    Member

    Any luck on this? I am having the same problem.

    #64341

    erszcz
    Member

    MongooseIM doesn’t support the old ejabberd-style web admin panel. That panel was buggy, didn’t really allow for complete configuration of the server and was dropped to minimize maintenance burden. There’s no web interface to the server at the moment. Depending on what you want to do please use the JSON metrics API, one of Exometer metrics publishers or mongooseimctl for admin tasks (possibly with some extra mod_admin_* modules that have to be loaded from ejabberd.cfg).

    • This reply was modified 1 year, 2 months ago by  erszcz.
    #64343

    nunohorta
    Member

    I’ve enabled JSON metrics API following MongooseIM documentation but I just get 404 responses. Do you know if MongooseIM supports xml_rpc calls like ejabberd?

    #64397

    erszcz
    Member

    REST metrics API is described here: http://mongooseim.readthedocs.org/en/latest/developers-guide/REST-interface-to-metrics/
    When I curl the suggested metrics URL I get the following (jq is there just for readability):

    $ curl http://localhost:5280/api/metrics/ 2>/dev/null | jq .metrics[]
    "adhoc_local_commands"
    "adhoc_local_items"
    "anonymous_purge_hook"
    "c2s_stream_features"
    "c2s_unauthenticated_iq"
    "disco_info"
    "disco_local_features"
    "disco_local_identity"
    "disco_local_items"
    "disco_sm_features"
    "disco_sm_identity"
    "disco_sm_items"
    "host_config_update"
    "local_send_to_resource_hook"
    "mam_archive_time"
    "mam_lookup_messages"
    "mam_lookup_time"
    "mam_muc_purge_multiple_message"
    "mam_purge_multiple_message"
    "modMamArchiveRemoved"
    "modMamArchived"
    "modMamDropped"
    "modMamDropped2"
    "modMamDroppedIQ"
    "modMamFlushed"
    "modMamForwarded"
    "modMamLookups"
    "modMamMultiplePurges"
    "modMamPrefsGets"
    "modMamPrefsSets"
    "modMamSinglePurges"
    "modMucMamArchiveRemoved"
    "modMucMamArchived"
    "modMucMamForwarded"
    "modMucMamLookups"
    "modMucMamMultiplePurges"
    "modMucMamPrefsGets"
    "modMucMamPrefsSets"
    "modMucMamSinglePurges"
    "modPresenceSubscriptions"
    "modPresenceUnsubscriptions"
    "modPrivacyGets"
    "modPrivacyPush"
    "modPrivacySets"
    "modPrivacySetsActive"
    "modPrivacySetsDefault"
    "modPrivacyStanzaAll"
    "modPrivacyStanzaBlocked"
    "modRegisterCount"
    "modRosterGets"
    "modRosterPush"
    "modRosterSets"
    "modUnregisterCount"
    "offline_message_hook"
    "privacy_get_user_list"
    "privacy_updated_list"
    "resend_offline_messages_hook"
    "roster_get_jid_info"
    "roster_get_subscription_lists"
    "roster_get_versioning_feature"
    "roster_in_subscription"
    "roster_out_subscription"
    "sessionAuthAnonymous"
    "sessionAuthFails"
    "sessionCount"
    "sessionLogouts"
    "sessionSuccessfulLogins"
    "sm_broadcast"
    "unset_presence_hook"
    "xmppErrorIq"
    "xmppErrorMessage"
    "xmppErrorPresence"
    "xmppErrorTotal"
    "xmppIqReceived"
    "xmppIqSent"
    "xmppMessageBounced"
    "xmppMessageReceived"
    "xmppMessageSent"
    "xmppPresenceReceived"
    "xmppPresenceSent"
    "xmppStanzaCount"
    "xmppStanzaDropped"
    "xmppStanzaReceived"
    "xmppStanzaSent"

    Please note that by default MongooseIM is intentionally configured to only accept metrics requests from the local host. It’s due to the fact that the same interface can be used to perform actions (like deleting users). You can change this by adjusting ejabberd.cfg – change localhost to _ – but keep in mind it is not advised when running a server exposed in an untrusted network (like internet):

    ` { 5280, ejabberd_cowboy, [
    {num_acceptors, 10},
    {max_connections, 1024},
    {modules, [
    %% Modules used here should also be listed in the MODULES section.
    --> {"localhost", "/api", mongoose_api, [{handlers, [mongoose_api_metrics,
    mongoose_api_users]}]},
    {“_”, “/http-bind”, mod_bosh},
    {“_”, “/ws-xmpp”, mod_websockets}
    %% Uncomment to serve static files
    %{“_”, “/static/[...]“, cowboy_static,
    % {dir, “/var/www”, [{mimetypes, cow_mimetypes, all}]}
    %},
    ]}`

    • This reply was modified 1 year, 2 months ago by  erszcz.
    • This reply was modified 1 year, 2 months ago by  erszcz.
Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.