You are not logged in.
Hi,
I can't get zim 0.57 (newest version) to start up at all. I have been running Zim 0.56 successfully; and even when 0.57 came out and didn't work for me, I was able to roll back to 0.56 with no problem.
When I start zim, I get (after a long time):
Traceback (most recent call last):
File "/usr/bin/zim", line 73, in <module>
zim.main(argv)
File "/usr/lib/python2.7/site-packages/zim/__init__.py", line 443, in main
start_server_if_not_running()
File "/usr/lib/python2.7/site-packages/zim/ipc.py", line 272, in start_server_if_not_running
raise AssertionError, 'Failed to start server (spawning)'
AssertionError: Failed to start server (spawning)
I have tried zim-bzr from the AUR with the same result.
I also have tried backing up and removing my config, with the same result again.
Does anyone have any ideas? I haven't seen this issue anywhere else, so I'm guessing it could be something to do with my system. Thanks!
edit: just to be clear, I can roll back to 0.56 to get rid of the problem, but I'd like to stay up to date here
Last edited by clemerson (2012-10-18 03:41:01)
Offline
I have no problems with zim. Is your system fully up to date?
Offline
Thanks karol. Yeah, I'm all up to date here and I'm using good mirrors.
Offline
Zim tries to open a bakground server since the latest version. For some reason this fails for you. You can use "zim --standalone" to start it without a background server, that should work.
But to actually fix the issue, debug infos would be useful. When you execute zim with "zim -VD", it will print out debug informations to the terminal, that might be useful. Can you paste the output of that here?
(Edit: Grammar/typos fixed.)
Last edited by kch42 (2012-10-17 18:54:58)
Offline
Thanks for the info. It takes a couple minutes to get through this as it tries to start the server a bunch of times and I think there's a delay each time.
~> zim -VD
** (process:2367): WARNING **: Trying to register gtype 'GMountMountFlags' as enum when in fact it is of type 'GFlags'
** (process:2367): WARNING **: Trying to register gtype 'GDriveStartFlags' as enum when in fact it is of type 'GFlags'
** (process:2367): WARNING **: Trying to register gtype 'GSocketMsgFlags' as enum when in fact it is of type 'GFlags'
WARNING: Can not import 'xdg.Mime' - falling back to 'mimetypes'
INFO: This is zim 0.57
DEBUG: Python version is sys.version_info(major=2, minor=7, micro=3, releaselevel='final', serial=0)
DEBUG: Platform is posix
DEBUG: Zim revision is:
branch: pyzim-trunk
revision: 600 jaap.karssenberg@gmail.com-20121008191751-bdjcr9zpg9ni5mjt
date: 2012-10-08 21:17:51 +0200
DEBUG: Not running from a source dir
DEBUG: Set XDG_DATA_HOME to /home/aaronyoung/.local/share
DEBUG: Set XDG_DATA_DIRS to [<Dir: /usr/local/share>, <Dir: /usr/share>]
DEBUG: Set XDG_CONFIG_HOME to /home/aaronyoung/.config
DEBUG: Set XDG_CONFIG_DIRS to [<Dir: /etc/xdg>]
DEBUG: Set XDG_CACHE_HOME to /home/aaronyoung/.cache
DEBUG: Running command: gui
DEBUG: Loading config from: /home/aaronyoung/Dropbox/zim-notes/notebook.zim
DEBUG: Wrote /home/aaronyoung/.config/zim/notebooks.list
INFO: Opening default notebook
DEBUG: Remote call from 2367: <RemoteMethodCall: 2367: zim.ipc.Server(None).ping((), {})>
DEBUG: Starting server by spawning new process
INFO: Spawning: ['/usr/bin/python2', '/usr/bin/zim', '--ipc-server-main', '/tmp/zim-aaronyoung/zim-server-socket', '10'] (cwd: None)
DEBUG: Process started with PID: 2373
DEBUG: Remote call from 2367: <RemoteMethodCall: 2367: zim.ipc.Server(None).ping((), {})>
** (process:2373): WARNING **: Trying to register gtype 'GMountMountFlags' as enum when in fact it is of type 'GFlags'
** (process:2373): WARNING **: Trying to register gtype 'GDriveStartFlags' as enum when in fact it is of type 'GFlags'
** (process:2373): WARNING **: Trying to register gtype 'GSocketMsgFlags' as enum when in fact it is of type 'GFlags'
WARNING: Can not import 'xdg.Mime' - falling back to 'mimetypes'
INFO: Server starting 2373 at /tmp/zim-aaronyoung/zim-server-socket
Traceback (most recent call last):
File "/usr/bin/zim", line 73, in <module>
zim.main(argv)
File "/usr/lib/python2.7/site-packages/zim/__init__.py", line 294, in main
zim.ipc.handle_argv()
File "/usr/lib/python2.7/site-packages/zim/ipc.py", line 114, in handle_argv
servermain()
File "/usr/lib/python2.7/site-packages/zim/ipc.py", line 308, in servermain
server.start()
File "/usr/lib/python2.7/site-packages/zim/ipc.py", line 348, in start
self.listener = Listener(SERVER_ADDRESS)
File "/usr/lib/python2.7/multiprocessing/connection.py", line 132, in __init__
self._listener = SocketListener(address, family, backlog)
File "/usr/lib/python2.7/multiprocessing/connection.py", line 254, in __init__
self._socket.bind(address)
File "/usr/lib/python2.7/socket.py", line 224, in meth
return getattr(self._sock,name)(*args)
socket.error: [Errno 98] Address already in use
DEBUG: Remote call from 2367: <RemoteMethodCall: 2367: zim.ipc.Server(None).ping((), {})>
DEBUG: Remote call from 2367: <RemoteMethodCall: 2367: zim.ipc.Server(None).ping((), {})>
DEBUG: Remote call from 2367: <RemoteMethodCall: 2367: zim.ipc.Server(None).ping((), {})>
DEBUG: Remote call from 2367: <RemoteMethodCall: 2367: zim.ipc.Server(None).ping((), {})>
DEBUG: Remote call from 2367: <RemoteMethodCall: 2367: zim.ipc.Server(None).ping((), {})>
DEBUG: Remote call from 2367: <RemoteMethodCall: 2367: zim.ipc.Server(None).ping((), {})>
DEBUG: Remote call from 2367: <RemoteMethodCall: 2367: zim.ipc.Server(None).ping((), {})>
DEBUG: Remote call from 2367: <RemoteMethodCall: 2367: zim.ipc.Server(None).ping((), {})>
DEBUG: Remote call from 2367: <RemoteMethodCall: 2367: zim.ipc.Server(None).ping((), {})>
DEBUG: Cannot connect to server 2367:
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/zim/ipc.py", line 261, in start_server_if_not_running
s.ping()
File "/usr/lib/python2.7/site-packages/zim/ipc.py", line 692, in call
conn = Client(SERVER_ADDRESS, SERVER_ADDRESS_FAMILY)
File "/usr/lib/python2.7/multiprocessing/connection.py", line 169, in Client
c = SocketClient(address)
File "/usr/lib/python2.7/multiprocessing/connection.py", line 293, in SocketClient
s.connect(address)
File "/usr/lib/python2.7/socket.py", line 224, in meth
return getattr(self._sock,name)(*args)
error: [Errno 111] Connection refused
Traceback (most recent call last):
File "/usr/bin/zim", line 73, in <module>
zim.main(argv)
File "/usr/lib/python2.7/site-packages/zim/__init__.py", line 443, in main
start_server_if_not_running()
File "/usr/lib/python2.7/site-packages/zim/ipc.py", line 272, in start_server_if_not_running
raise AssertionError, 'Failed to start server (spawning)'
AssertionError: Failed to start server (spawning)
This is from zim 0.57 from [community]. I hope this helps and let me know if there's any other information I can give you.
Edit: Thanks for letting me know about the --standalone option. I think I'd be perfectly happy with that if there's no solution for the server here.
Last edited by clemerson (2012-10-17 19:46:19)
Offline
Looks like there is already a file that should not be there.
Go to /tmp/zim-<Your Username here>/ and remove the file zim-server-socket. If there is no such file, I have no idea...
At least I has able to reproduce your error when creating an empty file at this path.
Offline
Looks like that did the trick! Thank you!
I suppose I must have run Zim once right after installing 0.57, and perhaps I did something to crash it. I really don't know.
At any rate, thanks again for your help troubleshooting!
Offline