Navigation

    Kopano
    • Register
    • Login
    • Search
    • Categories
    • Get Official Kopano Support
    • Recent
    Statement regarding the closure of the Kopano community forum and the end of the community edition

    Running script throws login error

    Kopano Groupware Core
    2
    4
    272
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • pwhooftman
      pwhooftman last edited by

      I’m trying to run the contact2csv.py script on my Univention UCS server with Kopano, but it throws an error
      [error ] HrLogon server “default:” user “SYSTEM”: logon failed

      Probably something obvious i’m missing, but i can’t find where to specify the user & password for the store whose contacts i’m trying to export.

      fbartels 1 Reply Last reply Reply Quote 0
      • fbartels
        fbartels Kopano @pwhooftman last edited by

        Hi @pwhooftman,

        this works on my test system (tested with the latest version from https://stash.kopano.io/projects/KSC/repos/core-tools/browse):

        root@ucs-4570 ~/core-tools/contacts2csv
        $ kopano-admin -V
        kopano-admin 8.6.8
        
        root@ucs-4570 ~/core-tools/contacts2csv
        $ python contact2csv.py --user xena  --export
        running script for 'xena'
        export contacts
        

        Regards Felix

        Resources:
        https://kopano.com/blog/how-to-get-kopano/
        https://documentation.kopano.io/
        https://kb.kopano.io/

        Support overview:
        https://kopano.com/support/

        1 Reply Last reply Reply Quote 0
        • pwhooftman
          pwhooftman last edited by

          Not sure what i am doing wrong ;

          Administrator@server:~$ sudo kopano-admin -V
          [sudo] wachtwoord voor Administrator:
          kopano-admin 8.6.2
          Administrator@server:~$
          Administrator@server:~$ ls
          contact2csv.py
          Administrator@server:~$ python contact2csv.py --user Ingrid --export
          [error  ] HrLogon server "default:" user "SYSTEM": logon failed
          Traceback (most recent call last):
            File "contact2csv.py", line 317, in <module>
              main()
            File "contact2csv.py", line 105, in main
              server = kopano.Server(options)
            File "/usr/lib/python2.7/dist-packages/kopano/server.py", line 252, in __init_                                      _
              raise LogonError('Could not logon to server: username or password incorrect'                                      )
          kopano.errors.LogonError: Could not logon to server: username or password incorr                                      ect
          Administrator@server:~$
          
          fbartels 1 Reply Last reply Reply Quote 0
          • fbartels
            fbartels Kopano @pwhooftman last edited by

            @pwhooftman said in Running script throws login error:

            Administrator@server:~$ python contact2csv.py

            You’d have to run the second command with sudo as well.

            Regards Felix

            Resources:
            https://kopano.com/blog/how-to-get-kopano/
            https://documentation.kopano.io/
            https://kb.kopano.io/

            Support overview:
            https://kopano.com/support/

            1 Reply Last reply Reply Quote 0
            • First post
              Last post