ZeroNerds / zeronet-snap

ZeroNet as snap
https://zeronet.io/
GNU General Public License v3.0
10 stars 1 forks source link

Rev4200 & ZeroMail (http://127.0.0.1:43110/Mail.ZeroNetwork.bit/) #8

Closed katian closed 4 years ago

katian commented 4 years ago

Internal error: AttributeError: /snap/zeronet/2019/usr/lib/x86_64-linux-gnu/libssl.so.1.1: undefined symbol: ECDH_OpenSSL UiWebsocket.py line 79 > UiWebsocket.py line 232 > CryptMessage/CryptMessagePlugin.py line 86 > init.py line 17 > ecc.py line 15 > cipher.py line 7 > init.py line 43 > openssl.py line 513 > openssl.py line 168 > init.py line 361 > init.py line 366

mkg20001 commented 4 years ago

When does this happen exactly? When visiting the site, I don't get that problem

katian commented 4 years ago

it works now thanks mkg20001

katian commented 4 years ago

Hi, again, when i open http://127.0.0.1:43110/Mail.ZeroNetwork.bit/ :

Internal error: AttributeError: /snap/zeronet/2115/usr/lib/x86_64-linux-gnu/libssl.so.1.1: undefined symbol: ECDH_OpenSSL UiWebsocket.py line 79 > UiWebsocket.py line 232 > CryptMessage/CryptMessagePlugin.py line 86 > init.py line 17 > ecc.py line 15 > cipher.py line 7 > init.py line 43 > openssl.py line 513 > openssl.py line 168 > init.py line 361 > init.py line 366

snap installed: 0.7.1-r4210 (2115)

https://github.com/HelloZeroNet/ZeroMail/issues/43#issuecomment-531479667

mkg20001 commented 4 years ago

Seems like it has re-appeared

@HelloZeroNet do you have a clue what's going on? Could some libraries be missing from the snap?

HelloZeroNet commented 4 years ago

TLDR: Fixed in Rev4214 https://github.com/HelloZeroNet/ZeroNet/commit/10817aefae60b84d25228878642d840a91188340 https://github.com/HelloZeroNet/ZeroNet/commit/4293a44c93d4fef853a3df47064843f7278f3030 https://github.com/HelloZeroNet/ZeroNet/commit/b474677db1ff06a237206a7aa43cc52eb6ffce98

It took me a while to figure out how to debug snap package (maybe there is a better way to do it), here is how I done (maybe it could be helpful to others):

mkg20001 commented 4 years ago

You can use snap try <directory> from the "prime" directory after running snapcraft to build the snap using the files from this repo

HelloZeroNet commented 4 years ago

I wanted to avoid rebuilding as it could mean different version of the libraries.

mkg20001 commented 4 years ago

snapcraft spawns a vm via multipass if you are not using the specific distro the snap needs to be compiled on

But after unsquashing it snap try <folder> should've worked as well

mkg20001 commented 4 years ago

Build should be released automatically in the next 8 hours.

@katian Can you close the issue once it works?

katian commented 4 years ago

snap installed: 0.7.1-r4214 (2133) 21MB

thats great, it works !

thanks a lot !