Zim

0.60 refuses to start

Asked by Kevin Donnelly

I updated from 0.43 to 0.60 on Ubuntu Linux, and the new version opened my notebook OK. I started a new notebook, and set Zim to use the Distraction Free Editor plugin. Pressing F11 took it to fullscreen, but without menubar or icon-bar, as expected. However, although pressing F11 again took it back to the previous size, the menubar and icon-bar were still missing. I used F1 to open the help pages in Zim, and from the preferences there disabled the ticks in the Distraction Free Editor plugin configuration. Zim refused to start. I then went to the config file and deleted the entries for the Editor, and the new notebook I had created. Zim still refused to start. I downgraded to 0.43, and Zim started, showing my original notebook. I upgraded to 0.60 again, and Zim refused to start, so I've downgraded again to 0.43, since I need my original notebook. Is there some setting that is "stuck" that I need to zap? And why is there no hotkey to toggle menubar/icon-bar? Thanks for any help you can offer.

Question information

Language:
English Edit question
Status:
Solved
For:
Zim Edit question
Assignee:
No assignee Edit question
Solved by:
Jaap Karssenberg
Solved:
Last query:
Last reply:
Revision history for this message
Jaap Karssenberg (jaap.karssenberg) said :
#1

Try running "zim -D" from the terminal and check for error output that can
explain what is happening.

REgards,

Jaap

On Mon, Sep 23, 2013 at 4:31 PM, Kevin Donnelly <
<email address hidden>> wrote:

> New question #236195 on Zim:
> https://answers.launchpad.net/zim/+question/236195
>
> I updated from 0.43 to 0.60 on Ubuntu Linux, and the new version opened my
> notebook OK. I started a new notebook, and set Zim to use the Distraction
> Free Editor plugin. Pressing F11 took it to fullscreen, but without
> menubar or icon-bar, as expected. However, although pressing F11 again
> took it back to the previous size, the menubar and icon-bar were still
> missing. I used F1 to open the help pages in Zim, and from the preferences
> there disabled the ticks in the Distraction Free Editor plugin
> configuration. Zim refused to start. I then went to the config file and
> deleted the entries for the Editor, and the new notebook I had created.
> Zim still refused to start. I downgraded to 0.43, and Zim started,
> showing my original notebook. I upgraded to 0.60 again, and Zim refused to
> start, so I've downgraded again to 0.43, since I need my original notebook.
> Is there some setting that is "stuck" that I need to zap? And why is
> there no hotkey to toggle menubar/icon-bar? Thanks for any help you can
> offer.
>
> --
> You received this question notification because you are an answer
> contact for Zim.
>

Revision history for this message
Kevin Donnelly (donnek) said :
#2

