HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=4)
-   -   error in mailman setup - perfect sever Ubuntu 11.10 X64 (http://www.howtoforge.com/forums/showthread.php?t=56935)

Tastiger 16th April 2012 03:01

error in mailman setup - perfect sever Ubuntu 11.10 X64
 
The following error about says it all - had it working no problems under a x32 setup...

Code:

Setting up mailman (1:2.1.14-1ubuntu2) ...
Traceback (most recent call last):
  File "/var/lib/mailman/bin/list_lists", line 46, in <module>
    from Mailman import mm_cfg
  File "/var/lib/mailman/Mailman/mm_cfg.py", line 76
    DEFAULT_SERVER_LANGUAGE =
                            ^
SyntaxError: invalid syntax
Installing site language en ............................................ done.
Traceback (most recent call last):
  File "/usr/lib/mailman/bin/update", line 49, in <module>
    from Mailman import mm_cfg
  File "/var/lib/mailman/Mailman/mm_cfg.py", line 76
    DEFAULT_SERVER_LANGUAGE =
                            ^
SyntaxError: invalid syntax
dpkg: error processing mailman (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 mailman
E: Sub-process /usr/bin/dpkg returned an error code

any help appreciated

edit to add - also unable to uninstall mailman to try from scratch

falko 16th April 2012 10:17

Please open /var/lib/mailman/Mailman/mm_cfg.py

and set
Code:

DEFAULT_SERVER_LANGUAGE = 'en'
Restart mailman afterwards.

Tastiger 17th April 2012 00:10

OK done as suggested - now when setting new list I get the following:-

Code:

root@server1:~# newlist mailman
Enter the email of the person running the list: tkrall@xxxxx
Initial mailman password:
Traceback (most recent call last):
  File "/usr/sbin/newlist", line 266, in <module>
    main()
  File "/usr/sbin/newlist", line 208, in main
    emailhost=host_name, urlhost=urlhost)
  File "/var/lib/mailman/Mailman/MailList.py", line 503, in Create
    self.__lock.lock()
  File "/var/lib/mailman/Mailman/LockFile.py", line 243, in lock
    self.__write()
  File "/var/lib/mailman/Mailman/LockFile.py", line 422, in __write
    fp = open(self.__tmpfname, 'w')
IOError: [Errno 2] No such file or directory: '/var/lib/mailman/locks/<site>.lock.server1.jones.dhs.org.9445.0'


falko 17th April 2012 13:01

Looks as if mailman isn't fully installed. Please run
Code:

apt-get install mailman
and try again.

Tastiger 17th April 2012 23:15

Quote:

Originally Posted by falko (Post 277645)
Looks as if mailman isn't fully installed. Please run
Code:

apt-get install mailman
and try again.

That did the trick

now back to this thread to see if I can get the links working properly with vhosts:)


All times are GMT +2. The time now is 08:48.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.