Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

[Failure] Failed to install 2.0.0-dev.20 as "Update" #776

Closed
esacci opened this issue Sep 27, 2018 · 10 comments
Closed

[Failure] Failed to install 2.0.0-dev.20 as "Update" #776

esacci opened this issue Sep 27, 2018 · 10 comments

Comments

@esacci
Copy link

esacci commented Sep 27, 2018

Failure to install 2.0.0-dev.20.

I have an existing (dev) version on my laptop.

screen shot 2018-09-27 at 13 42 42

screen shot 2018-09-27 at 13 46 59

@esacci
Copy link
Author

esacci commented Sep 27, 2018

log:

[2018-09-27 13:42:09.190] [info] ===============================================================================
[2018-09-27 13:42:09.194] [info] Cate Desktop, version 2.0.0-dev.20
[2018-09-27 13:42:09.194] [info] ===============================================================================
[2018-09-27 13:42:09.194] [info] process.versions = { http_parser: '2.7.0',
node: '8.2.1',
v8: '5.9.211.38',
uv: '1.13.1',
zlib: '1.2.11',
ares: '1.10.1-DEV',
modules: '57',
openssl: '1.0.2l',
electron: '1.8.8',
chrome: '59.0.3071.115',
'atom-shell': '1.8.8' }
[2018-09-27 13:42:09.201] [info] User preferences successfully loaded from "/Users/<#>/.cate/preferences.json"
[2018-09-27 13:42:09.201] [warn] debugWorldView = false
[2018-09-27 13:42:09.202] [info] process.env.NODE_ENV = production
[2018-09-27 13:42:09.202] [info] appPath: /Applications/Cate Desktop.app/Contents/Resources/app.asar
[2018-09-27 13:42:09.202] [info] appConfig: { webAPIConfig:
{ servicePort: 9090,
serviceAddress: '',
serviceFile: '/Users/<#>/.cate/webapi-info.json',
processOptions: {} } }
[2018-09-27 13:42:09.545] [info] Ready.
[2018-09-27 13:42:09.816] [info] Splash says: Waiting for Cate service...
[2018-09-27 13:42:09.816] [info] Waiting for response from Cate service http://localhost:9090/
[2018-09-27 13:42:09.827] [info] No response from Cate service after 0.01 seconds: Error: connect ECONNREFUSED 127.0.0.1:9090
[2018-09-27 13:42:09.828] [info] Splash says: Waiting for Cate service (0.01s)
[2018-09-27 13:42:09.830] [info] Checking Cate installation directory: /Users/<#>/.cate/2.0.0.dev11/cate.location
[2018-09-27 13:42:09.838] [info] Cate WebAPI executable found: /Users/<#>/anaconda3/envs/cate-env/bin/cate-webapi-start
[2018-09-27 13:42:09.841] [info] Computed setup information: { oldCateDir: '/Users/<#>/anaconda3/envs/cate-env',
newCateDir: '/Users/<#>/cate-2.0.0.dev20',
oldCateVersion: '2.0.0.dev11',
newCateVersion: '2.0.0.dev20',
setupReason: 'UPDATE_CATE' }
[2018-09-27 13:42:09.842] [info] Cate directory set to /Users/<#>/anaconda3/envs/cate-env
[2018-09-27 13:42:47.459] [info] executing asynchronously: source "/Users/<#>/anaconda3/envs/cate-env/bin/activate" "/Users/<#>/anaconda3/envs/cate-env"; exec cate --version { shell: '/bin/bash' }
[2018-09-27 13:42:50.889] [info] spawning asynchronously: source "/Users/<#>/anaconda3/envs/cate-env/bin/activate" "/Users/<#>/anaconda3/envs/cate-env"; exec conda install --yes -c ccitools -c conda-forge conda cate-cli=2.0.0.dev20 undefined { shell: '/bin/bash' }
[2018-09-27 13:46:36.444] [info] executing asynchronously: source "/Users/<#>/anaconda3/envs/cate-env/bin/activate" "/Users/<#>/anaconda3/envs/cate-env"; exec cate --version { shell: '/bin/bash' }
[2018-09-27 13:46:37.053] [error] Setup failed: Error: Installation of Python package cate 2.0.0.dev20 did not succeed.
at spawnAsyncAndLog.then.then.ok (/Applications/Cate Desktop.app/Contents/Resources/app.asar/main/update-backend.js:163:23)
at