===
zim -D
INFO: This is zim 0.60
DEBUG: Python version is (2, 6, 5, 'final', 0)
DEBUG: Platform is posix
DEBUG: No bzr version-info found
DEBUG: Not running from a source dir
DEBUG: Set XDG_DATA_HOME to /home/kevin/.local/share
DEBUG: Set XDG_DATA_DIRS to [<Dir: /usr/share>, <Dir: /usr/share>, <Dir: /usr/local/share>]
DEBUG: Set XDG_CONFIG_HOME to /home/kevin/.config
DEBUG: Set XDG_CONFIG_DIRS to [<Dir: /etc/xdg>]
DEBUG: Set XDG_CACHE_HOME to /home/kevin/.cache
DEBUG: Running command: gui
DEBUG: Loading config from: /home/kevin/data/notebook/notebook.zim
DEBUG: Loading config from: /home/kevin/data/mynotes/notebook.zim
DEBUG: Wrote /home/kevin/.config/zim/notebooks.list
INFO: Opening default notebook
DEBUG: Remote call from 21843: <RemoteMethodCall: 21843: zim.ipc.Server(None).ping((), {})>
^CDEBUG: Starting server by spawning new process
INFO: Spawning: ['/usr/bin/python', '/usr/bin/zim', '--ipc-server-main', '/tmp/zim-kevin/zim-server-socket', '10'] (cwd: None)
DEBUG: Process started with PID: 21889
DEBUG: Remote call from 21843: <RemoteMethodCall: 21843: zim.ipc.Server(None).ping((), {})>
INFO: Server starting 21889 at /tmp/zim-kevin/zim-server-socket
^CInterrupt
DEBUG: Remote call from 21843: <RemoteMethodCall: 21843: zim.ipc.Server(None).ping((), {})>
DEBUG: Remote call from 21843: <RemoteMethodCall: 21843: zim.ipc.Server(None).ping((), {})>
DEBUG: Remote call from 21843: <RemoteMethodCall: 21843: zim.ipc.Server(None).ping((), {})>
DEBUG: Remote call from 21843: <RemoteMethodCall: 21843: zim.ipc.Server(None).ping((), {})>
DEBUG: Remote call from 21843: <RemoteMethodCall: 21843: zim.ipc.Server(None).ping((), {})>
DEBUG: Remote call from 21843: <RemoteMethodCall: 21843: zim.ipc.Server(None).ping((), {})>
DEBUG: Remote call from 21843: <RemoteMethodCall: 21843: zim.ipc.Server(None).ping((), {})>
DEBUG: Remote call from 21843: <RemoteMethodCall: 21843: zim.ipc.Server(None).ping((), {})>
DEBUG: Remote call from 21843: <RemoteMethodCall: 21843: zim.ipc.Server(None).ping((), {})>
DEBUG: Cannot connect to server 21843:
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/zim/ipc.py", line 267, in start_server_if_not_running
    s.ping()
  File "/usr/lib/pymodules/python2.6/zim/ipc.py", line 750, in call
    conn = Client(SERVER_ADDRESS, SERVER_ADDRESS_FAMILY)
  File "/usr/lib/python2.6/multiprocessing/connection.py", line 143, in Client
    c = SocketClient(address)
  File "/usr/lib/python2.6/multiprocessing/connection.py", line 263, in SocketClient
    s.connect(address)
  File "<string>", line 1, in connect
error: [Errno 2] No such file or directory

Traceback (most recent call last):
  File "/usr/bin/zim", line 74, in <module>
    zim.main(argv)
  File "/usr/lib/pymodules/python2.6/zim/__init__.py", line 443, in main
    start_server_if_not_running()
  File "/usr/lib/pymodules/python2.6/zim/ipc.py", line 277, in start_server_if_not_running
    raise AssertionError, 'Failed to start server (spawning)'
AssertionError: Failed to start server (spawning)
===

Seems to be trying to contact a server at 21843. Pressing ^C after waiting there for a while has it trying to start a server at 21889. Pressing ^C after another wait has it failing to connect to the server at 21843, and then giving the traceback.

Kevin

Revision history for this message
Best Jaap Karssenberg (jaap.karssenberg) said :
#3

The proces hangs trying to connect. Maybe you have a stale socket file at
/tmp/zim-kevin/zim-server-socket, also may be a stale zim process still
running.

Try if "zim --standalone" does work - if so, try killing all zim processes
& remove socket file to clean up.

REgards,

Jaap

On Wed, Sep 25, 2013 at 10:51 AM, Kevin Donnelly <
<email address hidden>> wrote:

