threefoldtecharchive / jumpscaleX_core

Apache License 2.0
1 stars 6 forks source link

Starting 3bot container reveals wrong email address #772

Closed weynandkuijpers closed 4 years ago

weynandkuijpers commented 4 years ago

Latest version of jumpscale 3sdk> container install shell (locally compiled) exposes the wonrg email address when I provide my 3bot connect

$ /usr/local/bin/3sdkdynamic                                                                                                                                                        
3sdk> container start name='dynamic-started'                                                                                                                 
@param server=True will start 3bot server                                                                                                                    
Which network would you like to register to? 
make your choice (mainnet,testnet,devnet,none): mainnet
what is your threebot name (identity)?
weynandkuijpers01
Configured email for this identity is Stefan.tonnon@gmail.com
Copy the phrase from your 3bot Connect app here.

A search in the explorer show that this is userid 1

[{"id":1,"name":"Sweden.3bot","email":"Stefan.tonnon@gmail.com","pubkey":"c2407de9bc8a8993ce027f1dc891e09c00e5ffe83df29957dfdc4bf55e41e7f9","host":"\u003cnil\u003e","description":"","signature":""},{"id":2,"name":"zaibon.3bot","email":"christophe@threefold.tech","pubkey":"34c77fdf6c5ef24d5a6981be06f9109ba83b7e306cfad8141ce5f572b647cbeb","host":"\u003cnil\u003e","description":"","signature":""},{"id":5,"name":"geert.3bot","email":"geert.machtelinckx@gmail.com","pubkey":"1390a7f22ab98cef581af8a1f5cb075989f4ab259c6f3c788013e05f3659d6d6","host":"172.17.0.3","description":"anything can go here","signature":"d8b7449a7767cae11179f7bbec80e526a176fe47931129496707d2c112f01fa9c71
``

PS:  It is the same for the static linked binary
```weynand@Happy:~/opt/code/GitHub/threefoldtech/jumpscaleX_core/install$ sudo /usr/local/bin/3sdk
Welcome to sdk shell, for help, type info, to exit type exit
3sdk> container start name='standard-started'                                                                                                                
@param server=True will start 3bot server                                                                                                                    
Which network would you like to register to? 
make your choice (mainnet,testnet,devnet,none): mainnet
what is your threebot name (identity)?
weynandkuijpers01
Configured email for this identity is Stefan.tonnon@gmail.com
Copy the phrase from your 3bot Connect app here.
weynandkuijpers commented 4 years ago

binary rc-10.5 does not have this same behavior. will check now if if was the latest version of the repo.

weynandkuijpers commented 4 years ago

Latest repo version and local build shows the wrong email address:

Already up to date.
weynand@Happy:~/opt/code/GitHub/threefoldtech/jumpscaleX_core$ cd install/ 
weynand@Happy:~/opt/code/GitHub/threefoldtech/jumpscaleX_core/install$ ./package.sh 
Requirement already satisfied: ptpython==2.0.4 in /home/weynand/.local/lib/python3.8/site-packages (from -r requirements.txt (line 1)) (2.0.4)
Requirement already satisfied: PyInstaller==3.6 in /home/weynand/.local/lib/python3.8/site-packages (from -r requirements.txt (line 2)) (3.6)
Requirement already satisfied: packaging==20.3 in /home/weynand/.local/lib/python3.8/site-packages (from -r requirements.txt (line 3)) (20.3)
Requirement already satisfied: setuptools==46.1.3 in /home/weynand/.local/lib/python3.8/site-packages (from -r requirements.txt (line 4)) (46.1.3)
Requirement already satisfied: pudb in /home/weynand/.local/lib/python3.8/site-packages (from -r requirements.txt (line 5)) (2019.2)
Requirement already satisfied: pytoml in /home/weynand/.local/lib/python3.8/site-packages (from -r requirements.txt (line 6)) (0.1.21)
Requirement already satisfied: pynacl in /usr/lib/python3/dist-packages (from -r requirements.txt (line 7)) (1.3.0)
Requirement already satisfied: jedi in /home/weynand/.local/lib/python3.8/site-packages (from -r requirements.txt (line 8)) (0.17.0)
Requirement already satisfied: pygments in /home/weynand/.local/lib/python3.8/site-packages (from ptpython==2.0.4->-r requirements.txt (line 1)) (2.6.1)
Requirement already satisfied: prompt-toolkit<2.1.0,>=2.0.6 in /home/weynand/.local/lib/python3.8/site-packages (from ptpython==2.0.4->-r requirements.txt (line 1)) (2.0.10)
Requirement already satisfied: docopt in /home/weynand/.local/lib/python3.8/site-packages (from ptpython==2.0.4->-r requirements.txt (line 1)) (0.6.2)
Requirement already satisfied: altgraph in /home/weynand/.local/lib/python3.8/site-packages (from PyInstaller==3.6->-r requirements.txt (line 2)) (0.17)
Requirement already satisfied: pyparsing>=2.0.2 in /home/weynand/.local/lib/python3.8/site-packages (from packaging==20.3->-r requirements.txt (line 3)) (2.4.7)
Requirement already satisfied: six in /usr/lib/python3/dist-packages (from packaging==20.3->-r requirements.txt (line 3)) (1.14.0)
Requirement already satisfied: urwid>=1.1.1 in /home/weynand/.local/lib/python3.8/site-packages (from pudb->-r requirements.txt (line 5)) (2.1.0)
Requirement already satisfied: parso>=0.7.0 in /home/weynand/.local/lib/python3.8/site-packages (from jedi->-r requirements.txt (line 8)) (0.7.0)
Requirement already satisfied: wcwidth in /home/weynand/.local/lib/python3.8/site-packages (from prompt-toolkit<2.1.0,>=2.0.6->ptpython==2.0.4->-r requirements.txt (line 1)) (0.1.9)
Requirement already satisfied: staticx in /home/weynand/.local/lib/python3.8/site-packages (0.9.1)
Requirement already satisfied: pyelftools in /home/weynand/.local/lib/python3.8/site-packages (from staticx) (0.26)
96 INFO: PyInstaller: 3.6
96 INFO: Python: 3.8.2
111 INFO: Platform: Linux-5.4.0-25-generic-x86_64-with-glibc2.29
116 INFO: UPX is available.
118 INFO: Extending PYTHONPATH with paths
['/home/weynand/opt/code/GitHub/threefoldtech/jumpscaleX_core/install', '/tmp']
118 INFO: checking Analysis
175 INFO: checking PYZ
201 INFO: checking PKG
222 INFO: Bootloader /home/weynand/.local/lib/python3.8/site-packages/PyInstaller/bootloader/Linux-64bit/run
223 INFO: checking EXE
239 INFO: Rebuilding EXE-00.toc because mtimes don't match
239 INFO: Building EXE from EXE-00.toc
241 INFO: Appending archive to ELF section in EXE /home/weynand/opt/code/GitHub/threefoldtech/jumpscaleX_core/install/dist/3sdk
288 INFO: Building EXE from EXE-00.toc completed successfully.
weynand@Happy:~/opt/code/GitHub/threefoldtech/jumpscaleX_core/install$ sudo mv ./dist/* /usr/local/bin/
[sudo] password for weynand: 
weynand@Happy:~/opt/code/GitHub/threefoldtech/jumpscaleX_core/install$ ls -al /usr/local/bin/3sdk*
-rwxrwxr-x 1 weynand weynand 16064144 abr 26 09:55 /usr/local/bin/3sdk
-rwxr-xr-x 1 root    root    25736384 abr 26 09:51 /usr/local/bin/3sdk_10.5-rc1_linux_amd64
-rwxr-xr-x 1 weynand weynand 14977112 abr 26 09:55 /usr/local/bin/3sdkdynamic
weynand@Happy:~/opt/code/GitHub/threefoldtech/jumpscaleX_core/install$ 3sdk
3sdk                       3sdk_10.5-rc1_linux_amd64  3sdkdynamic                
weynand@Happy:~/opt/code/GitHub/threefoldtech/jumpscaleX_core/install$ 3sdk
3sdk                       3sdk_10.5-rc1_linux_amd64  3sdkdynamic                
weynand@Happy:~/opt/code/GitHub/threefoldtech/jumpscaleX_core/install$ 3sdk
3sdk                       3sdk_10.5-rc1_linux_amd64  3sdkdynamic                
weynand@Happy:~/opt/code/GitHub/threefoldtech/jumpscaleX_core/install$ sudo 3sdk
Welcome to sdk shell, for help, type info, to exit type exit
3sdk> container start name='conpiled-started'                                                                                                                
@param server=True will start 3bot server                                                                                                                    
Which network would you like to register to? 
make your choice (mainnet,testnet,devnet,none): mainnet 
what is your threebot name (identity)?
weynandkuijpers01 
Configured email for this identity is Stefan.tonnon@gmail.com
Copy the phrase from your 3bot Connect app here.
grimpy commented 4 years ago

Fixed on development branch