Come si corregge l'errore "servermgr_certs" quando si fa clic su ProfileManager in OSX Server Server.app?

1

Quando si fa clic sul servizio Profile Manager nella barra laterale in Server.app, viene visualizzato un errore:

An error occurred on the server while processing a command. The error occurred while processing a command of type 'exportIdentity' in plug-in 'servermgr_certs'.

Eseguendo il comando 'syslog -w 10' allo stesso tempo ottengo il seguente registro:

Dec  5 15:42:32 server1.fm Server[69967] <Warning>: [XSCertificate certificateWithDictionary:] returned nil
Dec  5 15:42:33 server1.fm servermgrd[68172] <Error>: servermgr_web: processing webApp:com.apple.webapp.postgres
Dec  5 15:42:34 server1.fm sudo[70631] <Notice>:     root : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/bin/psql -U webauth -d webauth -c SELECT max(version) FROM schema_migrations
Dec  5 15:42:34 server1.fm servermgrd[68172] <Notice>: servermgr_web: enableWebApp command succeeded for web app com.apple.webapp.postgres
Dec  5 15:42:38 server1.fm servermgrd[68172] <Error>: servermgr_web: processing webApp:com.apple.webapp.postgres
Dec  5 15:42:39 server1.fm sudo[70653] <Notice>:     root : TTY=unknown ; PWD=/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend ; USER=root ; COMMAND=/usr/bin/psql -U webauth -d webauth -c SELECT max(version) FROM schema_migrations
Dec  5 15:42:39 server1.fm servermgrd[68172] <Notice>: servermgr_web: disableWebApp command succeeded for web app com.apple.webapp.postgres
Dec  5 15:42:39 server1.fm Server[69967] <Warning>: Error: The server '127.0.0.1' reported an error while processing a command of type: 'exportIdentity' in plug-in: 'servermgr_certs'. Error: Error Domain=XSActionErrorDomain Code=0 "NIL_RESPONSE_ERR (*** -[__NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[0])" UserInfo=0x7feda3d2aec0 {NSLocalizedDescription=NIL_RESPONSE_ERR (*** -[__NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[0])}

Si noti che non ho Profile Manager attivato, né 'Device Management' è stato configurato, quindi sono confuso sul problema del certificato che potrebbe esserci. Se provo a configurare Gestione periferiche, ottengo l'errore sopra riportato oppure ottengo la procedura guidata, dove posso fare clic su "Fine", ma poi ricevere un altro errore:

An error with code -1 occurred

Che appare come il seguente nel registro di sistema:

Dec  5 16:00:15 server1.fm servermgrd[68172] <Error>: servermgr_web: processing webApp:com.apple.webapp.postgres
Dec  5 16:00:16 server1.fm sudo[71295] <Notice>:     root : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/bin/psql -U webauth -d webauth -c SELECT max(version) FROM schema_migrations
Dec  5 16:00:16 server1.fm servermgrd[68172] <Notice>: servermgr_web: enableWebApp command succeeded for web app com.apple.webapp.postgres
Dec  5 16:00:21 server1.fm servermgrd[68172] <Error>: servermgr_web: processing webApp:com.apple.webapp.postgres
Dec  5 16:00:22 server1.fm sudo[71318] <Notice>:     root : TTY=unknown ; PWD=/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend ; USER=root ; COMMAND=/usr/bin/psql -U webauth -d webauth -c SELECT max(version) FROM schema_migrations
Dec  5 16:00:22 server1.fm servermgrd[68172] <Notice>: servermgr_web: disableWebApp command succeeded for web app com.apple.webapp.postgres
Dec  5 16:00:22 server1.fm servermgrd[68172] <Error>: servermgr_web: processing webApp:com.apple.webapp.postgres
Dec  5 16:00:23 server1.fm sudo[71338] <Notice>:     root : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/bin/psql -U webauth -d webauth -c SELECT max(version) FROM schema_migrations
Dec  5 16:00:23 server1.fm servermgrd[68172] <Notice>: servermgr_web: enableWebApp command succeeded for web app com.apple.webapp.postgres
Dec  5 16:00:26 server1.fm servermgrd[68172] <Error>: servermgr_web: processing webApp:com.apple.webapp.postgres
Dec  5 16:00:27 server1.fm sudo[71361] <Notice>:     root : TTY=unknown ; PWD=/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend ; USER=root ; COMMAND=/usr/bin/psql -U webauth -d webauth -c SELECT max(version) FROM schema_migrations
Dec  5 16:00:27 server1.fm servermgrd[68172] <Notice>: servermgr_web: disableWebApp command succeeded for web app com.apple.webapp.postgres
Dec  5 16:00:28 server1.fm Server[71083] <Warning>: [XSCertificate certificateWithDictionary:] returned nil
Dec  5 16:00:28 server1.fm servermgrd[68172] <Error>: servermgr_web: processing webApp:com.apple.webapp.postgres
Dec  5 16:00:29 server1.fm sudo[71381] <Notice>:     root : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/bin/psql -U webauth -d webauth -c SELECT max(version) FROM schema_migrations
Dec  5 16:00:29 server1.fm servermgrd[68172] <Notice>: servermgr_web: enableWebApp command succeeded for web app com.apple.webapp.postgres
Dec  5 16:00:32 server1.fm servermgrd[68172] <Error>: servermgr_web: processing webApp:com.apple.webapp.postgres
Dec  5 16:00:32 server1.fm sudo[71404] <Notice>:     root : TTY=unknown ; PWD=/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend ; USER=root ; COMMAND=/usr/bin/psql -U webauth -d webauth -c SELECT max(version) FROM schema_migrations
Dec  5 16:00:32 server1.fm servermgrd[68172] <Notice>: servermgr_web: disableWebApp command succeeded for web app com.apple.webapp.postgres
Dec  5 16:00:32 server1.fm Server[71083] <Warning>: An error with code -1 occurred while setting up Device Management

Qualcuno sa come risolvere questo?

    
posta Simon 05.12.2012 - 06:03
fonte

2 risposte

0

Risulta che il problema è stato con il < < nomehost > Certificato di firma del codice '. Non ero in grado di determinare quale fosse il problema esatto, ma la soluzione era quella di eliminare quel certificato in Accesso Portachiavi e reimpostare Profile Manager, incluso spuntare la casella di controllo 'Firma profili di configurazione'. Questo ha rigenerato il certificato di firma del codice, che il mio server è soddisfatto.

    
risposta data 18.03.2013 - 03:39
fonte
1

Esistono diverse cause per questo errore. Vedi anche:

link

Gli indizi importanti sembrano essere:

<Warning>: [XSCertificate certificateWithDictionary:] returned nil

Dec  5 15:42:39 server1.fm Server[69967] <Warning>: Error: The server '127.0.0.1' reported an error while processing a command of type: 'exportIdentity' in plug-in: 'servermgr_certs'. Error: Error Domain=XSActionErrorDomain Code=0 "NIL_RESPONSE_ERR (*** -[__NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[0])" UserInfo=0x7feda3d2aec0 {NSLocalizedDescription=NIL_RESPONSE_ERR (*** -[__NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[0])}

I profili su iPhone ecc. e la firma del codice Apple Store utilizzano i certificati X509. Così fa HTTPS per il tuo server web e SMTPS sul tuo server di posta, FYI. Quindi, se c'è qualcosa di sbagliato nella catena di certificati, incluso qualsiasi tipo di errore di convalida, potrebbe verificarsi un errore servermgr_certs. Disponi di certificati autofirmati creati tramite Accesso Portachiavi, ad esempio, che hanno campi null?

    
risposta data 07.01.2013 - 04:20
fonte

Leggi altre domande sui tag