Page 1 of 1

[Solved] Wep Updater error

Posted: Sun May 16, 2021 7:10 am
by Goha
I'm trying to use web updater and I don't know much about ftp or web hosting.

My update file was uploaded to the Amazon web server. All files uploaded to AWS are public and can be read by anyone.

When I turn on the game and run the updater, I get an error message saying 'The update file was not downloaded.'
There is no problem checking the updated version. The problem occurs at the stage of downloading the update file.

What's wrong with this? I want to know how to solve this problem.

Re: [Help] Wep Updater error

Posted: Mon May 17, 2021 7:06 pm
by PyTom
Can you post the log from the update directory?

Re: [Help] Wep Updater error

Posted: Fri May 21, 2021 7:41 am
by Goha
running ['E:\\zeus_Test-3.10-pc\\lib\\windows-i686\\zsync.exe', '-o', 'E:\\zeus_Test-3.10-pc\\update\\pc.update.new', '-k', 'E:\\zeus_Test-3.10-pc\\update\\pc.zsync', '-i', 'E:\\zeus_Test-3.10-pc\\update\\pc.update', 'https://zeustestko.s3.ap-northeast-2.am ... 1-pc.zsync']
failed on url https://zeustestko.s3.ap-northeast-2.am ... 1-pc.zsync
could not read control file from URL https://zeustestko.s3.ap-northeast-2.am ... 1-pc.zsync
running ['E:\\zeus_Test-3.10-pc\\lib\\windows-i686\\zsync.exe', '-o', 'E:\\zeus_Test-3.10-pc\\update\\pc.update.new', 'https://zeustestko.s3.ap-northeast-2.am ... 1-pc.zsync']
failed on url https://zeustestko.s3.ap-northeast-2.am ... 1-pc.zsync
could not read control file from URL https://zeustestko.s3.ap-northeast-2.am ... 1-pc.zsync
Traceback (most recent call last):
File "renpy/common/00updater.rpy", line 334, in run
self.update()
File "renpy/common/00updater.rpy", line 441, in update
self.download(i, standalone=True)
File "renpy/common/00updater.rpy", line 1006, in download
raise UpdateError(_("The update file was not downloaded."))
UpdateError: The update file was not downloaded.


This is my log. It may have changed from the original line because I added some print functions.
Thank you for your kindness.

Re: [Help] Wep Updater error

Posted: Fri May 21, 2021 6:52 pm
by PyTom
Ah, the updater doesn't support https.

Re: [Help] Wep Updater error

Posted: Sat May 22, 2021 10:13 am
by Goha
Thank you very much! The update proceeds successfully.
But there is another problem... When I restart the program after the update, an exception is thrown.
Attach a trackback.

Code: Select all

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "renpy/common/00updater.rpy", line 23, in script
    init -1500 python in updater:
  File "renpy/common/00updater.rpy", line 120, in <module>
    process_deferred()
  File "renpy/common/00updater.rpy", line 103, in process_deferred
    l = l.decode("utf-8")
UnicodeDecodeError: 'utf8' codec can't decode byte 0x9c in position 10: invalid start byte

-- Full Traceback ------------------------------------------------------------

Full traceback:
  File "renpy/common/00updater.rpy", line 23, in script
    init -1500 python in updater:
  File "E:\zeus_Test-3.10-pc\renpy\ast.py", line 914, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "E:\zeus_Test-3.10-pc\renpy\python.py", line 2028, in py_exec_bytecode
    exec bytecode in globals, locals
  File "renpy/common/00updater.rpy", line 120, in <module>
    process_deferred()
  File "renpy/common/00updater.rpy", line 103, in process_deferred
    l = l.decode("utf-8")
  File "/home/tom/ab/x64lucid-deps/install/lib/python2.7/encodings/utf_8.py", line 16, in decode
UnicodeDecodeError: 'utf8' codec can't decode byte 0x9c in position 10: invalid start byte

Windows-8-6.2.9200
Ren'Py 7.3.5.606
 
Sat May 22 23:12:52 2021

Re: [Help] Wep Updater error

Posted: Sat May 22, 2021 8:16 pm
by PyTom
I believe that error was fixed at some point during the 7.4 series.

Re: [Help] Wep Updater error

Posted: Mon May 24, 2021 9:03 am
by Goha
Oh, thank you very much. I solved all the problems in the updater. Thank you so much for your kind answer.