@esacci esacci changed the title [Bug] Failure to install 2.0.0-dev.20 [Bug] Failure to install 2.0.0-dev.20 as update Sep 27, 2018
@esacci esacci changed the title [Bug] Failure to install 2.0.0-dev.20 as update [Bug] Failure to install 2.0.0-dev.20 as "Update" Sep 27, 2018
@esacci
Copy link
Author

esacci commented Sep 27, 2018

Platform: MacOS Sierra v10.12.3

@esacci esacci changed the title [Bug] Failure to install 2.0.0-dev.20 as "Update" [Failure] Failed to install 2.0.0-dev.20 as "Update" Sep 27, 2018
@forman
Copy link
Member

forman commented Sep 27, 2018

@esacci Sorry for this.

Could you please to manually do what the update installer does by typing into in a terminal window:

$ "/Users/<#>/anaconda3/envs/cate-env/bin/activate" "/Users/<#>/anaconda3/envs/cate-env"; exec cate --version

and kindly providing the output here?

Does /Users/<#>/anaconda3/envs/cate-env/bin/activate exist?

@esacci
Copy link
Author

esacci commented Sep 27, 2018

Hi,

fyi - I've since tried to do an "Install a new Cate" with a similar failure, following a machine reboot.

I typed in the text as advised above and got the following:
MAC-EOP-2470:~ <#>$ "/Users/<#>/anaconda3/envs/cate-env/bin/activate" "/Users/<#>/anaconda3/envs/cate-env"; exec cate --version
-bash: /Users/<#>/anaconda3/envs/cate-env/bin/activate: Permission denied
-bash: exec: cate: not found

Yes, I notice /Users/<#>/anaconda3/envs/cate-env/bin/activate does exist:
-rw-rw-r-- 1 <#> staff 141 27 Sep 13:46 activate

@esacci
Copy link
Author

esacci commented Sep 27, 2018

Should / could I try removing previous versions?

@esacci
Copy link
Author

esacci commented Sep 27, 2018

I attempted a clean install as follows, but it failed:

#1
MAC-EOP-2470:envs <#>$ ls -al
total 0
drwxr-xr-x 3 <#> staff 102 11 May 09:04 .
drwxr-xr-x 24 <#> staff 816 11 May 08:47 ..
drwxr-xr-x 21 <#> staff 714 27 Sep 13:46 cate-env
MAC-EOP-2470:envs <#>$ pwd
/Users/<#>/anaconda3/envs
MAC-EOP-2470:envs <#>$ mv cate-env old-env
MAC-EOP-2470:envs <#>$

#2
MAC-EOP-2470:~ <#>$ cd .cate
MAC-EOP-2470:.cate <#>$ pwd
/Users/<#>/.cate
MAC-EOP-2470:.cate <#>$ cd ..
MAC-EOP-2470:~ <#>$ mv .cate .old
MAC-EOP-2470:~ <#>$ cd .cate
-bash: cd: .cate: No such file or directory
MAC-EOP-2470:~ <#>$ pwd
/Users/<#>
MAC-EOP-2470:~ <#>$

#3
MAC-EOP-2470:~ <#>$ mv cate oldcate
MAC-EOP-2470:~ <#>$ mv cate-2.0.0.dev20 oldcate-2.0.0.dev20
MAC-EOP-2470:~ <#>$ mv cate-desktop oldcate-desktop
MAC-EOP-2470:~ <#>$ pwd
/Users/<#>
MAC-EOP-2470:~ <#>$

#4
MAC-EOP-2470:~ <#>$ mv .cate .oldcate
MAC-EOP-2470:~ <#>$ pwd
/Users/<#>
MAC-EOP-2470:~ <#>$ cd

#5 execute installer ("Automatic Setup")

#6 install fails.

screen shot 2018-09-27 at 15 07 34

