thiagoralves / OpenPLC_Editor

OpenPLC Editor - IDE capable of creating programs for the OpenPLC Runtime
GNU General Public License v2.0
387 stars 191 forks source link

Check for updates (Windows) failing #53

Open JohnnyOpcode opened 1 year ago

JohnnyOpcode commented 1 year ago

The current version downloaded from the website detects a new version, but fails to download (?) and install (?) in Windows (10).

ANy ideas where to patch?

thiagoralves commented 1 year ago

It is working for me. What is the error message you're getting?

On Thu, Aug 4, 2022 at 11:35 AM Johnny Opcode @.***> wrote:

The current version downloaded from the website detects a new version, but fails to download (?) and install (?) in Windows (10).

ANy ideas where to patch?

— Reply to this email directly, view it on GitHub https://github.com/thiagoralves/OpenPLC_Editor/issues/53, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB63XPDD6QSGNPDEFEQSRILVXPPNHANCNFSM55TAC6MA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

JohnnyOpcode commented 1 year ago

It hangs shortly after the download is my best interpretation. image

thiagoralves commented 1 year ago

Check your internet connection. There could be something blocking access to github servers. Make sure there aren't any firewall or antivirus blocking OpenPLC Editor traffic.

On Fri, Aug 5, 2022 at 10:07 AM Johnny Opcode @.***> wrote:

It hangs shortly after the download is my best interpretation. [image: image] https://user-images.githubusercontent.com/1428214/183094151-23660058-f017-416b-9fc5-5405e759bbd7.png

— Reply to this email directly, view it on GitHub https://github.com/thiagoralves/OpenPLC_Editor/issues/53#issuecomment-1206498160, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB63XPAZRSI4YAM7PQBP7S3VXUN3LANCNFSM55TAC6MA . You are receiving this because you commented.Message ID: @.***>

JohnnyOpcode commented 1 year ago

Do you mean I need to add a firewall rule (manually) for the application under Windows 10? I am browsing GitHub without issue as can be seen here.

thiagoralves commented 1 year ago

No add a firewall rule, but make sure there isn't any rule blocking it. Firewall rules are per application, so your browser could browse github normally, but it could be possible that there is a rule blocking OpenPLC Editor external communications

On Fri, Aug 5, 2022 at 10:29 AM Johnny Opcode @.***> wrote:

Do you mean I need to add a firewall rule (manually) for the application under Windows 10? I am browsing GitHub without issue as can be seen here.

— Reply to this email directly, view it on GitHub https://github.com/thiagoralves/OpenPLC_Editor/issues/53#issuecomment-1206521508, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB63XPALLLU4KQ3C7VA65BTVXUQNFANCNFSM55TAC6MA . You are receiving this because you commented.Message ID: @.***>

JohnnyOpcode commented 1 year ago

C:\Users\DEV\OpenPLC_Editor>if exist .\new_editor\ rmdir /s /Q new_editor

C:\Users\DEV\OpenPLC_Editor>if exist .\OpenPLC_Editor\ rmdir /s /Q OpenPLC_Editor

C:\Users\DEV\OpenPLC_Editor>git clone https://github.com/thiagoralves/OpenPLC_Editor Cloning into 'OpenPLC_Editor'... fatal: unable to access 'https://github.com/thiagoralves/OpenPLC_Editor/': error setting certificate verify locations: CAfile: C:\Program Files\Git\mingw64\ssl\certs\ca-bundle.crt CApath: none

C:\Users\DEV\OpenPLC_Editor>if exist .\OpenPLC_Editor\editor\ ( move .\OpenPLC_Editor\editor .\new_editor copy /y .\OpenPLC_Editor\revision .\ rmdir /s /Q OpenPLC_Editor echo "Update applied successfully" ) else (echo "Error cloning from repository!" ) "Error cloning from repository!"

C:\Users\DEV\OpenPLC_Editor>

thiagoralves commented 1 year ago

The updater is trying to use Git from your machine but apparently it is broken (missing certificates). OpenPLC Editor includes its own Git. Try reinstalling Git on your machine, or removing it altogether, so that the updater will use the bundled Git.

On Tue, Aug 9, 2022 at 2:31 PM Johnny Opcode @.***> wrote:

C:\Users\DEV\OpenPLC_Editor>if exist .\new_editor\ rmdir /s /Q new_editor

C:\Users\DEV\OpenPLC_Editor>if exist .\OpenPLC_Editor\ rmdir /s /Q OpenPLC_Editor

C:\Users\DEV\OpenPLC_Editor>git clone https://github.com/thiagoralves/OpenPLC_Editor Cloning into 'OpenPLC_Editor'... fatal: unable to access 'https://github.com/thiagoralves/OpenPLC_Editor/': error setting certificate verify locations: CAfile: C:\Program Files\Git\mingw64\ssl\certs\ca-bundle.crt CApath: none

C:\Users\DEV\OpenPLC_Editor>if exist .\OpenPLC_Editor\editor\ ( move .\OpenPLC_Editor\editor .\new_editor copy /y .\OpenPLC_Editor\revision . rmdir /s /Q OpenPLC_Editor echo "Update applied successfully" ) else (echo "Error cloning from repository!" ) "Error cloning from repository!"

C:\Users\DEV\OpenPLC_Editor>

— Reply to this email directly, view it on GitHub https://github.com/thiagoralves/OpenPLC_Editor/issues/53#issuecomment-1209738055, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB63XPDCDTYM6VJESKN6K4DVYKPYZANCNFSM55TAC6MA . You are receiving this because you commented.Message ID: @.***>

JohnnyOpcode commented 1 year ago

I have no Git installed or on my path. I do have GitHub Desktop however.

This directory does not exist on my PC nor the .crt file as well. C:\Program Files\Git\mingw64\ssl\certs\ca-bundle.crt

I will keep debugging the problem..