FreeCAD 0.20 addon manager crashes

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
Atte
Posts: 7
Joined: Thu Aug 04, 2022 9:05 am

FreeCAD 0.20 addon manager crashes

Post by Atte »

Hello,

updated FreeCAD from 0.19 to 0.20 (rev 29188) some time ago. Addon manager worked perfectly with 0.19 but now with 0.20 it wont work anymore. It chrashes when installing any workbenches. I have elementary OS 6.1 built on Ubuntu 20.04.3 LTS.

I have already re-installed the 0.20 once, didn't help.

Here is the report view when opening addon manager:
---------------------------------------
11:58:40 An error occurred updating macros from GitHub, trying clean checkout...:
Cmd('git') failed due to: exit code(128)
cmdline: git clone -v https://github.com/FreeCAD/FreeCAD-macros.git /home/atte/.var/app/org.freecadweb.FreeCAD/cache/FreeCAD/Cache/AddonManager/Macros
stderr: 'Cloning into '/home/atte/.var/app/org.freecadweb.FreeCAD/cache/FreeCAD/Cache/AddonManager/Macros'...
fatal: unable to access 'https://github.com/FreeCAD/FreeCAD-macros.git/': gnutls_handshake() failed: Illegal parameter
'
11:58:40 /home/atte/.var/app/org.freecadweb.FreeCAD/cache/FreeCAD/Cache/AddonManager/Macros
11:58:40 Attempting to do a clean checkout...
11:58:40 Failed to update macros from GitHub -- try clearing the Addon Manager's cache.:
[Errno 2] No such file or directory: '/home/atte/.var/app/org.freecadweb.FreeCAD/cache/FreeCAD/Cache/AddonManager/Macros'
----------------------------------

Would be great if somebody could help.
User avatar
adrianinsaval
Veteran
Posts: 5541
Joined: Thu Apr 05, 2018 5:15 pm

Re: FreeCAD 0.20 addon manager chrashes

Post by adrianinsaval »

very strange, did you try clearing the cache?
User avatar
chennes
Veteran
Posts: 3876
Joined: Fri Dec 23, 2016 3:38 pm
Location: Norman, OK, USA
Contact:

Re: FreeCAD 0.20 addon manager chrashes

Post by chennes »

Is the copy of git installed on your computer able to clone that repository manually on the command line? What you are seeing there is basically an SSL error, I think.
Chris Hennes
Pioneer Library System
GitHub profile, LinkedIn profile, chrishennes.com
Atte
Posts: 7
Joined: Thu Aug 04, 2022 9:05 am

Re: FreeCAD 0.20 addon manager chrashes

Post by Atte »

adrianinsaval wrote: Thu Aug 04, 2022 8:49 pm very strange, did you try clearing the cache?
Thanks, I did clear the addon manager's cache but didn't help.
Atte
Posts: 7
Joined: Thu Aug 04, 2022 9:05 am

Re: FreeCAD 0.20 addon manager chrashes

Post by Atte »

chennes wrote: Thu Aug 04, 2022 11:06 pm Is the copy of git installed on your computer able to clone that repository manually on the command line? What you are seeing there is basically an SSL error, I think.
I can install workbench from command line (I installed A2Plus) but it wont appear in the workbench menu of the FreeCad.

Some more information:

When I try to install some workbench with addon manager, report view gives following two lines and the freecad chrashes:

Cloning repo...
Lock acquired...
User avatar
adrianinsaval
Veteran
Posts: 5541
Joined: Thu Apr 05, 2018 5:15 pm

Re: FreeCAD 0.20 addon manager chrashes

Post by adrianinsaval »

note that since you are using flatpak the version of git that is called by FreeCAD is probably not your system installation so it is not the same as running directly in a terminal. I suggest running this command in terminal:

Code: Select all

flatpak run --command=bash org.freecadweb.FreeCAD
This will open a bash prompt from within the flatpak sandbox, from there try running:

Code: Select all

git clone -v https://github.com/FreeCAD/FreeCAD-macros.git /home/atte/.var/app/org.freecadweb.FreeCAD/cache/FreeCAD/Cache/AddonManager/Macros
Atte
Posts: 7
Joined: Thu Aug 04, 2022 9:05 am

Re: FreeCAD 0.20 addon manager chrashes

Post by Atte »

adrianinsaval wrote: Fri Aug 05, 2022 2:21 pm note that since you are using flatpak the version of git that is called by FreeCAD is probably not your system installation so it is not the same as running directly in a terminal. I suggest running this command in terminal:

Code: Select all

flatpak run --command=bash org.freecadweb.FreeCAD
This will open a bash prompt from within the flatpak sandbox, from there try running:

Code: Select all

git clone -v https://github.com/FreeCAD/FreeCAD-macros.git /home/atte/.var/app/org.freecadweb.FreeCAD/cache/FreeCAD/Cache/AddonManager/Macros
Thanks, but this ends to:
$ flatpak run --command=bash org.freecadweb.FreeCAD
$ git clone -v https://github.com/FreeCAD/FreeCAD-macros.git /home/atte/.var/app/org.freecadweb.FreeCAD/cache/FreeCAD/Cache/AddonManager/Macros
Cloning into '/home/atte/.var/app/org.freecadweb.FreeCAD/cache/FreeCAD/Cache/AddonManager/Macros'...
fatal: unable to access 'https://github.com/FreeCAD/FreeCAD-macros.git/': gnutls_handshake() failed: Illegal parameter
User avatar
adrianinsaval
Veteran
Posts: 5541
Joined: Thu Apr 05, 2018 5:15 pm

Re: FreeCAD 0.20 addon manager chrashes

Post by adrianinsaval »

So in the flatpak git itself is not able to clone the repository, I have no clue why this is happening to you, on my system I have no issues running the flatpak. Could there be something missconfigured with your network?
Atte
Posts: 7
Joined: Thu Aug 04, 2022 9:05 am

Re: FreeCAD 0.20 addon manager chrashes

Post by Atte »

adrianinsaval wrote: Mon Aug 08, 2022 1:39 pm So in the flatpak git itself is not able to clone the repository, I have no clue why this is happening to you, on my system I have no issues running the flatpak. Could there be something missconfigured with your network?
Need to investigate that. Or maybe I just make a fresh FreeCad install from command line and forget the flatpak. Chennes talked about possible SSL error earlier..I don't know where such a missconfiguration could be. Everything else work perfectly. Many thanks for your time anyway!
User avatar
chennes
Veteran
Posts: 3876
Joined: Fri Dec 23, 2016 3:38 pm
Location: Norman, OK, USA
Contact:

Re: FreeCAD 0.20 addon manager chrashes

Post by chennes »

I don't know what all is in that Flatpak, and don't know much about how they work, but can you try using some other piece of software to do an https download? Just "wget https://forum.freecadweb.org" or something?
Chris Hennes
Pioneer Library System
GitHub profile, LinkedIn profile, chrishennes.com
Post Reply