ayakashi icon indicating copy to clipboard operation
ayakashi copied to clipboard

Chrome does not open page

Open ManAnRuck opened this issue 5 years ago • 4 comments

i have an issue to run the example.

Versions: node: v12.18.0 npm: v6.14.4 Ayakashi: 1.0.0-beta7.1 OS: Mac 10.15.5

I changed in the config headless to false

I did run

ayakashi new test-project
cd test-project
ayakashi get-chrome
DEBUG=* npm run start

Output:

[16:45:03] Ayakashi version: 1.0.0-beta7.1
[16:45:04] running project: …/test-project
[16:45:04] configFile: …/test-project/ayakashi.config.js
  ayakashi:bridge starting bridge on port: 9731 +0ms
  express:application set "x-powered-by" to true +0ms
  express:application set "etag" to 'weak' +1ms
  express:application set "etag fn" to [Function: generateETag] +0ms
  express:application set "env" to 'development' +1ms
  express:application set "query parser" to 'extended' +0ms
  express:application set "query parser fn" to [Function: parseExtendedQueryString] +0ms
  express:application set "subdomain offset" to 2 +0ms
  express:application set "trust proxy" to false +0ms
  express:application set "trust proxy fn" to [Function: trustNone] +0ms
  express:application booting in development mode +1ms
  express:application set "view" to [Function: View] +0ms
  express:application set "views" to '…/test-project/views' +6ms
  express:application set "jsonp callback name" to 'callback' +0ms
  ayakashi:bridge bridge is listening on port 9731 +12ms
  ayakashi:runner using normal scraper(s), chrome will be spawned +0ms
  ayakashi:engine:browser Launching Chrome instance. Headless: false +0ms
  ayakashi:engine:browser Launching Chrome. Attempt 1/3... +0ms
  ayakashi:engine:launcher using tmp session directory +0ms
  ayakashi:engine:launcher Launching: 
  ayakashi:engine:launcher /Users/manuelruck/.ayakashi/chromium/chrome-mac/Chromium.app/Contents/MacOS/Chromium --disable-translate --disable-extensions --disable-background-networking --safebrowsing-disable-auto-update --disable-sync --metrics-recording-only --disable-default-apps --mute-audio --no-first-run --no-default-browser-check --no-service-autorun --disable-smooth-scrolling --disable-suggestions-ui --disable-signin-promo --disable-password-generation --disable-cloud-import --disable-default-apps --disable-prompt-on-repost --disable-gpu --remote-debugging-port=9730 --user-data-dir=/var/folders/nw/6g20q6vn3_n68j976m0c4dhm0000gn/T/ayakashi.BdfeJB --auto-open-devtools-for-tabs --window-size=1920,1080 --allow-insecure-localhost +1ms
  ayakashi:engine:launcher spawning... +33ms
  ayakashi:engine:launcher Waiting for Chrome instance, retries: 1/10 +13ms
  ayakashi:chrome stderr: 
  ayakashi:chrome DevTools listening on ws://127.0.0.1:9730/devtools/browser/ba317d08-4b1e-487d-8373-15d68254b967
  ayakashi:chrome  +0ms
  ayakashi:engine:launcher Waiting for Chrome instance, retries: 2/10 +509ms
  ayakashi:engine:launcher Chrome instance is ready +1ms
  ayakashi:engine:launcher Chrome running with pid 12877 on port 9730. +0ms
  express:router use '/' jsonParser +2s
  express:router:layer new '/' +0ms
  express:router:route new '/create_target' +9ms
  express:router:layer new '/create_target' +2ms
  express:router:route post '/create_target' +0ms
  express:router:layer new '/' +0ms
  express:router:route new '/released' +0ms
  express:router:layer new '/released' +0ms
  express:router:route post '/released' +0ms
  express:router:layer new '/' +0ms
  express:router use '/' query +1ms
  express:router:layer new '/' +1ms
  express:router use '/' expressInit +0ms
  express:router:layer new '/' +0ms
  express:router use '/connection' router +0ms
  express:router:layer new '/connection' +0ms
  sequelize:pool pool created with max/min: 5/0, no replication +0ms
  sequelize:connection:sqlite connection acquired default +0ms
  sequelize:sql:sqlite Executing (default): CREATE TABLE IF NOT EXISTS `UserAgentData` (`id` INTEGER PRIMARY KEY AUTOINCREMENT, `userAgentData` JSON); +0ms
  sequelize:sql:sqlite Executed (default): CREATE TABLE IF NOT EXISTS `UserAgentData` (`id` INTEGER PRIMARY KEY AUTOINCREMENT, `userAgentData` JSON); +2ms
  sequelize:sql:sqlite Executing (default): PRAGMA INDEX_LIST(`UserAgentData`) +1ms
  sequelize:sql:sqlite Executed (default): PRAGMA INDEX_LIST(`UserAgentData`) +1ms
  sequelize:sql:sqlite Executing (default): CREATE TABLE IF NOT EXISTS `Cookie` (`id` INTEGER PRIMARY KEY AUTOINCREMENT, `key` TEXT NOT NULL, `value` TEXT NOT NULL, `expires` DATETIME, `maxAge` INTEGER, `domain` TEXT NOT NULL, `path` TEXT NOT NULL, `secure` TINYINT(1) NOT NULL DEFAULT 1, `httpOnly` TINYINT(1) NOT NULL DEFAULT 1, `hostOnly` TINYINT(1), `creation` DATETIME, `lastAccessed` DATETIME, `createdAt` DATETIME NOT NULL, `updatedAt` DATETIME NOT NULL); +2ms
  sequelize:sql:sqlite Executed (default): CREATE TABLE IF NOT EXISTS `Cookie` (`id` INTEGER PRIMARY KEY AUTOINCREMENT, `key` TEXT NOT NULL, `value` TEXT NOT NULL, `expires` DATETIME, `maxAge` INTEGER, `domain` TEXT NOT NULL, `path` TEXT NOT NULL, `secure` TINYINT(1) NOT NULL DEFAULT 1, `httpOnly` TINYINT(1) NOT NULL DEFAULT 1, `hostOnly` TINYINT(1), `creation` DATETIME, `lastAccessed` DATETIME, `createdAt` DATETIME NOT NULL, `updatedAt` DATETIME NOT NULL); +0ms
  sequelize:sql:sqlite Executing (default): PRAGMA INDEX_LIST(`Cookie`) +1ms
  sequelize:sql:sqlite Executed (default): PRAGMA INDEX_LIST(`Cookie`) +1ms
  sequelize:sql:sqlite Executing (default): PRAGMA INDEX_INFO(`cookie_domain_path_key`) +0ms
  sequelize:sql:sqlite Executed (default): PRAGMA INDEX_INFO(`cookie_domain_path_key`) +1ms
  express:router use '/' jsonParser +423ms
  express:router:layer new '/' +0ms
  express:router:route new '/' +0ms
  express:router:layer new '/' +0ms
  express:router:route post '/' +0ms
  express:router:layer new '/' +0ms
  express:router use '/user_agent' router +0ms
  express:router:layer new '/user_agent' +0ms
  express:router use '/' jsonParser +0ms
  express:router:layer new '/' +1ms
  express:router:route new '/get_jar' +182ms
  express:router:layer new '/get_jar' +0ms
  express:router:route post '/get_jar' +0ms
  express:router:layer new '/' +0ms
  express:router:route new '/update_jar' +0ms
  express:router:layer new '/update_jar' +0ms
  express:router:route post '/update_jar' +0ms
  express:router:layer new '/' +0ms
  express:router use '/cookies' router +0ms
  express:router:layer new '/cookies' +0ms
[16:45:06] using workers: 2
◢ initializing
◢ initializing
◢ initializing

a chromium browser opens with a single empty tab. but then nothing happens only the spinning initialising

is this a known issue or are there some other way's to debug it?

ManAnRuck avatar Jun 12 '20 14:06 ManAnRuck

I am also facing same problem , did your issue got solved?

pravin82 avatar Jul 04 '20 10:07 pravin82

@pravin82 no I wasn't able to solve it. @zisismaras do you have an idea?

ManAnRuck avatar Jul 06 '20 16:07 ManAnRuck

Sorry for the late reply, let me try to reproduce it and get back to you. @pravin82 are you also using node 12 and/or OSX?

zisismaras avatar Jul 06 '20 20:07 zisismaras

yes my node version is 12.14.1

pravin82 avatar Jul 11 '20 06:07 pravin82