13 Replies Latest reply: Jan 30, 2013 11:45 AM by garmstrong
mickyware Level 1 Level 1 (0 points)

I have error in  Server

 

A networking error occurred while trying to communicate with the server.

If you continue to have problems, check your network connection and restart Server.

 

then every service can't turn ON

it's only show "Error Reading Settings"

 

I get this message in Console.

 

7/27/12 11:37:02.671 PM Server[10708]: Error: The server '127.0.0.1' reported an error while processing a command of type: 'getLoggedEvents' in plug-in: 'servermgr_info'. Error: Error Domain=XSActionErrorDomain Code=499 "The certificate for this server is invalid. You might be connecting to a server that is pretending to be “127.0.0.1” which could put your confidential information at risk." UserInfo=0x7ff047c36590 {NSLocalizedDescription=The certificate for this server is invalid. You might be connecting to a server that is pretending to be “127.0.0.1” which could put your confidential information at risk., originalError=Error Domain=NSURLErrorDomain Code=-1202 "The certificate for this server is invalid. You might be connecting to a server that is pretending to be “127.0.0.1” which could put your confidential information at risk." UserInfo=0x7ff046c95470 {NSURLErrorFailingURLPeerTrustErrorKey=<SecTrust 0x7ff046d8c050 [0x7fff7bd15190]>, NSLocalizedRecoverySuggestion=Would you like to connect to the server anyway?, NSUnderlyingError=0x7ff042cdcb90 "The certificate for this server is invalid. You might be connecting to a server that is pretending to be “127.0.0.1” which could put your confidential information at risk.", NSErrorPeerCertificateChainKey=(

    "<SecCertificate 0x7ff046c57df0 [0x7fff7bd15190]>"

), NSLocalizedDescription=The certificate for this server is invalid. You might be connecting to a server that is pretending to be “127.0.0.1” which could put your confidential information at risk., NSErrorFailingURLKey=https://127.0.0.1:311/commands/servermgr_info, NSErrorFailingURLStringKey=https://127.0.0.1:311/commands/servermgr_info, NSErrorClientCertificateStateKey=0}}


Mac mini, OS X Server
  • 1. Re: My MacMini Server not working in OSX10.8
    dreness Level 1 Level 1 (30 points)

    Hi,

     

    Is this an upgrade or a new server?

     

    The error seems to be related to SSL; do you have any custom SSL certificates? Server.app uses SSL to commuicate with the server it is managing, even if it is running on the server itself - it looks like the SSL cert used for the Server.app connection to the server has some problem; this is distinct from the SSL certs used by *services* (like mail, calendar, etc).

     

    Check out the settings in Server.app under Hardware --> your server --> settings --> SSL Certificate (click the Edit button) - look under the menu to see the list of certificates; on a new server you should see two self-signed certs. If you then choose "manage certificates" from the gear menu, you should see an additional 'fallback' cert. I'm not suggesting you make any changes here, but I am curious what you see in there.

     

    Perhaps there was something weird about the network config when Server.app ran through the initial setup, causing something funky with the SSL certs... There may be evidence of this in /Library/Logs/ServerSetup.log. If you want to 'reset' and try again, it's safe to move Server.app to the trash and then re-install it to redo the initial server setup - any server user data should remain in /Library/Server.

     

    Hope this helps,

    -dre

  • 2. Re: My MacMini Server not working in OSX10.8
    mickyware Level 1 Level 1 (0 points)

    Thank you very much dreness. ^_^

    Now it's look like work. But have 1 error from DNS it's "Error Reading Settings."

  • 3. Re: My MacMini Server not working in OSX10.8
    DenisF Level 2 Level 2 (150 points)

    Even if you are probably more experts than me, have a look to my post:

     

    TIPS: OS X server installation lessons learnt (for non Guru)

  • 4. Re: My MacMini Server not working in OSX10.8
    mickyware Level 1 Level 1 (0 points)

    Now only Wiki Error

     

    and show message in browser

     

    Collaboration::PGCQueryError in Sources#index

    Showing /Applications/Server.app/Contents/ServerRoot/usr/share/collabd/coreclient/app/vi ews/layouts/application.html.erb where line #3 raised:

    Error executing query [INSERT INTO entity_changesets (uid, entity_uid_fk, entity_revision, change_type, change_action, change_fields, change_data_bin, change_time, change_user_fk) VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9)]: ERROR:  time zone displacement out of range: "2012-08-01 22:44:44.828+064204" 

     

    Extracted source (around line #3):

    1: <% action_menu_items = WikiServerUI.action_menu_items({ 2:      :page_context => page_context, 3:     :service_client => service_client, 4:     :user => @user, 5:     :controller => self 6: }) %> 

     

     

    Rails.root: /Applications/Server.app/Contents/ServerRoot/usr/share/collabd/coreclient

    Application Trace | Framework Trace | Full Trace

    app/controllers/application_controller.rb:228:in `service_client' app/views/layouts/application.html.erb:3:in `_app_views_layouts_application_html_erb___1989649751_2287828060_0' app/controllers/application_controller.rb:42:in `render_server_error' app/controllers/application_controller.rb:41:in `render_server_error'

     

    Request

    Parameters:

    None

     

    Show session dump

    Show env dump

    Response

    Headers:

    None
  • 5. Re: My MacMini Server not working in OSX10.8
    Mark23 Level 3 Level 3 (975 points)

    Error reading settings... I have them too... In Lion Server it was a problem with the new database which was changed from MySQL to PostgreSQL. Maybe resetting postgres helps?

  • 6. Re: My MacMini Server not working in OSX10.8
    mickyware Level 1 Level 1 (0 points)

    I have clean setup OSX(10.8) and server already. But the error same before and I check PostgreSQL it's running noproblem T_T

  • 7. Re: My MacMini Server not working in OSX10.8
    Mark23 Level 3 Level 3 (975 points)

    The problem wasn't that it didn't run, there was a role missing called collab.

     

    In Mountain Lion the option to solve the problem are somewhat limited, it used to be:

     

    sudo sh /System/Library/ServerSetup/CommonExtras/PostgreSQLExtras/CoreCollaborationPost g reSQLExtras.sh

     

    That would build the roles and set up the database for use with wiki.

     

    I need to find another way to reset postgres under OS X Server... I knew there were multiple commands in that file.

     

    Well hopefully there's a good workaround for this in OS X Server.

  • 8. Re: My MacMini Server not working in OSX10.8
    mickyware Level 1 Level 1 (0 points)

    I get this

    sh: /System/Library/ServerSetup/CommonExtras/PostgreSQLExtras/CoreCollaborationPost : No such file or directory

     

    OMG

  • 9. Re: My MacMini Server not working in OSX10.8
    Mark23 Level 3 Level 3 (975 points)

    Well that is because the file is no longer there, sorry. All problems in Lion Server with Error Reading Settings were related to PostgreSQL, which Apple implemented because the license of MySQL changed in a way that it couldn't be bundled with commercial software, if I recall correctly.

     

    I do not know the fix for OS X Server yet, but my upgraded wiki runs well. I have a different server for my wiki and my web services, as do I have a different one for Open Directory, like recommended.

     

    There was absolutely no way I could get the wiki run in a stable fashion alongside the web server.

  • 10. Re: My MacMini Server not working in OSX10.8
    mickyware Level 1 Level 1 (0 points)

    Thank you very much Mark23.

    but I can't understand I setup everything new. I buy everything from AppStore. OSX19.99$/Server19.99$. but only me can't use it. I hope one day somebody solve this problem.

     

    And I really thank you again Mark23

  • 11. Re: My MacMini Server not working in OSX10.8
    jonizen Level 1 Level 1 (0 points)

    I got both wiki and webserver running along without problems, i got my blogg page hosted on webservice and a wiki page up and running.

  • 12. Re: My MacMini Server not working in OSX10.8
    dbair Level 1 Level 1 (0 points)

    I too have this error with the wiki on a newly purchased Mac Mini which I also newly purchased the OSX Server app. After lots of research it appears to be a but in the Ruby on rails used for the Wiki. The main error blocking the Wiki app is "Time zone displacement out of range" which is preventing the wiki database from being built on Postgress (which is running no problem for the other server apps). Not sure if Apple is aware of this bug, but my server app just crashed this morning and I took advantage of submitting that error information to also document the wiki error, too.

  • 13. Re: My MacMini Server not working in OSX10.8
    garmstrong Level 1 Level 1 (0 points)

    I am having the same problem.  I was upgrading the server to Snow Leopard and the latest accompanying Server App.

     

    It first started with "An SSL error has occurred and a secure connection to the server cannot be made"  An Apple solution said to get into the Keychain Access and type in "com.apple.servermgrd" in the search box and highlight the two that come up (identity preference and certificate) - and then delete them.  A red circle X will appear over them. 

     

    Then I proceeded to set up again, and all went fine until a yellow trianlge came up which described failing to upgrade services - I clicked "Finish" and the server set everything up except Wiki, which then produced the error "An error occurred on the server while reading settngs.  The error occurred whil reading settings for the Wiki service."