Am 05.11.15 um 01:41 schrieb Robert Rott:
Hello,
I'm installing Sogo on Debian Jessie an i got a bug.
When I use this code:
openchange_provision --openchangedb --openchangedb-uri 'mysql://openchange-
user[:openchange$123]@localhost/openchange'
Did you just copy and paste this line? Or do you really have a user with
name
user[
and the password is
openchange$123]
? I guess not.
The part after mysql:// and before the second colon is the user name for
the mysql connection and the part between the second colon and the at
sign is the password for the connection.
If you got that line from some documentation, the brackets normally
mean, that this part is optional.
I get:
Setting up openchange db
Traceback (most recent call last):
File "/usr/sbin/openchange_provision", line 128, in <module>
openchange.openchangedb_provision(provisionnames, lp,
opts.openchangedb_uri)
File "/usr/lib/python2.7/dist-packages/openchange/provision.py", line 1312,
in openchangedb_provision
openchangedb = mailbox.OpenChangeDBWithMysqlBackend(uri, find_setup_dir())
File "/usr/lib/python2.7/dist-packages/openchange/mailbox.py", line 375, in
__init__
self._connect_to_mysql()
File "/usr/lib/python2.7/dist-packages/openchange/mailbox.py", line 300, in
_connect_to_mysql
host, user, passwd, self.db_name, port = self._parse_mysql_url()
File "/usr/lib/python2.7/dist-packages/openchange/mailbox.py", line 306, in
_parse_mysql_url
conn_url = urlparse(self.url)
File "/usr/lib/python2.7/urlparse.py", line 143, in urlparse
tuple = urlsplit(url, scheme, allow_fragments)
File "/usr/lib/python2.7/urlparse.py", line 214, in urlsplit
raise ValueError("Invalid IPv6 URL")
ValueError: Invalid IPv6 URL
Can someone help me please?
It looks like the brackets confuse the URL parser.
Regards,
Johannes
--
[email protected]
https://inverse.ca/sogo/lists