Announcement

Collapse
No announcement yet.

Adding frst user problem

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    Neo,

    I did indeed have that error in my previous build. But linking the newer version as the older version didn't work (or maybe it did, just hadn't got to that error yet)

    you want me to check the last line of createuser? the script?

    Code:
    $JAVA_BIN -classpath $LIBPATH/ox_admindaemon.jar:$LIBPATH/ox_admin_console_ee.jar:$LIBPATH/commons-cli-1.0.jar $JAVAMAIN $*
    Sorry, if I'm not quite understanding you. Its certainly no inconvenience.

    Comment


    • #17
      Originally posted by slybob View Post
      Neo,

      I did indeed have that error in my previous build. But linking the newer version as the older version didn't work (or maybe it did, just hadn't got to that error yet)

      you want me to check the last line of createuser? the script?

      Code:
      $JAVA_BIN -classpath $LIBPATH/ox_admindaemon.jar:$LIBPATH/ox_admin_console_ee.jar:$LIBPATH/commons-cli-1.0.jar $JAVAMAIN $*
      Sorry, if I'm not quite understanding you. Its certainly no inconvenience.
      Ok, please add the IMAP-Plugin again.

      Comment


      • #18
        New Error

        Neo,
        Did as bens post asked and got this;

        Code:
        root@openxchange:/var/log# /opt/open-xchange/sbin/createuser -A oxadmin -P ******** --username alan_turing --displayname "Alan Turing" --password 3nIgm4 --email alan_turing@bletchleypark.invalid --givenname Alan --surname Turing --language en_US --timezone Europe/London --department Decryption --company "Bletchley Park"
        Server response:
         com.openexchange.admin.plugins.PluginException: com.openexchange.admin.rmi.exceptions.OXUserIMAPException: javax.mail.AuthenticationFailedException: Login failed: authentication failure
        Got the same error with both sock and host auth with pam_mysql.so

        auth.log
        Code:
        Mar 21 16:05:56 openxchange saslauthd[1521]: detach_tty      : master pid is: 1521
        Mar 21 16:05:56 openxchange saslauthd[1521]: ipc_init        : listening on socket: /var/run/saslauthd/mux
        Mar 21 16:05:56 openxchange sshd[1539]: Server listening on :: port 22.
        Mar 21 16:11:14 openxchange sshd[1713]: Accepted password for root from 192.168.0.5 port 50365 ssh2
        Mar 21 16:11:14 openxchange sshd[1715]: (pam_unix) session opened for user root by root(uid=0)
        Mar 21 16:27:01 openxchange saslauthd[1521]: server_exit     : master exited: 1521
        Mar 21 16:27:01 openxchange saslauthd[3236]: detach_tty      : master pid is: 3236
        Mar 21 16:27:01 openxchange saslauthd[3236]: ipc_init        : listening on socket: /var/run/saslauthd/mux
        Mar 21 16:28:32 openxchange saslauthd[3236]: server_exit     : master exited: 3236
        Mar 21 16:28:32 openxchange sshd[1539]: Received signal 15; terminating.
        Mar 21 16:30:52 openxchange saslauthd[5344]: detach_tty      : master pid is: 5344
        Mar 21 16:30:52 openxchange saslauthd[5344]: ipc_init        : listening on socket: /var/run/saslauthd/mux
        Mar 21 16:30:52 openxchange sshd[5361]: Server listening on :: port 22.
        Mar 21 16:31:42 openxchange sshd[5490]: (pam_unix) authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=192.168.0.5  user=root
        Mar 21 16:31:43 openxchange sshd[5490]: Failed password for root from 192.168.0.5 port 56239 ssh2
        Mar 21 16:31:47 openxchange sshd[5490]: Accepted password for root from 192.168.0.5 port 56239 ssh2
        Mar 21 16:31:47 openxchange sshd[5492]: (pam_unix) session opened for user root by root(uid=0)
        Mar 21 19:29:34 openxchange sshd[14298]: Accepted password for root from 192.168.0.5 port 56026 ssh2
        Mar 21 19:29:34 openxchange sshd[14302]: (pam_unix) session opened for user root by root(uid=0)
        Mar 22 00:06:08 openxchange sshd[26575]: Accepted password for root from 192.168.0.2 port 47954 ssh2
        Mar 22 00:06:08 openxchange sshd[26579]: (pam_unix) session opened for user root by root(uid=0)
        Mar 22 09:22:44 openxchange sshd[19755]: Accepted password for root from 192.168.0.2 port 47385 ssh2
        Mar 22 09:22:44 openxchange sshd[19759]: (pam_unix) session opened for user root by root(uid=0)
        Mar 22 10:01:15 openxchange sudo:     root : TTY=pts/0 ; PWD=/tmp/tomcat-connectors-1.2.21-src/native ; USER=root ; COMMAND=/usr/bin/apt-get install build-essential
        Mar 22 11:20:52 openxchange saslauthd[5345]: (pam_unix) check pass; user unknown
        Mar 22 11:20:52 openxchange saslauthd[5345]: (pam_unix) authentication failure; logname= uid=0 euid=0 tty= ruser= rhost=
        Mar 22 11:20:55 openxchange saslauthd[5345]: DEBUG: auth_pam: pam_authenticate failed: User not known to the underlying authentication module
        Mar 22 11:20:55 openxchange saslauthd[5345]: do_auth         : auth failure: [user=alan_turing] [service=imap] [realm=] [mech=pam] [reason=PAM auth error]
        Mar 22 11:46:45 openxchange saslauthd[5346]: (pam_unix) check pass; user unknown
        Mar 22 11:46:45 openxchange saslauthd[5346]: (pam_unix) authentication failure; logname= uid=0 euid=0 tty= ruser= rhost=
        Mar 22 11:46:46 openxchange saslauthd[5346]: DEBUG: auth_pam: pam_authenticate failed: User not known to the underlying authentication module
        Mar 22 11:46:46 openxchange saslauthd[5346]: do_auth         : auth failure: [user=alan_turing] [service=imap] [realm=] [mech=pam] [reason=PAM auth error]
        Error 503
        I got mod_jk compiled with;
        Code:
          ./configure --with-apxs=/opt/apache2/bin/apxs
        but Im still getting error 503. Do I need to compile with jni? i.e
        Code:
        ./configure --with-apxs=/opt/apache2/bin/apxs --with-java-home=/usr/lib --with-java-platform=2 -enable-jni
        I tried to do it with jni but it was looking for the wrong file. etc etc.

        Thanks

        Andy

        Comment


        • #19
          whoops

          Neo, the web interface is up and running. It seems that when I close the CLI that I executed
          Code:
          /opt/open-xchange/sbin/open-xchange-groupware &
          in it closes the application also. Any ideas why this might be?

          Code:
          Fehlermeldung: FLS-0004: Kein Zugriff auf Dateispeicher: file:/var/opt/open-xchange/filespool/1_ctx_store
          Fehlermeldung: MSG-0096: No IMAP account exists for user Open-Xchange (2) in context 1
          These two appear in the web interface. Now when I try to createuser I get,

          Code:
          root@openxchange:~# /opt/open-xchange/sbin/createuser -A oxadmin -P "tape-deck" --username alan_turing2 --displayname "Alan Turing" --password 3nIgm4 --email alan_turing@bletchleypark.invalid --givenname Alan --surname Turing --language en_US --timezone Europe/London --department Decryption --company "Bletchley Park"
          Exception in thread "main" java.lang.IllegalStateException: Timer already cancelled.
                  at java.util.Timer.sched(Timer.java:354)
                  at java.util.Timer.scheduleAtFixedRate(Timer.java:296)
                  at com.openexchange.pooling.ReentrantLockPool.registerCleaner(ReentrantLockPool.java:543)
                  at com.openexchange.database.Pools.getPool(Pools.java:158)
                  at com.openexchange.database.Database.get(Database.java:160)
                  at com.openexchange.database.Database.get(Database.java:153)
                  at com.openexchange.database.Database.get(Database.java:133)
                  at com.openexchange.server.DBPool.pickup(DBPool.java:71)
                  at com.openexchange.admin.storage.sqlStorage.OXAdminPoolDBPool.getREADConnectionForContext(OXAdminPoolDBPool.java:87)
                  at com.openexchange.admin.tools.AdminCache.getREADConnectionForContext(AdminCache.java:182)
                  at com.openexchange.admin.auth.MySQLAuthenticationImpl.authenticate(MySQLAuthenticationImpl.java:99)
                  at com.openexchange.admin.rmi.BasicAuthenticator.doAuthentication(BasicAuthenticator.java:82)
                  at com.openexchange.admin.rmi.impl.OXUser.create(OXUser.java:130)
                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                  at java.lang.reflect.Method.invoke(Method.java:585)
                  at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
                  at sun.rmi.transport.Transport$1.run(Transport.java:153)
                  at java.security.AccessController.doPrivileged(Native Method)
                  at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
                  at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
                  at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
                  at java.lang.Thread.run(Thread.java:595)
                  at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
                  at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
                  at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:126)
                  at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(RemoteObjectInvocationHandler.java:179)
                  at java.rmi.server.RemoteObjectInvocationHandler.invoke(RemoteObjectInvocationHandler.java:132)
                  at $Proxy0.create(Unknown Source)
                  at com.openexchange.admin.console.user.Create.<init>(Create.java:149)
                  at com.openexchange.admin.console.user.Create.main(Create.java:79)
          Cheers,

          Andy

          Comment


          • #20
            Trouble when i try to add the fisrt user!!

            First:
            Anobody has a tutorial about openxchange management??

            I already installed all requirements from this application and it seems that's everthing is o.k. When I tried to add the first user , i got the ce error( a NullPointerException) below:

            root@testmail ~]# /etc/init.d/open-xchange-admin start
            Starting Open-Xchange Admin Daemon: open-xchange-admin.
            [root@testmail ~]# /opt/open-xchange/sbin/createuser -A oxadmin -P "sin" --username teste --displayname "Test" --password sin --email test.test@gmail.com --givenname Test --surname Test --language en_US --timezone Europe/London --department Decryption --company "Garden" -c "5002"
            Exception in thread "main" java.lang.NullPointerException
            at com.openexchange.database.Database.get(Database.ja va:111)
            at com.openexchange.server.DBPool.pickupWriteable(DBP ool.java:75)
            at com.openexchange.admin.storage.sqlStorage.OXAdminP oolDBPool.getWRITEConnectionForCONFIGDB(OXAdminPoo lDBPool.java:102)
            at com.openexchange.admin.tools.AdminCache.getWRITECo nnectionForCONFIGDB(AdminCache.java:187)
            at com.openexchange.admin.storage.mysqlStorage.OXTool MySQLStorage.selectwithint(OXToolMySQLStorage.java :1244)
            at com.openexchange.admin.storage.mysqlStorage.OXTool MySQLStorage.existsContext(OXToolMySQLStorage.java :139)
            at com.openexchange.admin.rmi.BasicAuthenticator.doAu thentication(BasicAuthenticator.java:128)
            at com.openexchange.admin.rmi.impl.OXUser.create(OXUs er.java:153)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at sun.rmi.server.UnicastServerRef.dispatch(UnicastSe rverRef.java:305)
            at sun.rmi.transport.Transport$1.run(Transport.java:1 59)
            at java.security.AccessController.doPrivileged(Native Method)
            at sun.rmi.transport.Transport.serviceCall(Transport. java:155)
            at sun.rmi.transport.tcp.TCPTransport.handleMessages( TCPTransport.java:535)
            at sun.rmi.transport.tcp.TCPTransport$ConnectionHandl er.run0(TCPTransport.java:790)
            at sun.rmi.transport.tcp.TCPTransport$ConnectionHandl er.run(TCPTransport.java:649)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run Task(ThreadPoolExecutor.java:885)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:907)
            at java.lang.Thread.run(Thread.java:619)
            at sun.rmi.transport.StreamRemoteCall.exceptionReceiv edFromServer(StreamRemoteCall.java:255)
            at sun.rmi.transport.StreamRemoteCall.executeCall(Str eamRemoteCall.java:233)
            at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:1 42)
            at java.rmi.server.RemoteObjectInvocationHandler.invo keRemoteMethod(RemoteObjectInvocationHandler.java: 178)
            at java.rmi.server.RemoteObjectInvocationHandler.invo ke(RemoteObjectInvocationHandler.java:132)
            at $Proxy0.create(Unknown Source)
            at com.openexchange.admin.console.user.Create.<init>( Create.java:140)
            at com.openexchange.admin.console.user.Create.main(Cr eate.java:78)
            [root@testmail ~]#


            It seems that the openxchange can't connect with MySQL to write the changes.

            Could someone save me?? =D

            Thanks
            Pedro
            Last edited by Guest; 07-10-2007, 11:08 PM.

            Comment


            • #21
              Hi Pedro,

              there is a growing amount of documentation and definitions at the wiki, everybody is invited to contribute and the crtitical parts are already contained. On a first look i can see that you try to add a user to context 5002 - did you really added so much contexts?
              At the default installation, context 1 is created. Adding a user to a context that does not exist will cause unpredictable reactions, like this NPE. You should also not try to enter string values where numeric input is required. "5002" is not equal to 5002 for example.

              To work with the command line interface (CLT), please consult the description shown when calling the tool(s) with --help. I am currently working on a better documentation at the wiki, how to use these tools but there is still much to do.

              Greetings
              Last edited by Martin Heiland; 07-11-2007, 01:05 AM.

              Comment


              • #22
                I cannot create the first user , somebody can help me with this error:

                servidor3:/home/administrador# /etc/init.d/open-xchange-admin restart
                Restarting Open-Xchange Admin Daemon: open-xchange-admin.
                servidor3:/home/administrador# /opt/open-xchange/sbin/createuser -A oxadmin -P "servi75" --username leonardo_forero --displayname "Leonardo F" --password invecil --email leonardo_forero@servimail --givenname leonardo --surname forero --language en_US --timezone America/Bogota --department systemas --company "Servioptica" -c 1
                Server response:
                com.openexchange.admin.plugins.PluginException: com.openexchange.admin.rmi.exceptions.OXUserIMAPEx ception: javax.mail.AuthenticationFailedException: Login failed: authentication failure
                com.openexchange.admin.rmi.exceptions.StorageExcep tion: com.openexchange.admin.plugins.PluginException: com.openexchange.admin.rmi.exceptions.OXUserIMAPEx ception: javax.mail.AuthenticationFailedException: Login failed: authentication failure
                at com.openexchange.admin.rmi.impl.OXUser.create(OXUs er.java:235)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:597)
                at sun.rmi.server.UnicastServerRef.dispatch(UnicastSe rverRef.java:305)
                at sun.rmi.transport.Transport$1.run(Transport.java:1 59)
                at java.security.AccessController.doPrivileged(Native Method)
                at sun.rmi.transport.Transport.serviceCall(Transport. java:155)
                at sun.rmi.transport.tcp.TCPTransport.handleMessages( TCPTransport.java:535)
                at sun.rmi.transport.tcp.TCPTransport$ConnectionHandl er.run0(TCPTransport.java:790)
                at sun.rmi.transport.tcp.TCPTransport$ConnectionHandl er.run(TCPTransport.java:649)
                at java.util.concurrent.ThreadPoolExecutor$Worker.run Task(ThreadPoolExecutor.java:885)
                at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:907)
                at java.lang.Thread.run(Thread.java:619)
                at sun.rmi.transport.StreamRemoteCall.exceptionReceiv edFromServer(StreamRemoteCall.java:255)
                at sun.rmi.transport.StreamRemoteCall.executeCall(Str eamRemoteCall.java:233)
                at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:1 42)
                at java.rmi.server.RemoteObjectInvocationHandler.invo keRemoteMethod(RemoteObjectInvocationHandler.java: 178)
                at java.rmi.server.RemoteObjectInvocationHandler.invo ke(RemoteObjectInvocationHandler.java:132)
                at $Proxy0.create(Unknown Source)
                at com.openexchange.admin.console.user.Create.maincal l(Create.java:98)
                at com.openexchange.admin.console.user.CreateCore.com monfunctions(CreateCore.java:77)
                at com.openexchange.admin.console.user.Create.<init>( Create.java:82)
                at com.openexchange.admin.console.user.Create.main(Cr eate.java:73)
                Caused by: com.openexchange.admin.plugins.PluginException: com.openexchange.admin.rmi.exceptions.OXUserIMAPEx ception: javax.mail.AuthenticationFailedException: Login failed: authentication failure
                at com.openexchange.admin.rmi.impl.OXUserIMAPImpl.cre ate(OXUserIMAPImpl.java:517)
                at com.openexchange.admin.rmi.impl.OXUser.create(OXUs er.java:218)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:597)
                at sun.rmi.server.UnicastServerRef.dispatch(UnicastSe rverRef.java:305)
                at sun.rmi.transport.Transport$1.run(Transport.java:1 59)
                at java.security.AccessController.doPrivileged(Native Method)
                at sun.rmi.transport.Transport.serviceCall(Transport. java:155)
                at sun.rmi.transport.tcp.TCPTransport.handleMessages( TCPTransport.java:535)
                at sun.rmi.transport.tcp.TCPTransport$ConnectionHandl er.run0(TCPTransport.java:790)
                at sun.rmi.transport.tcp.TCPTransport$ConnectionHandl er.run(TCPTransport.java:649)
                at java.util.concurrent.ThreadPoolExecutor$Worker.run Task(ThreadPoolExecutor.java:885)
                at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:907)
                at java.lang.Thread.run(Thread.java:619)
                servidor3:/home/administrador#

                Comment


                • #23
                  Hi,

                  com.openexchange.admin.plugins.PluginException: com.openexchange.admin.rmi.exceptions.OXUserIMAPEx ception: javax.mail.AuthenticationFailedException: Login failed: authentication failure

                  It seems that the authentication against you IMAP server was not successful. Is there a IMAP Server running? Does the user oxadmin has access to this server? The CLT creates the user at the database, your IMAP server must authenticate against the database via PAM. This is described for cyrus at the installation guide.

                  Comment


                  • #24
                    Originally posted by Martin Braun View Post
                    Hi,

                    com.openexchange.admin.plugins.PluginException: com.openexchange.admin.rmi.exceptions.OXUserIMAPEx ception: javax.mail.AuthenticationFailedException: Login failed: authentication failure

                    It seems that the authentication against you IMAP server was not successful. Is there a IMAP Server running? Does the user oxadmin has access to this server? The CLT creates the user at the database, your IMAP server must authenticate against the database via PAM. This is described for cyrus at the installation guide.
                    since I make to be safe if oxadmin access to the servant imap?

                    Comment


                    • #25
                      simply sniff the network traffic or the logfiles of the imap server. If you use cyrus, you may try "cyradm -u oxadmin localhost" and try to login with oxadmin credentials.

                      Comment


                      • #26
                        I think more this way some credentials in cyrus/mysql setup for OX either missing or not installed yet

                        Comment


                        • #27
                          Originally posted by Martin Braun View Post
                          simply sniff the network traffic or the logfiles of the imap server. If you use cyrus, you may try "cyradm -u oxadmin localhost" and try to login with oxadmin credentials.
                          see this:

                          servidor3:/home/administrador# cyradm -u oxadmin localhost
                          IMAP Password:
                          Login failed: authentication failure at /usr/lib/perl5/Cyrus/IMAP/Admin.pm line 119
                          cyradm: cannot authenticate to server as oxadmin

                          mmmmm. help

                          Comment


                          • #28
                            It seems that cyrus does not authentificate agains the mysql database. Try to set up the loglevel (/etc/mysql/my.cf) at look at /var/log/mysql/mysql.log if anything tries to connect to the database. If not, check your settings at PAM.

                            Comment


                            • #29
                              Thanks Martin

                              Hi Martin,

                              I changed the -c parameter to 1 as you suggest but the same error still there!!
                              It seems that contexid isn't the problem.
                              Can I send you a detailed mail about my DB configuration problem??
                              Solving this matter i going to fix this adding problem.

                              Thanks dude.
                              Pedro

                              Comment


                              • #30
                                Please lets solve this at the forums - that has the positive aspect that other also profit from this.

                                Comment

                                Working...
                                X