Results 1 to 4 of 4

Thread: [SOLVED] can i delete spurious "localhost" server?

Hybrid View

  1. #1
    Join Date
    Mar 2007
    Location
    Small village in the center of Italy
    Posts
    350
    Rep Power
    8

    Default [SOLVED] can i delete spurious "localhost" server?

    I did a mistake some time ago, during upgrade of secondary server (store+mta only server), i forgot to change name during configuration and it created a 3rd server on ldap tree.

    Code:
    $ zmprov gas
    
    localhost
    zimbra-archivio.xxxx.it
    zimbra.xxxx.it
    
    
     zimbra@zimbra ~ ]$ zmprov gs localhost
    # name localhost
    cn: localhost
    objectClass: zimbraServer
    zimbraAdminPort: 7071
    zimbraAdminURL: /zimbraAdmin
    zimbraAttachmentsIndexedTextLimit: 1048576
    zimbraBackupAutoGroupedInterval: 1d
    zimbraBackupAutoGroupedNumGroups: 7
    zimbraBackupAutoGroupedThrottled: FALSE
    zimbraBackupMode: Standard
    zimbraBackupReportEmailRecipients: xxxx@xxxx.com
    zimbraBackupReportEmailRecipients: admin@zimbra-archivio.xxxx.it
    zimbraBackupReportEmailSender: admin@zimbra-archivio.xxxx.it
    zimbraBackupReportEmailSubjectPrefix: ZCS Backup Report
    zimbraBackupSkipBlobs: FALSE
    zimbraBackupSkipHsmBlobs: FALSE
    zimbraBackupSkipSearchIndex: FALSE
    zimbraBackupTarget: /opt/zimbra/backup
    zimbraCalendarCalDavClearTextPasswordEnabled: TRUE
    zimbraCalendarRecurrenceDailyMaxDays: 730
    zimbraCalendarRecurrenceMaxInstances: 0
    zimbraCalendarRecurrenceMonthlyMaxMonths: 360
    zimbraCalendarRecurrenceOtherFrequencyMaxYears: 1
    zimbraCalendarRecurrenceWeeklyMaxWeeks: 520
    zimbraCalendarRecurrenceYearlyMaxYears: 100
    zimbraClusterType: none
    zimbraContactRankingTableRefreshInterval: 7d
    zimbraConvertdURL: http://zimbra.xxxx.com:7047/convert
    zimbraCreateTimestamp: 20091208224932Z
    zimbraDatabaseSlowSqlThreshold: 2s
    zimbraFileUploadMaxSize: 10485760
    zimbraFreebusyPropagationRetryInterval: 1m
    zimbraHsmAge: 30d
    zimbraHsmPolicy: message,document:before:-43200minutes
    zimbraHttpDebugHandlerEnabled: TRUE
    zimbraHttpNumThreads: 250
    zimbraHttpSSLNumThreads: 50
    zimbraId: 1c968302-7234-4dc2-a2b8-5477312a9402
    zimbraImapBindOnStartup: TRUE
    zimbraImapBindPort: 143
    zimbraImapCleartextLoginEnabled: TRUE
    zimbraImapExposeVersionOnBanner: FALSE
    zimbraImapNumThreads: 200
    zimbraImapProxyBindPort: 7143
    zimbraImapSSLBindOnStartup: TRUE
    zimbraImapSSLBindPort: 993
    zimbraImapSSLProxyBindPort: 7993
    zimbraImapSSLServerEnabled: TRUE
    zimbraImapSaslGssapiEnabled: FALSE
    zimbraImapServerEnabled: TRUE
    zimbraLmtpBindOnStartup: FALSE
    zimbraLmtpBindPort: 7025
    zimbraLmtpExposeVersionOnBanner: FALSE
    zimbraLmtpNumThreads: 20
    zimbraLmtpPermanentFailureWhenOverQuota: FALSE
    zimbraLmtpServerEnabled: TRUE
    zimbraLogToSyslog: FALSE
    zimbraMailClearTextPasswordEnabled: TRUE
    zimbraMailContentMaxSize: 10240000
    zimbraMailDiskStreamingThreshold: 1048576
    zimbraMailFileDescriptorBufferSize: 4096
    zimbraMailFileDescriptorCacheSize: 1000
    zimbraMailMode: http
    zimbraMailPort: 80
    zimbraMailProxyPort: 8080
    zimbraMailPurgeSleepInterval: 1m
    zimbraMailRedirectSetEnvelopeSender: TRUE
    zimbraMailReferMode: wronghost
    zimbraMailSSLPort: 443
    zimbraMailSSLProxyPort: 8443
    zimbraMailURL: /zimbra
    zimbraMailUncompressedCacheMaxBytes: 1073741824
    zimbraMailUncompressedCacheMaxFiles: 5000
    zimbraMailUseDirectBuffers: FALSE
    zimbraMailboxMoveSkipBlobs: FALSE
    zimbraMailboxMoveSkipHsmBlobs: FALSE
    zimbraMailboxMoveSkipSearchIndex: FALSE
    zimbraMemcachedBindPort: 11211
    zimbraMemcachedClientBinaryProtocolEnabled: FALSE
    zimbraMemcachedClientExpirySeconds: 86400
    zimbraMemcachedClientHashAlgorithm: KETAMA_HASH
    zimbraMemcachedClientTimeoutMillis: 10000
    zimbraMessageCacheSize: 2000
    zimbraMtaAntiSpamLockMethod: flock
    zimbraMtaAuthEnabled: TRUE
    zimbraMtaAuthHost: zimbra-archivio.xxxx.it
    zimbraMtaAuthTarget: TRUE
    zimbraMtaAuthURL: http://zimbra-archivio.xxxx.it:80/service/soap/
    zimbraMtaDnsLookupsEnabled: TRUE
    zimbraMtaMyDestination: localhost
    zimbraMtaMyNetworks: 127.0.0.0/8 192.168.30.0/24
    zimbraMtaSaslAuthEnable: TRUE
    zimbraMtaTlsAuthOnly: TRUE
    zimbraMtaTlsSecurityLevel: may
    zimbraNotebookFolderCacheSize: 1024
    zimbraNotebookMaxCachedTemplatesPerFolder: 256
    zimbraNotebookPageCacheSize: 10240
    zimbraNotifyBindPort: 7035
    zimbraNotifySSLBindPort: 7036
    zimbraNotifySSLServerEnabled: TRUE
    zimbraNotifyServerEnabled: TRUE
    zimbraPop3BindOnStartup: TRUE
    zimbraPop3BindPort: 110
    zimbraPop3CleartextLoginEnabled: FALSE
    zimbraPop3ExposeVersionOnBanner: FALSE
    zimbraPop3NumThreads: 100
    zimbraPop3ProxyBindPort: 7110
    zimbraPop3SSLBindOnStartup: TRUE
    zimbraPop3SSLBindPort: 995
    zimbraPop3SSLProxyBindPort: 7995
    zimbraPop3SSLServerEnabled: TRUE
    zimbraPop3SaslGssapiEnabled: FALSE
    zimbraPop3ServerEnabled: TRUE
    zimbraRedoLogArchiveDir: redolog/archive
    zimbraRedoLogCrashRecoveryLookbackSec: 10
    zimbraRedoLogDeleteOnRollover: FALSE
    zimbraRedoLogEnabled: TRUE
    zimbraRedoLogFsyncIntervalMS: 10
    zimbraRedoLogLogPath: redolog/redo.log
    zimbraRedoLogRolloverFileSizeKB: 1048576
    zimbraRedoLogRolloverHardMaxFileSizeKB: 4194304
    zimbraRedoLogRolloverMinFileAge: 60
    zimbraRemoteManagementCommand: /opt/zimbra/libexec/zmrcd
    zimbraRemoteManagementPort: 22
    zimbraRemoteManagementPrivateKeyPath: /opt/zimbra/.ssh/zimbra_identity
    zimbraRemoteManagementUser: zimbra
    zimbraReverseProxyConnectTimeout: 120000ms
    zimbraReverseProxyHttpEnabled: FALSE
    zimbraReverseProxyImapEnabledCapability: ACL
    zimbraReverseProxyImapEnabledCapability: BINARY
    zimbraReverseProxyImapEnabledCapability: CATENATE
    zimbraReverseProxyImapEnabledCapability: CHILDREN
    zimbraReverseProxyImapEnabledCapability: CONDSTORE
    zimbraReverseProxyImapEnabledCapability: ENABLE
    zimbraReverseProxyImapEnabledCapability: ESEARCH
    zimbraReverseProxyImapEnabledCapability: ID
    zimbraReverseProxyImapEnabledCapability: IDLE
    zimbraReverseProxyImapEnabledCapability: IMAP4rev1
    zimbraReverseProxyImapEnabledCapability: LIST-EXTENDED
    zimbraReverseProxyImapEnabledCapability: LITERAL+
    zimbraReverseProxyImapEnabledCapability: MULTIAPPEND
    zimbraReverseProxyImapEnabledCapability: NAMESPACE
    zimbraReverseProxyImapEnabledCapability: QRESYNC
    zimbraReverseProxyImapEnabledCapability: QUOTA
    zimbraReverseProxyImapEnabledCapability: RIGHTS=ektx
    zimbraReverseProxyImapEnabledCapability: SASL-IR
    zimbraReverseProxyImapEnabledCapability: SEARCHRES
    zimbraReverseProxyImapEnabledCapability: UIDPLUS
    zimbraReverseProxyImapEnabledCapability: UNSELECT
    zimbraReverseProxyImapEnabledCapability: WITHIN
    zimbraReverseProxyImapEnabledCapability: ESORT
    zimbraReverseProxyImapEnabledCapability: I18NLEVEL=1
    zimbraReverseProxyImapEnabledCapability: SORT
    zimbraReverseProxyImapEnabledCapability: THREAD=ORDEREDSUBJECT
    zimbraReverseProxyImapExposeVersionOnBanner: FALSE
    zimbraReverseProxyImapSaslGssapiEnabled: FALSE
    zimbraReverseProxyImapSaslPlainEnabled: TRUE
    zimbraReverseProxyImapStartTlsMode: only
    zimbraReverseProxyInactivityTimeout: 1h
    zimbraReverseProxyLogLevel: info
    zimbraReverseProxyLookupTarget: FALSE
    zimbraReverseProxyMailEnabled: TRUE
    zimbraReverseProxyPassErrors: TRUE
    zimbraReverseProxyPop3EnabledCapability: EXPIRE 31 USER
    zimbraReverseProxyPop3EnabledCapability: TOP
    zimbraReverseProxyPop3EnabledCapability: UIDL
    zimbraReverseProxyPop3EnabledCapability: USER
    zimbraReverseProxyPop3EnabledCapability: XOIP
    zimbraReverseProxyPop3ExposeVersionOnBanner: FALSE
    zimbraReverseProxyPop3SaslGssapiEnabled: FALSE
    zimbraReverseProxyPop3SaslPlainEnabled: TRUE
    zimbraReverseProxyPop3StartTlsMode: only
    zimbraReverseProxyRouteLookupTimeout: 15s
    zimbraReverseProxyRouteLookupTimeoutCache: 60s
    zimbraReverseProxyWorkerConnections: 10240
    zimbraReverseProxyWorkerProcesses: 4
    zimbraSSLCertificate: -----BEGIN CERTIFICATE-----
    -----END CERTIFICATE-----
    zimbraSSLPrivateKey: -----BEGIN RSA PRIVATE KEY-----
    -----END RSA PRIVATE KEY-----
    zimbraSaslGssapiRequiresTls: FALSE
    zimbraScheduledTaskNumThreads: 20
    zimbraServiceEnabled: mailbox
    zimbraServiceEnabled: mta
    zimbraServiceEnabled: memcached
    zimbraServiceEnabled: stats
    zimbraServiceEnabled: snmp
    zimbraServiceEnabled: spell
    zimbraServiceHostname: zimbra-archivio.xxxx.it
    zimbraServiceInstalled: antivirus
    zimbraServiceInstalled: antispam
    zimbraServiceInstalled: mailbox
    zimbraServiceInstalled: memcached
    zimbraServiceInstalled: mta
    zimbraServiceInstalled: snmp
    zimbraServiceInstalled: stats
    zimbraServiceInstalled: spell
    zimbraSmtpHostname: zimbra-archivio.xxxx.it
    zimbraSmtpPort: 25
    zimbraSmtpSendPartial: FALSE
    zimbraSmtpTimeout: 60
    zimbraSoapExposeVersion: FALSE
    zimbraSoapRequestMaxSize: 15360000
    zimbraSpellAvailableDictionary: en_US
    zimbraSpellCheckURL: http://zimbra-archivio.xxxx.it:7780/aspell.php
    zimbraStatThreadNamePrefix: btpool
    zimbraStatThreadNamePrefix: pool
    zimbraStatThreadNamePrefix: LmtpServer
    zimbraStatThreadNamePrefix: ImapServer
    zimbraStatThreadNamePrefix: ImapSSLServer
    zimbraStatThreadNamePrefix: Pop3Server
    zimbraStatThreadNamePrefix: Pop3SSLServer
    zimbraStatThreadNamePrefix: ScheduledTask
    zimbraStatThreadNamePrefix: Timer
    zimbraStatThreadNamePrefix: AnonymousIoService
    zimbraStatThreadNamePrefix: CloudRoutingReaderThread
    zimbraStatThreadNamePrefix: GC
    zimbraStatThreadNamePrefix: SocketAcceptor
    zimbraStatThreadNamePrefix: Thread
    zimbraTableMaintenanceGrowthFactor: 10
    zimbraTableMaintenanceMaxRows: 1000000
    zimbraTableMaintenanceMinRows: 10000
    zimbraTableMaintenanceOperation: ANALYZE
    zimbraVirusDefinitionsUpdateFrequency: 2h
    zimbraXMPPEnabled: TRUE
    can i delete localhost without any pain?
    tia

  2. #2
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    25

    Default

    Yes; though as always make sure you have a secure backup
    Code:
    su - zimbra
    zmprov ds localhost
    zmcontrol stop ; zmcontrol start

  3. #3
    Join Date
    Mar 2007
    Location
    Small village in the center of Italy
    Posts
    350
    Rep Power
    8

    Default

    localhost is a DisplayName, really it points to:
    Code:
    zimbraServiceHostname: zimbra-archivio.xxxxx.it
    so it is not surprising that when i try to delete localhost:

    Code:
     zmprov ds localhost
    ERROR: service.TOO_MANY_HOPS (mountpoint or proxy loop detected)
    in mailbox.log di zimbra-archivio.xxxx.it i get:

    Code:
    2010-02-20 17:19:49,138 INFO  [btpool0-4://zimbra-archivio.xxxxx.it:7071/service/admin/soap/DeleteServerRequest/DeleteServerRequest] [ip=192.168.30.5;] AuthProvider - Adding auth provider: zimbra com.zimbra.cs.service.ZimbraAuthProvider
    2010-02-20 17:19:49,223 INFO  [btpool0-4://zimbra-archivio.xxxxx.it:7071/service/admin/soap/DeleteServerRequest/DeleteServerRequest] [name=zimbra;ip=192.168.30.5;] soap - DeleteServerRequest
    2010-02-20 17:19:49,488 INFO  [btpool0-5://zimbra-archivio.xxxxx.it:7071/service/admin/soap/DeleteServerRequest/DeleteServerRequest/DeleteServerRequest] [name=zimbra;ip=192.168.30.4;] soap - DeleteServerRequest
    2010-02-20 17:19:49,543 INFO  [btpool0-1://zimbra-archivio.xxxxx.it:7071/service/admin/soap/DeleteServerRequest/DeleteServerRequest/DeleteServerRequest/DeleteServerRequest] [name=zimbra;ip=192.168.30.4;] soap - DeleteServerRequest
    2010-02-20 17:19:49,648 INFO  [btpool0-0://zimbra-archivio.xxxxx.it:7071/service/admin/soap/DeleteServerRequest/DeleteServerRequest/DeleteServerRequest/DeleteServerRequest/DeleteServerRequest] [name=zimbra;ip=192.168.30.4;] soap - DeleteServerRequest
    2010-02-20 17:19:49,740 INFO  [btpool0-10://zimbra-archivio.xxxxx.it:7071/service/admin/soap/DeleteServerRequest/DeleteServerRequest/DeleteServerRequest/DeleteServerRequest/DeleteServerRequest/DeleteServerRequest] [name=zimbra;ip=192.168.30.4;] soap - DeleteServerRequest
    2010-02-20 17:19:49,743 INFO  [btpool0-10://zimbra-archivio.xxxxx.it:7071/service/admin/soap/DeleteServerRequest/DeleteServerRequest/DeleteServerRequest/DeleteServerRequest/DeleteServerRequest/DeleteServerRequest] [name=zimbra;ip=192.168.30.4;] SoapEngine - handler exception
    com.zimbra.common.service.ServiceException: mountpoint or proxy loop detected
    ExceptionId:btpool0-10://zimbra-archivio.xxxxx.it:7071/service/admin/soap/DeleteServerRequest/DeleteServerRequest/DeleteServerRequest/DeleteServerRequest/DeleteServerRequest/DeleteServerRequest:1266682789742:9588c22dacb2cf73
    Code:service.TOO_MANY_HOPS Arg:(acctId, STR, "null")
            at com.zimbra.common.service.ServiceException.TOO_MANY_HOPS(ServiceException.java:318)
            at com.zimbra.soap.ZimbraSoapContext.setHopCount(ZimbraSoapContext.java:573)
            at com.zimbra.soap.ZimbraSoapContext.<init>(ZimbraSoapContext.java:165)
            at com.zimbra.soap.ZimbraSoapContext.<init>(ZimbraSoapContext.java:144)
            at com.zimbra.soap.DocumentHandler.proxyRequest(DocumentHandler.java:471)
            at com.zimbra.cs.service.admin.AdminDocumentHandler.proxyIfNecessary(AdminDocumentHandler.java:184)
            at com.zimbra.soap.SoapEngine.dispatchRequest(SoapEngine.java:410)
            at com.zimbra.soap.SoapEngine.dispatch(SoapEngine.java:273)
            at com.zimbra.soap.SoapEngine.dispatch(SoapEngine.java:157)
            at com.zimbra.soap.SoapServlet.doWork(SoapServlet.java:291)
            at com.zimbra.soap.SoapServlet.doPost(SoapServlet.java:212)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
            at com.zimbra.cs.servlet.ZimbraServlet.service(ZimbraServlet.java:181)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
            at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
            at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
            at com.zimbra.cs.servlet.SetHeaderFilter.doFilter(SetHeaderFilter.java:79)
            at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
            at org.mortbay.servlet.UserAgentFilter.doFilter(UserAgentFilter.java:81)
            at org.mortbay.servlet.GzipFilter.doFilter(GzipFilter.java:155)
            at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
            at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
            at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
            at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
            at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
            at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
            at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
            at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
            at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
            at org.mortbay.jetty.handler.rewrite.RewriteHandler.handle(RewriteHandler.java:230)
            at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
            at org.mortbay.jetty.handler.DebugHandler.handle(DebugHandler.java:77)
            at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
            at org.mortbay.jetty.Server.handle(Server.java:326)
            at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:543)
            at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:939)
            at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755)
            at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
            at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:405)
            at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
            at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:451)

  4. #4
    Join Date
    Mar 2007
    Location
    Small village in the center of Italy
    Posts
    350
    Rep Power
    8

    Default

    i solved stopping zimbra in the second server, then:

    Code:
    zmprov ds localhost
    then start zimbra on zimbra-archive.xxxx.it

Similar Threads

  1. zmmailboxdctl is not running !!!!!!
    By olibite in forum Administrators
    Replies: 14
    Last Post: 04-28-2011, 06:50 AM
  2. Replies: 9
    Last Post: 02-25-2009, 04:39 AM
  3. Replies: 0
    Last Post: 02-05-2009, 09:59 AM
  4. Keeping a backup server synced with live server
    By Q-Mike in forum Administrators
    Replies: 5
    Last Post: 04-11-2008, 02:40 PM
  5. Getting problems in FC4 while instalation
    By kitty_bhoo in forum Installation
    Replies: 13
    Last Post: 09-12-2006, 11:34 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •