Re: [translate-pootle] Running Pootle as non-root
Hi, > I get this error: > [my_server]$ PootleServer --prefsfile=pootle/pootle.prefs --port=8080 > 2007-11-05 14:40:00: Listening on port 8080 > 2007-11-05 14:40:00: To use the server, open a web browser at > http://127.0.0.1:8080/ > 2007-11-05 14:40:00: Traceback (most recent call last): > File "/usr/lib/python2.3/site-packages/jToolkit/web/simplewebserver.py", > line 613, in getserver > File "/usr/lib/python2.3/site-packages/jToolkit/web/__init__.py", line 160, > in getserverwithprefs > File "/usr/lib/python2.3/site-packages/jToolkit/prefs.py", line 428, in > parsefile > File "/usr/lib/python2.3/site-packages/jToolkit/prefs.py", line 418, in > parse > File "/usr/lib/python2.3/site-packages/jToolkit/prefs.py", line 312, in > handleindents > File "/usr/lib/python2.3/site-packages/jToolkit/sparse.py", line 225, in > raiseerror > ParserError: invalid indentation at line 441, char 9 (token '\n ') > > 2007-11-05 14:40:00: Error initializing server, exiting: invalid indentation > at line 441, char 9 (toke n '\n ') it looks like there is a wrong indentation in your preferences file (e.g. /etc/pootle/pootle.prefs or pootle.prefs in your Pootle directory) in line 441. Wrong indentation could mean: - mixing tabs and spaces - too many/few spaces/tabs in that line (look at the lines above, too) Did you change the preferences file manually? L - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ ___ Translate-pootle mailing list Translate-pootle@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/translate-pootle
Re: [translate-pootle] Running Pootle as non-root
Hello, Lars. Thanks for your response! I get this error: [my_server]$ PootleServer --prefsfile=pootle/pootle.prefs --port=8080 2007-11-05 14:40:00: Listening on port 8080 2007-11-05 14:40:00: To use the server, open a web browser at http://127.0.0.1:8080/ 2007-11-05 14:40:00: Traceback (most recent call last): File "/usr/lib/python2.3/site-packages/jToolkit/web/simplewebserver.py", line 613, in getserver File "/usr/lib/python2.3/site-packages/jToolkit/web/__init__.py", line 160, in getserverwithprefs File "/usr/lib/python2.3/site-packages/jToolkit/prefs.py", line 428, in parsefile File "/usr/lib/python2.3/site-packages/jToolkit/prefs.py", line 418, in parse File "/usr/lib/python2.3/site-packages/jToolkit/prefs.py", line 312, in handleindents File "/usr/lib/python2.3/site-packages/jToolkit/sparse.py", line 225, in raiseerror ParserError: invalid indentation at line 441, char 9 (token '\n ') 2007-11-05 14:40:00: Error initializing server, exiting: invalid indentation at line 441, char 9 (toke n '\n ') Thanks in advance. - Gustavo. On Monday 05 November 2007 23:35:47 Lars Kruse wrote: > Hi, > > > I've successfully installed Pootle on a shared host, but I can't get it > > working. > > > > I'm facing two problems, as far as I can see: > > 1.- I should edit the Apache configuration file to add a virtual host. > > 2.- I can only run PootleServer as root. > > > > As for problem 1, I might ask my ISP to add it for me. But, how do I work > > around problem 2? > > If I am correct, then the only thing requiring root permissions is the > port, that you are trying to use. (only root can bind to ports below 1024) > > Do you use the default port (8080)? > You can use the "-p" option to change the port to something >= 1024. > > Or is there another problem? > > regards, > Lars > > - > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > ___ > Translate-pootle mailing list > Translate-pootle@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/translate-pootle -- Gustavo Narea. General Secretary. GNU/Linux Matters. http://www.gnulinuxmatters.org/ signature.asc Description: This is a digitally signed message part. - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/___ Translate-pootle mailing list Translate-pootle@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/translate-pootle
Re: [translate-pootle] Running Pootle as non-root
Hi, > I've successfully installed Pootle on a shared host, but I can't get it > working. > > I'm facing two problems, as far as I can see: > 1.- I should edit the Apache configuration file to add a virtual host. > 2.- I can only run PootleServer as root. > > As for problem 1, I might ask my ISP to add it for me. But, how do I work > around problem 2? If I am correct, then the only thing requiring root permissions is the port, that you are trying to use. (only root can bind to ports below 1024) Do you use the default port (8080)? You can use the "-p" option to change the port to something >= 1024. Or is there another problem? regards, Lars - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ ___ Translate-pootle mailing list Translate-pootle@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/translate-pootle
[translate-pootle] Running Pootle as non-root
Hello, everyone. I've successfully installed Pootle on a shared host, but I can't get it working. I'm facing two problems, as far as I can see: 1.- I should edit the Apache configuration file to add a virtual host. 2.- I can only run PootleServer as root. As for problem 1, I might ask my ISP to add it for me. But, how do I work around problem 2? Everytime I run PootleServer I get this error message: [my_server]$ PootleServer --prefsfile=pootle/pootle.prefs --port=80 2007-11-05 13:51:03: error binding socket: (13, 'Permission denied') 2007-11-05 13:51:03: waiting one second for socket to clear, then trying again Traceback (most recent call last): File "/home/someone/packages/usr/bin/PootleServer", line 25, in ? pootle.main() File "/usr/lib/python2.3/site-packages/Pootle/pootle.py", line 571, in main File "/usr/lib/python2.3/site-packages/jToolkit/web/simplewebserver.py", line 610, in getserver File "/usr/lib/python2.3/site-packages/jToolkit/web/simplewebserver.py", line 357, in __init__ File "/usr/lib/python2.3/SocketServer.py", line 330, in __init__ self.server_bind() File "/usr/lib/python2.3/site-packages/jToolkit/web/simplewebserver.py", line 390, in server_bind File "/usr/lib/python2.3/BaseHTTPServer.py", line 100, in server_bind SocketServer.TCPServer.server_bind(self) File "/usr/lib/python2.3/SocketServer.py", line 341, in server_bind self.socket.bind(self.server_address) File "", line 1, in bind socket.error: (13, 'Permission denied') Just in case, Pootle seems to be installed correctly: [my_server]$ PootleServer --version PootleServer 1.0 jToolkit 0.7.8 Translate Toolkit 1.0 Kid 0.9.6 ElementTree 1.2.6 Python 2.3.5 (#2, Oct 16 2006, 19:19:48) [GCC 3.3.5 (Debian 1:3.3.5-13)] (on linux2/posix) Thank you in advance! -- Gustavo Narea. General Secretary. GNU/Linux Matters. http://www.gnulinuxmatters.org/ - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ ___ Translate-pootle mailing list Translate-pootle@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/translate-pootle