Long story short, I am deploying a django app to app engine. The build process appears to install many packages and then errors out, like so.
Edit. This is the (redacted) build log. The command line output of gcloud app deploy is located below.
(((redacted, everything up to this point builds successfully)))
Step #1 - "builder":
Step #1 - "builder": INFO pip_install_from_wheels took 0 seconds
Step #1 - "builder": INFO starting: pip_install_from_wheels
Step #1 - "builder": INFO pip_install_from_wheels /env/bin/python3.7 -m pip install --no-deps --prefix /tmp/tmp1IKuwt/env /tmp/tmpDGYffm/wheel/aldryn_apphooks_config-0.5.3-py2.py3-none-any.whl --disable-pip-version-check
Step #1 - "builder": INFO `pip_install_from_wheels` stdout:
Step #1 - "builder": Processing /tmp/tmpDGYffm/wheel/aldryn_apphooks_config-0.5.3-py2.py3-none-any.whl
Step #1 - "builder": Installing collected packages: aldryn-apphooks-config
Step #1 - "builder": Successfully installed aldryn-apphooks-config-0.5.3
Step #1 - "builder":
Step #1 - "builder": INFO pip_install_from_wheels took 0 seconds
Step #1 - "builder": INFO starting: pip_install_from_wheels
Step #1 - "builder": INFO pip_install_from_wheels /env/bin/python3.7 -m pip install --no-deps --prefix /tmp/tmpwuKmD2/env /tmp/tmpDGYffm/wheel/cryptography-2.8-cp34-abi3-manylinux2010_x86_64.whl --disable-pip-version-check
Step #1 - "builder": INFO `pip_install_from_wheels` stdout:
Step #1 - "builder": Processing /tmp/tmpDGYffm/wheel/cryptography-2.8-cp34-abi3-manylinux2010_x86_64.whl
Step #1 - "builder": Installing collected packages: cryptography
Step #1 - "builder": Successfully installed cryptography-2.8
Step #1 - "builder":
Step #1 - "builder": INFO pip_install_from_wheels took 0 seconds
Step #1 - "builder": INFO starting: pip_install_from_wheels
Step #1 - "builder": INFO pip_install_from_wheels /env/bin/python3.7 -m pip install --no-deps --prefix /tmp/tmp85xugM/env /tmp/tmpDGYffm/wheel/gunicorn-20.0.4-py2.py3-none-any.whl --disable-pip-version-check
Step #1 - "builder": INFO `pip_install_from_wheels` stdout:
Step #1 - "builder": Processing /tmp/tmpDGYffm/wheel/gunicorn-20.0.4-py2.py3-none-any.whl
Step #1 - "builder": Installing collected packages: gunicorn
Step #1 - "builder": Successfully installed gunicorn-20.0.4
Step #1 - "builder":
Step #1 - "builder": INFO `pip_install_from_wheels` had stderr output:
Step #1 - "builder": WARNING: The script gunicorn is installed in '/tmp/tmp85xugM/env/bin' which is not on PATH.
Step #1 - "builder": Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Step #1 - "builder":
Step #1 - "builder": INFO pip_install_from_wheels took 0 seconds
Step #1 - "builder": INFO starting: pip_install_from_wheels
Step #1 - "builder": INFO pip_install_from_wheels /env/bin/python3.7 -m pip install --no-deps --prefix /tmp/tmpwrJu3c/env /tmp/tmpDGYffm/wheel/pycparser-2.19-py2.py3-none-any.whl --disable-pip-version-check
Step #1 - "builder": INFO `pip_install_from_wheels` stdout:
Step #1 - "builder": Processing /tmp/tmpDGYffm/wheel/pycparser-2.19-py2.py3-none-any.whl
Step #1 - "builder": Installing collected packages: pycparser
Step #1 - "builder": Successfully installed pycparser-2.19
Step #1 - "builder":
Step #1 - "builder": INFO pip_install_from_wheels took 0 seconds
Step #1 - "builder": INFO starting: pip_install_from_wheels
Step #1 - "builder": INFO pip_install_from_wheels /env/bin/python3.7 -m pip install --no-deps --prefix /tmp/tmpnObJ5s/env /tmp/tmpDGYffm/wheel/queuelib-1.5.0-py2.py3-none-any.whl --disable-pip-version-check
Step #1 - "builder": INFO `pip_install_from_wheels` stdout:
Step #1 - "builder": Processing /tmp/tmpDGYffm/wheel/queuelib-1.5.0-py2.py3-none-any.whl
Step #1 - "builder": Installing collected packages: queuelib
Step #1 - "builder": Successfully installed queuelib-1.5.0
Step #1 - "builder":
Step #1 - "builder": INFO pip_install_from_wheels took 0 seconds
Step #1 - "builder": INFO starting: pip_install_from_wheels
Step #1 - "builder": INFO pip_install_from_wheels /env/bin/python3.7 -m pip install --no-deps --prefix /tmp/tmpPvXJiN/env /tmp/tmpDGYffm/wheel/tzlocal-2.0.0-py2.py3-none-any.whl --disable-pip-version-check
Step #1 - "builder": INFO `pip_install_from_wheels` stdout:
Step #1 - "builder": Processing /tmp/tmpDGYffm/wheel/tzlocal-2.0.0-py2.py3-none-any.whl
Step #1 - "builder": Installing collected packages: tzlocal
Step #1 - "builder": Successfully installed tzlocal-2.0.0
Step #1 - "builder":
Step #1 - "builder": INFO pip_install_from_wheels took 0 seconds
Step #1 - "builder": INFO starting: pip_install_from_wheels
Step #1 - "builder": INFO pip_install_from_wheels /env/bin/python3.7 -m pip install --no-deps --prefix /tmp/tmpVNLN0Z/env /tmp/tmpDGYffm/wheel/pip-20.1-py2.py3-none-any.whl --disable-pip-version-check
Step #1 - "builder": INFO `pip_install_from_wheels` stdout:
Step #1 - "builder": Processing /tmp/tmpDGYffm/wheel/pip-20.1-py2.py3-none-any.whl
Step #1 - "builder": Installing collected packages: pip
Step #1 - "builder": Found existing installation: pip 19.2.3
Step #1 - "builder": Uninstalling pip-19.2.3:
Step #1 - "builder": Successfully uninstalled pip-19.2.3
Step #1 - "builder": Successfully installed pip-20.1
Step #1 - "builder":
Step #1 - "builder": INFO pip_install_from_wheels took 1 seconds
Step #1 - "builder": INFO starting: pip_install_from_wheels
Step #1 - "builder": INFO pip_install_from_wheels /env/bin/python3.7 -m pip install --no-deps --prefix /tmp/tmptNKyMq/env /tmp/tmpDGYffm/wheel/pyasn1-0.4.8-py2.py3-none-any.whl --disable-pip-version-check
Step #1 - "builder": INFO `pip_install_from_wheels` stdout:
Step #1 - "builder":
Step #1 - "builder": INFO `pip_install_from_wheels` had stderr output:
Step #1 - "builder": /env/bin/python3.7: No module named pip
Step #1 - "builder":
Step #1 - "builder": ERROR error: `pip_install_from_wheels` returned code: 1
Step #1 - "builder": INFO pip_install_from_wheels took 0 seconds
Step #1 - "builder": INFO build process for FTL image took 45 seconds
Step #1 - "builder": INFO full build took 45 seconds
Step #1 - "builder": ERROR `pip_install_from_wheels` had stderr output:
Step #1 - "builder": /env/bin/python3.7: No module named pip
Step #1 - "builder":
Step #1 - "builder": error: `pip_install_from_wheels` returned code: 1
Step #1 - "builder": Traceback (most recent call last):
Step #1 - "builder": File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
Step #1 - "builder": "__main__", fname, loader, pkg_name)
Step #1 - "builder": File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
Step #1 - "builder": exec code in run_globals
Step #1 - "builder": File "/usr/local/bin/ftl.par/__main__.py", line 65, in <module>
Step #1 - "builder": File "/usr/local/bin/ftl.par/__main__.py", line 60, in main
Step #1 - "builder": File "/usr/local/bin/ftl.par/__main__/ftl/common/ftl_error.py", line 77, in InternalErrorHandler
Step #1 - "builder": IOError: [Errno 2] No such file or directory: '""/output'
Finished Step #1 - "builder"
ERROR
ERROR: build step 1 "gcr.io/gae-runtimes/python37_app_builder:python37_20200405_3_7_7_RC00" failed: step exited with non-zero status: 1
As you can see, this is very perplexing. /env/bin/python3.7: No module named pip? seems like a problem in the app engine build process.
Here is the output of the command gcloud app deploy.
ERROR: (gcloud.app.deploy) Error Response: [9] Cloud build 168573b7-17ed-4bb8-a92d-8cdf7b9ca751 status: FAILURE. Build error details: {
{
"error": {
"errorType": "BuildError",
"canonicalCode": "INVALID_ARGUMENT",
"errorId": "D2E1945E",
"errorMessage": "14 May 2020 04:28:03 INFO Arguments: ['--parser_script=/usr/local/bin/ftl.par', '--src=', '--entrypoint=', '--name=us.gcr.io/gae-cms-277200/app-engine-tmp/app/ttl-2h:b073c253-b4db-4dbf-afef-0bd8a2ac8ccc', '--directory=/workspace', '--destination=/srv', '--cache-repository=us.gcr.io/gae-cms-277200/app-engine-tmp/build-cache/ttl-7d', '--cache', '--builder-output-path=\"\"', '--additional-directory=/.googleconfig', '--python-cmd=/opt/python3.7/bin/python3.7', '--pip-cmd=/env/bin/python3.7 -m pip', '--venv-cmd=/opt/python3.7/bin/python3.7 -m venv /env', '-v=DEBUG', '--base=us.gcr.io/gae-runtimes/python37:python37_20200405_3_7_7_RC00']\n14 May 2020 04:28:03 INFO Unparsed arguments: ['--name=us.gcr.io/gae-cms-277200/app-engine-tmp/app/ttl-2h:b073c253-b4db-4dbf-afef-0bd8a2ac8ccc', '--directory=/workspace', '--destination=/srv', '--cache-repository=us.gcr.io/gae-cms-277200/app-engine-tmp/build-cache/ttl-7d', '--cache', '--builder-output-path=\"\"', '--additional-directory=/.googleconfig', '--python-cmd=/opt/python3.7/bin/python3.7', '--pip-cmd=/env/bin/python3.7 -m pip', '--venv-cmd=/opt/python3.7/bin/python3.7 -m venv /env', '-v=DEBUG', '--base=us.gcr.io/gae-runtimes/python37:python37_20200405_3_7_7_RC00']\n14 May 2020 04:28:03 INFO Executing ['/usr/local/bin/ftl.par', '--name=us.gcr.io/gae-cms-277200/app-engine-tmp/app/ttl-2h:b073c253-b4db-4dbf-afef-0bd8a2ac8ccc', '--directory=/workspace', '--destination=/srv', '--cache-repository=us.gcr.io/gae-cms-277200/app-engine-tmp/build-cache/ttl-7d', '--cache', '--builder-output-path=\"\"', '--additional-directory=/.googleconfig', '--python-cmd=/opt/python3.7/bin/python3.7', '--pip-cmd=/env/bin/python3.7 -m pip', '--venv-cmd=/opt/python3.7/bin/python3.7 -m venv /env', '-v=DEBUG', '--base=us.gcr.io/gae-runtimes/python37:python37_20200405_3_7_7_RC00']\nINFO FTL version python-v0.17.0\nINFO Beginning FTL build for python\nINFO FTL arg passed: virtualenv_dir /env\nINFO FTL arg passed: ttl 168\nINFO FTL arg passed: python_cmd /opt/python3.7/bin/python3.7\nINFO FTL arg passed: cache True\nINFO FTL arg passed: virtualenv_cmd virtualenv\nINFO FTL arg passed: entrypoint None\nINFO FTL arg passed: exposed_ports None\nINFO FTL arg passed: pip_cmd /env/bin/python3.7 -m pip\nINFO FTL arg passed: tar_base_image_path None\nINFO FTL arg passed: export_cache_stats False\nINFO FTL arg passed: builder_output_path \"\"\nINFO FTL arg passed: destination_path /srv\nINFO FTL arg passed: sh_c_prefix False\nINFO FTL arg passed: base us.gcr.io/gae-runtimes/python37:python37_20200405_3_7_7_RC00\nINFO FTL arg passed: cache_key_version v0.17.0\nINFO FTL arg passed: cache_salt \nINFO FTL arg passed: cache_repository us.gcr.io/gae-cms-277200/app-engine-tmp/build-cache/ttl-7d\nINFO FTL arg passed: venv_cmd /opt/python3.7/bin/python3.7 -m venv /env\nINFO FTL arg passed: name us.gcr.io/gae-cms-277200/app-engine-tmp/app/ttl-2h:b073c253-b4db-4dbf-afef-0bd8a2ac8ccc\nINFO FTL arg passed: global_cache False\nINFO FTL arg passed: upload True\nINFO FTL arg passed: fail_on_error True\nINFO FTL arg passed: output_path None\nINFO FTL arg passed: directory /workspace\nINFO FTL arg passed: additional_directory /.googleconfig\nINFO FTL arg passed: verbosity DEBUG\nINFO starting: full build\nINFO starting: builder initialization\nINFO Loading Docker credentials for repository 'us.gcr.io/gae-runtimes/python37:python37_20200405_3_7_7_RC00'\nINFO Loading Docker credentials for repository 'us.gcr.io/gae-cms-277200/app-engine-tmp/app/ttl-2h:b073c253-b4db-4dbf-afef-0bd8a2ac8ccc'\nINFO builder initialization took 0 seconds\nINFO starting: build process for FTL image\nINFO starting: checking_cached_interpreter_layer\nINFO starting: check python version\nINFO `python version` full cmd:\n/opt/python3.7/bin/python3.7 --version\nINFO `python version` stderr:\n\nINFO check pyt."
}
}
Edit. Sorry about the formatting on that error message!
Any suggestions as to how to debug this problem would be very much appreciated.
Edit. I believe the solution is to upgrade from python 36 to 37, as described in app.yaml. I will keep working and post an update.
We do not see your requirements.txt file, but this problem has already appeared.
If you take a look here and here, you will find resolutions. I know they are outdated however if you take similar approach you should easily deal with it.
I hope it will help!
Related
I am trying to integrate protractor e2e tests on my circleCi with the following setup:
config.yml
- run:
name: NPM test
command: |
cd frontend
npm install
apk update
apk add chromium
export CHROME_BIN=$(which chromium-browser)
npm run test -- --no-watch --no-progress --browsers=ChromeHeadlessCI --code-coverage || exit 0
- run:
name: Protractor e2e tests
command: |
cd frontend
npm run e2e -- --protractor-config=./e2e/protractor-ci.conf.js
protractor config:
const config = require('./protractor.conf').config;
config.capabilities = {
browserName: 'chrome',
chromeOptions: {
args: ['--headless', '--no-sandbox']
}
};
exports.config = config;
Unit test run with success, although e2e tests are not running:
[10:12:58] I/file_manager - creating folder /root/project/frontend/node_modules/protractor/node_modules/webdriver-manager/selenium
[10:12:58] I/config_source - curl -o/root/project/frontend/node_modules/protractor/node_modules/webdriver-manager/selenium/chrome-response.xml https://chromedriver.storage.googleapis.com/
ℹ 「wdm」: Compiled successfully.
[10:12:58] I/downloader - curl -o/root/project/frontend/node_modules/protractor/node_modules/webdriver-manager/selenium/chromedriver_81.0.4044.69.zip https://chromedriver.storage.googleapis.com/81.0.4044.69/chromedriver_linux64.zip
[10:12:59] I/update - chromedriver: unzipping chromedriver_81.0.4044.69.zip
[10:12:59] I/update - chromedriver: setting permissions to 0755 for /root/project/frontend/node_modules/protractor/node_modules/webdriver-manager/selenium/chromedriver_81.0.4044.69
[10:12:59] I/launcher - Running 1 instances of WebDriver
[10:12:59] I/direct - Using ChromeDriver directly...
[10:12:59] E/launcher - spawn /root/project/frontend/node_modules/protractor/node_modules/webdriver-manager/selenium/chromedriver_81.0.4044.69 ENOENT
[10:12:59] E/launcher - Error: spawn /root/project/frontend/node_modules/protractor/node_modules/webdriver-manager/selenium/chromedriver_81.0.4044.69 ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:246:19)
at onErrorNT (internal/child_process.js:421:16)
at process.internalTickCallback (internal/process/next_tick.js:72:19)
[10:12:59] E/launcher - Process exited with error code 199
An unexpected error occurred: undefined
Setup:
Angular CLI: 7.3.9
Node: 10.19.0
Protractor: 5.4.3
Already tried:
- Update webdriver before the tests started.
- Already check thatc hromedriver_81.0.4044.69 file is on the folder of the error
I am trying to publish an IPA to App Center, the YAML for my build definition is the following :
# Xcode
# Build, test, and archive an Xcode workspace on macOS.
# Add steps that install certificates, test, sign, and distribute an app, save build artifacts, and more:
# https://learn.microsoft.com/azure/devops/pipelines/languages/xcode
pool:
vmImage: 'macOS-10.13'
trigger: none
variables:
- name: SDK
value: iphoneos
- name: Configuration
value: ReleasePPD
steps:
- task: DeleteFiles#1
inputs:
SourceFolder: '$(system.defaultWorkingDirectory)'
Contents: 'AuraApp.xcworkspace'
- task: CocoaPods#0
inputs:
forceRepoUpdate: false
displayName: 'pod install using the CocoaPods task'
- task: InstallAppleCertificate#2
inputs:
certSecureFile: 'ios_distribution.p12'
- task: InstallAppleProvisioningProfile#1
inputs:
provisioningProfileLocation: 'secureFiles' # Options: secureFiles, sourceRepository
provProfileSecureFile: 'Aura_PPD_Distribution_Profile.mobileprovision'
removeProfile: true
- task: Xcode#5
inputs:
xcWorkspacePath: '$(system.defaultWorkingDirectory)/AuraApp.xcworkspace'
actions: 'build'
sdk: $(SDK)
configuration: $(Configuration)
xcodeVersion: '10' # Options: 8, 9, 10, default, specifyPath
exportPath: '$(Build.ArtifactStagingDirectory)/PPD'
packageApp: true
#exportMethod: 'package'
exportOptions: 'auto'
#exportOptionsPlist: ''
scheme: 'Aura PPD'
signingOption: manual
signingIdentity: $(APPLE_CERTIFICATE_SIGNING_IDENTITY)
provisioningProfileUuid: $(APPLE_PROV_PROFILE_UUID)
- task: AppCenterDistribute#1
inputs:
serverEndpoint: 'Azure App Center'
appSlug: aurafoundation/Aura
appFile: $(Build.ArtifactStagingDirectory)/**/*.ipa
releaseNotesOption: 'input'
releaseNotesInput: 'Test'
The Xcode build task seems to be working well :
##[debug]exec tool: /usr/bin/xcodebuild
##[debug]arguments:
##[debug] -exportArchive
##[debug] -archivePath
##[debug] /Users/vsts/agent/2.146.0/work/1/s/Aura PPD.xcarchive
##[debug] -exportPath
##[debug] /Users/vsts/agent/2.146.0/work/1/a/PPD
##[debug] -exportOptionsPlist
##[debug] _XcodeTaskExportOptions.plist
[command]/usr/bin/xcodebuild -exportArchive -archivePath /Users/vsts/agent/2.146.0/work/1/s/Aura PPD.xcarchive -exportPath /Users/vsts/agent/2.146.0/work/1/a/PPD -exportOptionsPlist _XcodeTaskExportOptions.plist | /usr/local/lib/ruby/gems/2.6.0/bin/xcpretty --no-color
2019-02-12 11:03:58.404 xcodebuild[1595:20747] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/Aura PPD_2019-02-12_11-03-58.402.xcdistributionlogs'.
▸ Export Succeeded
##[debug]success of first tool:true
##[debug]rc:0
##[debug]success:true
##[debug]task result: Succeeded
##[debug]Processed: ##vso[task.complete result=Succeeded;]Xcode task execution completed with no errors.
##[debug]Agent.Version=2.146.0
##[debug]Processed: ##vso[telemetry.publish area=TaskHub;feature=Xcode]{"xcodeVersionSelection":"10","actions":["build"],"packageApp":true,"xcodeVersion":"10.1","signingOption":"manual","exportOptions":"auto"}
##[section]Finishing: Xcode
The resulting IPA file shoud be located in /Users/vsts/agent/2.146.0/work/1/a/PPD according to the -exportPath parameter.
BUT ! The AppCenterDistribute step fails :
##[section]Starting: AppCenterDistribute
==============================================================================
Task : App Center Distribute
Description : Distribute app builds to testers and users via App Center
Version : 1.147.0
Author : Microsoft Corporation
Help : For help with this task, visit the Visual Studio App Center [support site](https://aka.ms/appcentersupport/).
==============================================================================
##[error]Error: Cannot find any file based on /Users/vsts/agent/2.146.0/work/1/a/**/*.ipa.
##[section]Finishing: AppCenterDistribute
So the question is : where is my .ipa located ? Why can't I find my .ipa in the exportPath ?
EDIT :
I changed the exportPath parameter to specify a full path : Users/vsts/agent/2.146.0/work/1/a/PPD/Aura.ipa
Now i get another error on the AppCenter Distribute task :
##[debug]found 1 paths
##[debug]applying include pattern
##[debug]1 matches
##[debug]1 final results
##[debug]....... selectedPaths: /Users/vsts/agent/2.146.0/work/1/s
##[debug]....... uniquePaths: /Users/vsts/agent/2.146.0/work/1/s
##[debug]-- Prepare symbols
##[debug]-- Prepare for uploading release.
##[debug]---- url: https://api.appcenter.ms/v0.1/apps/aurafoundation/Aura/release_uploads
##[debug]---- "{\"upload_id\":\"a349d7a0-10f2-0137-9dfa-12f79a9ee306\",\"upload_url\":\"https://rink.hockeyapp.net/api/sonoma/apps/a761af0d-7844-46a9-bf7b-701fa1db6b9c/app_versions/upload?upload_id=a349d7a0-10f2-0137-9dfa-12f79a9ee306\"}"
##[debug]---- http call status code: 201
##[debug]-- Uploading release...
##[debug]---- url: https://rink.hockeyapp.net/api/sonoma/apps/a761af0d-7844-46a9-bf7b-701fa1db6b9c/app_versions/upload?upload_id=a349d7a0-10f2-0137-9dfa-12f79a9ee306
##[debug]---- Failed with error: Error: form-data: EISDIR: illegal operation on a directory, read
##[debug]task result: Failed
##[error]Error: form-data: EISDIR: illegal operation on a directory, read
##[debug]Processed: ##vso[task.issue type=error;]Error: form-data: EISDIR: illegal operation on a directory, read
##[debug]Processed: ##vso[task.complete result=Failed;]Error: form-data: EISDIR: illegal operation on a directory, read
##[section]Finishing: AppCenterDistribute
I've an error on circleci that i'm not able to understand. It says that Chrome version must be between 70 and 73 when using selenium chrome webdriver.
[21:58:05] I/downloader - curl -o/home/circleci/project/node_modules/protractor/node_modules/webdriver-manager/selenium/chromedriver_2.45.zip https://chromedriver.storage.googleapis.com/2.45/chromedriver_linux64.zip
[21:58:05] I/update - chromedriver: unzipping chromedriver_2.45.zip
[21:58:05] I/update - chromedriver: setting permissions to 0755 for /home/circleci/project/node_modules/protractor/node_modules/webdriver-manager/selenium/chromedriver_2.45
[21:58:05] I/launcher - Running 1 instances of WebDriver
[21:58:05] I/direct - Using ChromeDriver directly...
[21:58:06] E/launcher - session not created: Chrome version must be between 70 and 73
(Driver info: chromedriver=2.45.615279 (12b89733300bd268cff3b78fc76cb8f3a7cc44e5),platform=Linux 4.4.0-141-generic x86_64)
[21:58:06] E/launcher - SessionNotCreatedError: session not created: Chrome version must be between 70 and 73
(Driver info: chromedriver=2.45.615279 (12b89733300bd268cff3b78fc76cb8f3a7cc44e5),platform=Linux 4.4.0-141-generic x86_64)
at Object.checkLegacyResponse (/home/circleci/project/node_modules/selenium-webdriver/lib/error.js:546:15)
at parseHttpResponse (/home/circleci/project/node_modules/selenium-webdriver/lib/http.js:509:13)
at doSend.then.response (/home/circleci/project/node_modules/selenium-webdriver/lib/http.js:441:30)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
From: Task: WebDriver.createSession()
at Function.createSession (/home/circleci/project/node_modules/selenium-webdriver/lib/webdriver.js:769:24)
at Function.createSession (/home/circleci/project/node_modules/selenium-webdriver/chrome.js:761:15)
at Direct.getNewDriver (/home/circleci/project/node_modules/protractor/built/driverProviders/direct.js:77:33)
at Runner.createBrowser (/home/circleci/project/node_modules/protractor/built/runner.js:195:43)
at q.then.then (/home/circleci/project/node_modules/protractor/built/runner.js:339:29)
at _fulfilled (/home/circleci/project/node_modules/q/q.js:834:54)
at self.promiseDispatch.done (/home/circleci/project/node_modules/q/q.js:863:30)
at Promise.promise.promiseDispatch (/home/circleci/project/node_modules/q/q.js:796:13)
at /home/circleci/project/node_modules/q/q.js:556:49
at runSingle (/home/circleci/project/node_modules/q/q.js:137:13)
[21:58:06] E/launcher - Process exited with error code 199
An unexpected error occurred: undefined
my circleci config file
version: 2
jobs:
build:
docker:
- image: circleci/node:8.11-browsers
working_directory: ~/project
steps:
- checkout
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
- v1-dependencies-
- run: npm install
- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}
- run: npm run lint
- run: npm run e2e
Any idea of what is happening ?
This isn't a problem specific to Circle CI. I was receiving it on my regular IDE setup. The issue is that your chromedriver no longer matches the browser version.
Steps to fix (I'm using Mac OSX):
- Upgrade your chrome browser to latest: currently 74
- Upgrade your chromedriver to latest: you can manually download it from their site, or if installed via brew cask just run brew cask upgrade
This worked for me. In circle.yml
- run:
name: Install Chrome
command: |
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
sudo apt-get update
sudo apt-get install google-chrome-stable
Other solutions like using -browsers docker images does not work now
One idea would be to download and install the latest Chrome in the .circleci/config.yml file (similar to #andriy-baran's comment). However, that might use up your build time unless there's a way to cache the Chrome engine directory together with its dependencies.
Check your Chrome version Help -> About Google Chrome.
Download the matching Chromedriver from http://chromedriver.chromium.org/downloads
Should solve the issue.
I have a deployment project setup via Atlassian bamboo.
The steps are being executed successfully until the Apache Ant task.
I don't know what is going wrong; if I execute the command on the server it works without any errors.
-bash-4.1$ ant -q -f httpdocs/build.xml cpparam
BUILD SUCCESSFUL
Total time: 0 seconds
In the bamboo logfile I see the following output:
24-Jul-2014 15:45:26 Starting task 'Copy the parameters dist' of type 'com.atlassian.bamboo.plugins.ant:task.builder.ant'
24-Jul-2014 15:45:26
Beginning to execute external process for build 'Deployment of 'release-7' on '*********** CI01''
... running command line:
/opt/ant-1.8/bin/ant -f /var/www/vhosts/***********/httpdocs/build.xml -q cpparam
... in: /home/bamboo/bamboo-agent-home/xml-data/build-dir/26050561-26148865
... using extra environment variables:
JAVA_HOME=/opt/jdk-7
bamboo_planRepository_type=bb
bamboo_shortPlanName=CI Build
bamboo_planName=*********** - CI Build
bamboo_planKey=***********
bamboo_planRepository_revision=***********
bamboo_buildResultKey=***********-CB-18
bamboo_planRepository_1_revision=***********
ANT_HOME=/opt/ant-1.8
bamboo_planRepository_1_type=bb
bamboo_planRepository_1_branchName=development
bamboo_planRepository_1_name=Bitbucket
bamboo_test=test
bamboo_buildNumber=18
bamboo_planRepository_name=Bitbucket
bamboo_shortPlanKey=CB
bamboo_planRepository_branchName=development
PATH=/opt/jdk-7/bin:/opt/bamboo-elastic-agent/bin:/opt/jdk-6/bin:/opt/maven-2.1/bin:/opt/maven-1.0.2/bin:/opt/ant-1.8/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/bin:/bin
24-Jul-2014 15:45:26 Failing task since return code of [/opt/ant-1.8/bin/ant -f httpdocs/build.xml cpparam] was -1 while expected 0
24-Jul-2014 15:45:26 Finished task 'Copy the parameters dist'
24-Jul-2014 15:45:26 Finalising the build...
24-Jul-2014 15:45:26 Stopping timer.
Does anyone have an idea how I can fix this?
In the build plan everything works like a charm.
Thanks in advance!
EDIT:
If I run the ant command directly on the server with -verbose
-bash-4.1$ ant -f httpdocs/build.xml -verbose cpparam
Apache Ant version 1.7.1 compiled on August 24 2010
Buildfile: httpdocs/build.xml
Detected Java version: 1.6 in: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.65.x86_64/jre
Detected OS: Linux
parsing buildfile /var/www/vhosts/test/httpdocs/build.xml with URI = file:/var/www/vhosts/test/httpdocs/build.xml
Project base dir set to: /var/www/vhosts/test/httpdocs
Build sequence for target(s) `cpparam' is [cpparam]
Complete build sequence is [cpparam, cache, logs, lint, assets, clean, fixtures, dbupdate, prepare, phpunit, dlcomposer, behat, build, assetic, behat:chrome, ]
cpparam:
[antlib:org.apache.tools.ant] Could not load definitions from resource org/apache/tools/ant/antlib.xml. It could not be found.
[copy] Copying 1 file to /var/www/vhosts/test/httpdocs/app/config
[copy] Copying /var/www/vhosts/test/httpdocs/app/config/parameters.yml.dist to /var/www/vhosts/test/httpdocs/app/config/parameters.yml
BUILD SUCCESSFUL
Total time: 0 seconds
The complete bamboo deployment log file with the -verbose
simple 31-Jul-2014 09:17:20 Build Deployment of 'release-7' on '**** CI01' started building on agent Elastic Agent on i-9beb61db
simple 31-Jul-2014 09:17:20 Build working directory is /home/bamboo/bamboo-agent-home/xml-data/build-dir/26050561-26148865
simple 31-Jul-2014 09:17:20 Executing build Deployment of 'release-7' on '**** CI01'
simple 31-Jul-2014 09:17:20 Starting task 'Clean working directory task' of type 'com.atlassian.bamboo.plugins.bamboo-artifact-downloader-plugin:cleanWorkingDirectoryTask'
simple 31-Jul-2014 09:17:20 Cleaning working directory '/home/bamboo/bamboo-agent-home/xml-data/build-dir/26050561-26148865'
simple 31-Jul-2014 09:17:20 Finished task 'Clean working directory task' with result: Success
simple 31-Jul-2014 09:17:20 Starting task 'Download release contents' of type 'com.atlassian.bamboo.plugins.bamboo-artifact-downloader-plugin:artifactdownloadertask'
simple 31-Jul-2014 09:17:20 Preparing to download plan result ****-CB-18 artifact: Shared artifact: [Symfony2 tarball], pattern: [sf2.tar.gz]
simple 31-Jul-2014 09:18:21 Artifact [Symfony2 tarball] downloaded successfully in 61s to working directory
simple 31-Jul-2014 09:18:21 Finished task 'Download release contents' with result: Success
simple 31-Jul-2014 09:18:21 Starting task 'SCP the tarball to his location' of type 'com.atlassian.bamboo.plugins.bamboo-scp-plugin:scptask'
simple 31-Jul-2014 09:18:25 Connecting to ci01.****-ops.net on port: 22
simple 31-Jul-2014 09:18:26 Uploading '/home/bamboo/bamboo-agent-home/xml-data/build-dir/26050561-26148865/sf2.tar.gz' to '/var/www/vhosts/niko-oqt.ci01.****ci.be/releases'...
simple 31-Jul-2014 09:18:55 '/home/bamboo/bamboo-agent-home/xml-data/build-dir/26050561-26148865/sf2.tar.gz' was uploaded successfully.
simple 31-Jul-2014 09:18:55 Finished task 'SCP the tarball to his location' with result: Success
command 31-Jul-2014 09:18:56 Substituting variable: ${bamboo.deploy.release} with release-7
simple 31-Jul-2014 09:18:56 Starting task 'Extract tarball' of type 'com.atlassian.bamboo.plugins.bamboo-scp-plugin:sshtask'
simple 31-Jul-2014 09:18:56 Connecting to ci01.****-ops.net on port: 22
simple 31-Jul-2014 09:18:56 Executing [
simple 31-Jul-2014 09:18:56 # variables
simple 31-Jul-2014 09:18:56 DIRNAME=release-7
simple 31-Jul-2014 09:18:56
simple 31-Jul-2014 09:18:56 # Create release directory
simple 31-Jul-2014 09:18:56 mkdir -p releases/$DIRNAME
simple 31-Jul-2014 09:18:56
simple 31-Jul-2014 09:18:56 # Extract that Drupal tarball.
simple 31-Jul-2014 09:18:56 tar xzf releases/sf2.tar.gz -C releases/$DIRNAME
simple 31-Jul-2014 09:18:56
simple 31-Jul-2014 09:18:56 # Remove the tarball
simple 31-Jul-2014 09:18:56 rm -f releases/sf2.tar.gz
simple 31-Jul-2014 09:18:56 ]
simple 31-Jul-2014 09:19:03 [
simple 31-Jul-2014 09:19:03 # variables
simple 31-Jul-2014 09:19:03 DIRNAME=release-7
simple 31-Jul-2014 09:19:03
simple 31-Jul-2014 09:19:03 # Create release directory
simple 31-Jul-2014 09:19:03 mkdir -p releases/$DIRNAME
simple 31-Jul-2014 09:19:03
simple 31-Jul-2014 09:19:03 # Extract that sf tarball.
simple 31-Jul-2014 09:19:03 tar xzf releases/sf2.tar.gz -C releases/$DIRNAME
simple 31-Jul-2014 09:19:03
simple 31-Jul-2014 09:19:03 # Remove the tarball
simple 31-Jul-2014 09:19:03 rm -f releases/sf2.tar.gz
simple 31-Jul-2014 09:19:03 ] has finished.
simple 31-Jul-2014 09:19:03 Result: exit code = 0
simple 31-Jul-2014 09:19:03 Finished task 'Extract tarball' with result: Success
command 31-Jul-2014 09:19:03 Substituting variable: ${bamboo.deploy.release} with release-7
simple 31-Jul-2014 09:19:03 Starting task 'Add links' of type 'com.atlassian.bamboo.plugins.bamboo-scp-plugin:sshtask'
simple 31-Jul-2014 09:19:03 Connecting to ci01.****-ops.net on port: 22
simple 31-Jul-2014 09:19:04 Executing [
simple 31-Jul-2014 09:19:04 # variables
simple 31-Jul-2014 09:19:04 DIRNAME=release-7
simple 31-Jul-2014 09:19:04
simple 31-Jul-2014 09:19:04 # remove the current http root link
simple 31-Jul-2014 09:19:04 rm -f httpdocs
simple 31-Jul-2014 09:19:04
simple 31-Jul-2014 09:19:04 # Link the release to the http root.
simple 31-Jul-2014 09:19:04 ln -s releases/$DIRNAME/www httpdocs
simple 31-Jul-2014 09:19:04 ]
simple 31-Jul-2014 09:19:04 [
simple 31-Jul-2014 09:19:04 # variables
simple 31-Jul-2014 09:19:04 DIRNAME=release-7
simple 31-Jul-2014 09:19:04
simple 31-Jul-2014 09:19:04 # remove the current http root link
simple 31-Jul-2014 09:19:04 rm -f httpdocs
simple 31-Jul-2014 09:19:04
simple 31-Jul-2014 09:19:04 # Link the release to the http root.
simple 31-Jul-2014 09:19:04 ln -s releases/$DIRNAME/www httpdocs
simple 31-Jul-2014 09:19:04
simple 31-Jul-2014 09:19:04 ] has finished.
simple 31-Jul-2014 09:19:04 Result: exit code = 0
simple 31-Jul-2014 09:19:04 Finished task 'Add links' with result: Success
simple 31-Jul-2014 09:19:04 Starting task 'Copy the parameters dist' of type 'com.atlassian.bamboo.plugins.ant:task.builder.ant'
command 31-Jul-2014 09:19:05 Beginning to execute external process for build 'Deployment of 'release-7' on '**** CI01''\n ... running command line: \n/opt/ant-1.8/bin/ant -f httpdocs/build.xml -verbose cpparam\n ... in: /home/bamboo/bamboo-agent-home/xml-data/build-dir/26050561-26148865/var/www/vhosts/niko-oqt.ci01.****ci.be\n ... using extra environment variables: \nbamboo_deploy_environment=**** CI01\nbamboo_capability_system_builder_grailsBuilder_Grails_1_3=/opt/grails-1.3\nbamboo_capability_system_jdk_JDK_1_6=/opt/jdk-6\nbamboo_capability_system_builder_grailsBuilder_Grails_1_2=/opt/grails-1.2\nbamboo_capability_system_jdk_JDK_1_7=/opt/jdk-7\nJAVA_HOME=/opt/jdk-7\nbamboo_capability_system_builder_command_Drupal_remove_development_files=/opt/****-scripts/drupal/remove_development_files.sh\nbamboo_planRepository_type=bb\nbamboo_shortPlanName=CI Build\nbamboo_planKey=****-CB\nbamboo_capability_system_builder_command_****_Bitbucket_checkout=/opt/****-scripts/bitbucket_checkout.sh\nbamboo_capability_system_jdk_JDK_1_5=/opt/jdk-5\nbamboo_capability_system_builder_command_Compass=/usr/bin/compass\nbamboo_capability_system_builder_node_Node_js_0_10=/opt/node-0.10/bin/node\nbamboo_planRepository_1_branchName=development\nbamboo_deploy_release=release-7\nbamboo_shortPlanKey=CB\nbamboo_build_working_directory=/home/bamboo/bamboo-agent-home/xml-data/build-dir/26050561-26148865\nbamboo_capability_system_builder_mvn3_Maven_3_0=/opt/maven-3.0\nbamboo_capability_system_builder_command_Symfony2_remove_development_files=/opt/****-scripts/symfony/remove_development_files.sh\nbamboo_capability_system_builder_command_Drupal_coder_sniffer=/opt/****-scripts/drupal/php_codesniffer_drupal.sh\nbamboo_planName=Niko - OQT - CI Build\nbamboo_capability_system_builder_phpunit_PHPUnit_3_4=/usr/bin/phpunit-3.4\nbamboo_planRepository_revision=42de29f040d3066afbc1596fc4caefd69aaa5540\nbamboo_capability_system_builder_phpunit_PHPUnit_3_7=/usr/bin/phpunit-3.7\nbamboo_buildResultKey=****-CB-18\nbamboo_capability_system_git_executable=/usr/bin/git\nbamboo_capability_system_builder_mvn2_Maven_2_1=/opt/maven-2.1\nbamboo_capability_system_builder_mvn2_Maven_2_2=/opt/maven-2.2\nbamboo_test=test\nbamboo_working_directory=/home/bamboo/bamboo-agent-home/xml-data/build-dir/26050561-26148865\nbamboo_deploy_release_previous=release-7\nbamboo_capability_system_builder_mvn2_Maven_2_0=/opt/maven-2.0\nbamboo_agentWorkingDirectory=/home/bamboo/bamboo-agent-home/xml-data/build-dir\nbamboo_capability_system_builder_ant_Ant_1_8=/opt/ant-1.8\nbamboo_capability_system_builder_command_Drush=/usr/bin/drush\nbamboo_resultsUrl=https://****.atlassian.net/builds/deploy/viewDeploymentResult.action?deploymentResultId=26935324\nbamboo_deploy_rollback=false\nbamboo_planRepository_1_revision=42de29f040d3066afbc1596fc4caefd69aaa5540\nbamboo_ManualBuildTriggerReason_userName=evert.vancauwenberg\nbamboo_planRepository_1_type=bb\nbamboo_planRepository_1_name=Bitbucket\nbamboo_capability_system_hg_executable=/usr/bin/hg\nbamboo_planRepository_branchName=development\nbamboo_capability_system_builder_command_Check_for_dpm=/opt/****-scripts/drupal/check_for_dpm.sh\nbamboo_capability_system_builder_mvn2_Maven_2=/opt/maven-2.2\nbamboo_deploy_version_previous=release-7\nbamboo_agentId=26574851\nANT_HOME=/opt/ant-1.8\nbamboo_deploy_version=release-7\nbamboo_planRepository_name=Bitbucket\nbamboo_buildNumber=18\nbamboo_capability_system_builder_grailsBuilder_Grails_2_0=/opt/grails-2.0\nbamboo_capability_system_builder_grailsBuilder_Grails_2_1=/opt/grails-2.1\nbamboo_capability_system_builder_grailsBuilder_Grails_2_2=/opt/grails-2.2\nbamboo_deploy_project=Deployment for *** - OQT\nPATH=/opt/jdk-7/bin:/opt/bamboo-elastic-agent/bin:/opt/jdk-6/bin:/opt/maven-2.1/bin:/opt/maven-1.0.2/bin:/opt/ant-1.8/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/bin:/bin\n
simple 31-Jul-2014 09:19:05 Failing task since return code of [/opt/ant-1.8/bin/ant -f httpdocs/build.xml -verbose cpparam] was -1 while expected 0
simple 31-Jul-2014 09:19:05 Finished task 'Copy the parameters dist' with result: Failed
simple 31-Jul-2014 09:19:05 Finalising the build...
simple 31-Jul-2014 09:19:05 Stopping timer.
simple 31-Jul-2014 09:19:05 Build 26050561-26148865-26935324 completed.
simple 31-Jul-2014 09:19:05 Finished processing deployment result Deployment of 'release-7' on '**** CI01'
I'm having trouble importing settings from a .reg file using TeamCity. The app in question has a lot of registry settings which change fairly regulary so it is vital to have it as a build step.
I'm using the following command:
regedit /s "C:\app\params\epm\epm_tlp\trunk\csr_vsm_tlp_exl.reg"
The path is fine (I checked several times). When I run this command manually, it works. However, when run from TeamCity, it doesn't seem to do anything. Here's the log:
[16:01:13]: Checking for changes
[16:01:16]: Clearing temporary directory: C:\TeamCity\buildAgent\temp\buildTmp
[16:01:16]: Checkout directory: C:\app
[16:01:16]: Updating sources: server side checkout... (1s)
[16:01:16]: [Updating sources: server side checkout...] Building incremental patch for VCS root: NEP-content
[16:01:18]: [Updating sources: server side checkout...] Repository sources transferred
[16:01:18]: Step 1/2
[16:01:18]: [Step 1/2] Using runner: simpleRunner
[16:01:18]: [Step 1/2] Starting: C:\TeamCity\buildAgent\temp\agentTmp\custom_script1107617910631593889.cmd
[16:01:18]: [Step 1/2] in directory: C:\app\params\epm\epm_tlp\trunk
[16:01:18]: [Step 1/2] C:\app\params\epm\epm_tlp\trunk>regedit /s "C:\app\params\epm\epm_tlp\trunk\csr_vsm_tlp_exl.reg"
[16:01:18]: [Step 1/2] Process exited with code 0
[16:01:18]: Step 2/2
[16:01:18]: [Step 2/2] Using runner: simpleRunner
[16:01:18]: [Step 2/2] Starting: c:\app\exe\startup.exe
[16:01:18]: [Step 2/2] in directory: C:\app\exe
[16:01:18]: [Step 2/2] Process exited with code -1073741515
[16:01:18]: [Step 2/2] Step failed
[16:01:18]: Publishing artifacts
[16:01:18]: [Publishing artifacts] Paths to publish: [teamcity-info.xml]
[16:01:18]: [Publishing artifacts] Sending files
[16:01:18]: Build finished
This is the first time I'm trying out TeamCity, so I have no idea where to start looking for trouble, why would this command fail? Could there be any security causes? Are TeamCity runners running as another user?
Most likely, you have TeamCity build agent running as a Windows service. Please make sure this windows service is run under windows account, which has sufficient privileges.