> Question #236195 on Zim changed:
> https://answers.launchpad.net/zim/+question/236195
>
> Status: Answered => Open
>
> Kevin Donnelly is still having a problem:
> ===
> zim -D
> INFO: This is zim 0.60
> DEBUG: Python version is (2, 6, 5, 'final', 0)
> DEBUG: Platform is posix
> DEBUG: No bzr version-info found
> DEBUG: Not running from a source dir
> DEBUG: Set XDG_DATA_HOME to /home/kevin/.local/share
> DEBUG: Set XDG_DATA_DIRS to [<Dir: /usr/share>, <Dir: /usr/share>, <Dir:
> /usr/local/share>]
> DEBUG: Set XDG_CONFIG_HOME to /home/kevin/.config
> DEBUG: Set XDG_CONFIG_DIRS to [<Dir: /etc/xdg>]
> DEBUG: Set XDG_CACHE_HOME to /home/kevin/.cache
> DEBUG: Running command: gui
> DEBUG: Loading config from: /home/kevin/data/notebook/notebook.zim
> DEBUG: Loading config from: /home/kevin/data/mynotes/notebook.zim
> DEBUG: Wrote /home/kevin/.config/zim/notebooks.list
> INFO: Opening default notebook
> DEBUG: Remote call from 21843: <RemoteMethodCall: 21843:
> zim.ipc.Server(None).ping((), {})>
> ^CDEBUG: Starting server by spawning new process
> INFO: Spawning: ['/usr/bin/python', '/usr/bin/zim', '--ipc-server-main',
> '/tmp/zim-kevin/zim-server-socket', '10'] (cwd: None)
> DEBUG: Process started with PID: 21889
> DEBUG: Remote call from 21843: <RemoteMethodCall: 21843:
> zim.ipc.Server(None).ping((), {})>
> INFO: Server starting 21889 at /tmp/zim-kevin/zim-server-socket
> ^CInterrupt
> DEBUG: Remote call from 21843: <RemoteMethodCall: 21843:
> zim.ipc.Server(None).ping((), {})>
> DEBUG: Remote call from 21843: <RemoteMethodCall: 21843:
> zim.ipc.Server(None).ping((), {})>
> DEBUG: Remote call from 21843: <RemoteMethodCall: 21843:
> zim.ipc.Server(None).ping((), {})>
> DEBUG: Remote call from 21843: <RemoteMethodCall: 21843:
> zim.ipc.Server(None).ping((), {})>
> DEBUG: Remote call from 21843: <RemoteMethodCall: 21843:
> zim.ipc.Server(None).ping((), {})>
> DEBUG: Remote call from 21843: <RemoteMethodCall: 21843:
> zim.ipc.Server(None).ping((), {})>
> DEBUG: Remote call from 21843: <RemoteMethodCall: 21843:
> zim.ipc.Server(None).ping((), {})>
> DEBUG: Remote call from 21843: <RemoteMethodCall: 21843:
> zim.ipc.Server(None).ping((), {})>
> DEBUG: Remote call from 21843: <RemoteMethodCall: 21843:
> zim.ipc.Server(None).ping((), {})>
> DEBUG: Cannot connect to server 21843:
> Traceback (most recent call last):
> File "/usr/lib/pymodules/python2.6/zim/ipc.py", line 267, in
> start_server_if_not_running
> s.ping()
> File "/usr/lib/pymodules/python2.6/zim/ipc.py", line 750, in call
> conn = Client(SERVER_ADDRESS, SERVER_ADDRESS_FAMILY)
> File "/usr/lib/python2.6/multiprocessing/connection.py", line 143, in
> Client
> c = SocketClient(address)
> File "/usr/lib/python2.6/multiprocessing/connection.py", line 263, in
> SocketClient
> s.connect(address)
> File "<string>", line 1, in connect
> error: [Errno 2] No such file or directory
>
> Traceback (most recent call last):
> File "/usr/bin/zim", line 74, in <module>
> zim.main(argv)
> File "/usr/lib/pymodules/python2.6/zim/__init__.py", line 443, in main
> start_server_if_not_running()
> File "/usr/lib/pymodules/python2.6/zim/ipc.py", line 277, in
> start_server_if_not_running
> raise AssertionError, 'Failed to start server (spawning)'
> AssertionError: Failed to start server (spawning)
> ===
>
> Seems to be trying to contact a server at 21843. Pressing ^C after
> waiting there for a while has it trying to start a server at 21889.
> Pressing ^C after another wait has it failing to connect to the server
> at 21843, and then giving the traceback.
>
> Kevin
>
> --
> You received this question notification because you are an answer
> contact for Zim.
>

Revision history for this message
Kevin Donnelly (donnek) said :
#4

zim --standalone didn't work, but there was a zim process still running. Once I killed that, it started OK. Great!

The problem with Distraction Free Editor also seems to be resolved now, because F11 to fullscreen hides menubar/icon-bar, but F11 to revert shows them, which it wasn't doing before.

Thanks for your help.

Kevin

Revision history for this message
Kevin Donnelly (donnek) said :
#5

Thanks Jaap Karssenberg, that solved my question.