KanoComputing / kano-burners

SD Card burner for OSX
GNU General Public License v2.0
12 stars 11 forks source link

[windows] Stuck on 'preparing to download OS' #61

Open pazdera opened 9 years ago

pazdera commented 9 years ago

Someone on Twitter reported that he burners are consistently getting stuck during this phase.

burner

raelity commented 9 years ago

Hello. I've just experienced the same thing on OS X.

Ealdwulf commented 9 years ago

We've released a new version of the burners which give the option to upload a log to us if anything went wrong, to help us debug it. It would be great if you could have another go with that: http://downloads.kano.me/public/burners/kano-burner-osx.zip

chleggett commented 9 years ago

I had the same trouble with the latest burner (v3), but I have found a work around.

I launched the app within a terminal session and this is what I see:

cleggett@mario MacOS % pwd
~/Desktop/Kano Burner.app/Contents/MacOS
/Users/cleggett/Desktop/Kano Burner.app/Contents/MacOS
cleggett@mario MacOS % sudo ./Kano\ Burner
~/Desktop/Kano Burner.app/Contents/MacOS
2015-10-24 04:35:49.513 Kano Burner[52624:1480182] modalSession has been exited
prematurely - check for a reentrant call to endModalSession:

10/24 04:35:51 [ERROR] IPv4 RPC: failed to bind TCP port 5900
Exception: [SocketCore.cc:293] errorCode=1 Failed to bind a socket, cause:
Address already in use

10/24 04:35:51 [ERROR] IPv6 RPC: failed to bind TCP port 5900
Exception: [SocketCore.cc:293] errorCode=1 Failed to bind a socket, cause:
Address already in use

10/24 04:35:51 [ERROR] Exception caught
Exception: [DownloadEngineFactory.cc:215] errorCode=1 Failed to setup RPC
server.
Traceback (most recent call last):
  File "<string>", line 283, in run
  File "../app/Kano Burner/build/Kano Burner/out00-PYZ.pyz/src.common.download",
line 100, in download_kano_os
  File "../app/Kano Burner/build/Kano
Burner/out00-PYZ.pyz/src.common.aria2_downloader", line 124, in isFinished
AttributeError: 'NoneType' object has no attribute 'return code'

This struck me as odd, but I couldn't figure out why until I remembered that port 5900 is VNC.

I disabled "Screen Sharing" in the Sharing preference pane in System Preferences and off we go.

I am not sure if there is a reason that TCP 5900 is used here, or if that was pulled out of the air.

Ealdwulf commented 9 years ago

Thanks, that's really useful! v3 is the newest burner. So we need to retry with different port numbers, and probably also capture the ouput of aria2 in logs in case there are other errors.

On 24 October 2015 at 09:41, Charles H. Leggett notifications@github.com wrote:

I am still having the same trouble on OS X with what I think is the newest burner (v3).

I launched the app within a terminal session and this is what I see:

cleggett@mario MacOS % pwd ~/Desktop/Kano Burner.app/Contents/MacOS /Users/cleggett/Desktop/Kano Burner.app/Contents/MacOS cleggett@mario MacOS % sudo ./Kano\ Burner ~/Desktop/Kano Burner.app/Contents/MacOS 2015-10-24 04:35:49.513 Kano Burner[52624:1480182] modalSession has been exited prematurely - check for a reentrant call to endModalSession:

10/24 04:35:51 [ERROR] IPv4 RPC: failed to bind TCP port 5900 Exception: [SocketCore.cc:293] errorCode=1 Failed to bind a socket, cause: Address already in use

10/24 04:35:51 [ERROR] IPv6 RPC: failed to bind TCP port 5900 Exception: [SocketCore.cc:293] errorCode=1 Failed to bind a socket, cause: Address already in use

10/24 04:35:51 [ERROR] Exception caught Exception: [DownloadEngineFactory.cc:215] errorCode=1 Failed to setup RPC server. Traceback (most recent call last): File "", line 283, in run File "../app/Kano Burner/build/Kano Burner/out00-PYZ.pyz/src.common.download", line 100, in download_kano_os File "../app/Kano Burner/build/Kano Burner/out00-PYZ.pyz/src.common.aria2_downloader", line 124, in isFinished AttributeError: 'NoneType' object has no attribute 'returncode'

— Reply to this email directly or view it on GitHub https://github.com/KanoComputing/kano-burners/issues/61#issuecomment-150777074 .

chleggett commented 9 years ago

For convenience, here's the offending line:

https://github.com/KanoComputing/kano-burners/blob/6a4df1fa1c262ee2c206ce53446ab1395b8991de/src/common/aria2_downloader.py#L67

g-guth commented 8 years ago

I have the same problem on windows.

chleggett commented 8 years ago

@g-guth if you have VNC installed, disable it before running the burner.