MAC-EOP-2470:.cate <#>$ more cate-desktop.log
[2018-09-27 14:55:14.471] [info] ===============================================================================
[2018-09-27 14:55:14.474] [info] Cate Desktop, version 2.0.0-dev.20
[2018-09-27 14:55:14.474] [info] ===============================================================================
[2018-09-27 14:55:14.474] [info] process.versions = { http_parser: '2.7.0',
node: '8.2.1',
v8: '5.9.211.38',
uv: '1.13.1',
zlib: '1.2.11',
ares: '1.10.1-DEV',
modules: '57',
openssl: '1.0.2l',
electron: '1.8.8',
chrome: '59.0.3071.115',
'atom-shell': '1.8.8' }
[2018-09-27 14:55:14.476] [warn] debugWorldView = undefined
[2018-09-27 14:55:14.477] [info] process.env.NODE_ENV = production
[2018-09-27 14:55:14.477] [info] appPath: /Applications/Cate Desktop.app/Contents/Resources/app.asar
[2018-09-27 14:55:14.477] [info] appConfig: { webAPIConfig:
{ servicePort: 9090,
serviceAddress: '',
serviceFile: '/Users/<#>/.cate/webapi-info.json',
processOptions: {} } }
[2018-09-27 14:55:14.615] [info] Ready.
[2018-09-27 14:55:14.827] [info] Splash says: Waiting for Cate service...
[2018-09-27 14:55:14.828] [info] Waiting for response from Cate service http://localhost:9090/
[2018-09-27 14:55:14.838] [info] No response from Cate service after 0.01 seconds: Error: connect ECONNREFUSED 127.0.0.1:9090
[2018-09-27 14:55:14.838] [info] Splash says: Waiting for Cate service (0.01s)
[2018-09-27 14:55:14.839] [info] Computed setup information: { newCateDir: '/Users/<#>/cate-2.0.0.dev20',
newCateVersion: '2.0.0.dev20',
setupReason: 'INSTALL_CATE' }
[2018-09-27 14:55:49.578] [info] executing asynchronously: source "/Users/<#>/cate-2.0.0.dev20/bin/activate" "/Users/<#>/cate-2.0.0.dev20"; exec python --version { shell: '/bin/bash' }
[2018-09-27 14:55:49.624] [info] spawning asynchronously: /var/folders/ms/9y7h200j13ddzq593z0z1gm00000gr/T/cate-vA5JMg/Miniconda3-4.5.4-MacOSX-x86_64.sh [ '-b', '-f', '-p', '/Users/<#>/cate-2.0.0.dev20' ] { shell: '/bin/bash' }
[2018-09-27 14:56:13.232] [info] executing asynchronously: source "/Users/<#>/cate-2.0.0.dev20/bin/activate" "/Users/<#>/cate-2.0.0.dev20"; exec cate --version { shell: '/bin/bash' }
[2018-09-27 14:56:13.501] [warn] Retrieving Cate version failed (and this may be ok): Error: Command failed: source "/Users/<#>/cate-2.0.0.dev20/bin/activate" "/Users/<#>/cate-2.0.0.dev20"; exec cate --version
/bin/bash: line 0: exec: cate: not found
at ChildProcess.exithandler (child_process.js:282:12)
at emitTwo (events.js:125:13)
at ChildProcess.emit (events.js:213:7)
at maybeClose (internal/child_process.js:921:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
[2018-09-27 14:56:13.503] [info] spawning asynchronously: source "/Users/<#>/cate-2.0.0.dev20/bin/activate" "/Users/<#>/cate-2.0.0.dev20"; exec conda install --yes -c ccitools -c conda-forge conda cate-cli=2.0.0.dev20 undefined { shell: '/bin/bash' }
[2018-09-27 15:06:16.983] [info] executing asynchronously: source "/Users/<#>/cate-2.0.0.dev20/bin/activate" "/Users/<#>/cate-2.0.0.dev20"; exec cate --version { shell: '/bin/bash' }
[2018-09-27 15:06:17.436] [error] Setup failed: Error: Installation of Python package cate 2.0.0.dev20 did not succeed.
at spawnAsyncAndLog.then.then.ok (/Applications/Cate Desktop.app/Contents/Resources/app.asar/main/update-backend.js:163:23)
at

@esacci
Copy link
Author

esacci commented Sep 27, 2018

fyi -

MAC-EOP-2470:~ <#>$ conda info --envs
# conda environments:
#
base                  *  /Users/<#>/anaconda3
old-env                  /Users/<#>/anaconda3/envs/old-env
                         /Users/<#>/cate-2.0.0.dev20

@forman
Copy link
Member

forman commented Sep 27, 2018

@esacci we cannot reproduce it on our Mac. Updating and fresh installation, both work as expected. Do you have time for a Skype session?

@forman
Copy link
Member

forman commented Sep 27, 2018

@esacci can you please try just the activation part:

"/Users/<#>/anaconda3/envs/cate-env/bin/activate" "/Users/<#>/anaconda3/envs/cate-env"

EDIT:

Sorry I forgot to "source":

source "/Users/<#>/anaconda3/envs/cate-env/bin/activate" "/Users/<#>/anaconda3/envs/cate-env"

@hans-permana
Copy link
Contributor

The issue was there was a second (and older) cate installation was found in ~/.local directory. This version of cate was somehow preferred to the newer one although the directory was not positioned as the first entry in the $PATH. After the removal of the second installation, Cate Desktop used always the right cate installation. We still need to investigate how cate is installed in .local directory.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants