Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with automated log in #281

Open
Teberon opened this issue Dec 30, 2023 · 0 comments
Open

Issue with automated log in #281

Teberon opened this issue Dec 30, 2023 · 0 comments

Comments

@Teberon
Copy link

Teberon commented Dec 30, 2023

I have an issue running this application in HAOS using the .env file. Even though it has the password the error states "waiting for locator('#password')" and the other two have similar issues. That is my config.env with redacted information

# NOTIFY='discord://1087465061188120606/KAxq3dWrfsI_2YuATDt3rwW4XkNKfwBYP7oxTgGZkO3gO7171RDU_mUh80xVAhZXBRjJ/'
EG_EMAIL='[]@[]'
EG_PASSWORD='[]'
EG_OTPKEY='[]'
PG_EMAIL='[]@[]'
PG_PASSWORD='[]'
PG_OTPKEY='[]'
PG_REDEEM=1
PG_CLAIMDLC=1
GOG_EMAIL='[]'
GOG_PASSWORD='[]'
GOG_NEWSLETTER=1

That's the log information I have:

Starting...
/etc/cont-init.d/00-banner.sh: executing

-----------------------------------------------------------
 Add-on: Free Games Claimer (NoVNC not working)
 automatically claims free games on the Epic Games Store, Amazon Prime Gaming and GOG
-----------------------------------------------------------
 Add-on version: 1.6
 You are running the latest version of this add-on.
 System: Home Assistant OS 11.2  (amd64 / generic-x86-64)
 Home Assistant Core: 2023.12.4
 Home Assistant Supervisor: 2023.12.0
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums
-----------------------------------------------------------
 Provided by: https://github.com/alexbelgium/hassio-addons 
-----------------------------------------------------------
/etc/cont-init.d/00-global_var.sh: executing
CMD_ARGUMENTS='node epic-games ; node prime-gaming ; node gog'
CONFIG_LOCATION='/config/addons_config/free_games_claimer/config.env'
Timezone set from Etc/UTC to Europe/Warsaw
/etc/cont-init.d/01-config_yaml.sh: executing
Setting permissions for the config.yaml directory
mkdir: cannot create directory '/config/addons_config/free_games_claimer/config.env': File exists
Error : /etc/cont-init.d/01-config_yaml.sh exiting 1
/etc/cont-init.d/01-custom_script.sh: executing
Execute /config/addons_autoscripts/free-games-claimer.sh if existing
---------------------------------------------------------
If accessing the file with filebrowser it should be mapped to /config/addons_autoscripts/free-games-claimer.sh
Wiki here : github.com/alexbelgium/hassio-addons/wiki/Add-ons-feature-:-customisation
... no script found, exiting
/etc/cont-init.d/20-folders.sh: executing
Creating config location ...
Copying files if needed...
/etc/cont-init.d/99-run.sh: executing
[17:21:34] WARNING: The config.env file found in /config/addons_config/free_games_claimer will be used. Please customize according to https://github.com/vogler/free-games-claimer/tree/main#configuration--options and restart the add-on

[17:21:34] INFO: Getting variables from /config/addons_config/free_games_claimer/config.env
 
[17:21:34] INFO: Starting the app with arguments "node epic-games"
 
Version: https://github.com/vogler/free-games-claimer/tree/11db31ea46bf1fd0ec67144f484d3b151ba569b5
Build: Mon, 06 Nov 2023 18:41:08 +0000
Xvfb display server created screen with resolution 1920x1080
VNC is running on port 5900 (no password!)
noVNC (VNC via browser) is running on http://localhost:6080

2023-12-30 17:21:34.469 started checking epic-games
Open http://localhost:6080 to login inside the docker container.
Not signed in anymore. Please login in the browser or here in the terminal.
Login timeout is 180 seconds!
Using email and password from environment.
--- Exception:
page.fill: Timeout 180000ms exceeded.
=========================== logs ===========================
waiting for locator('#password')
============================================================
    at /data/epic-games.js:89:18 {
  name: 'TimeoutError'
}
 
[17:24:41] INFO: Starting the app with arguments "node prime-gaming"
 
Version: https://github.com/vogler/free-games-claimer/tree/11db31ea46bf1fd0ec67144f484d3b151ba569b5
Build: Mon, 06 Nov 2023 18:41:08 +0000
Xvfb display server created screen with resolution 1920x1080
VNC is running on port 5900 (no password!)
_XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running
(EE) 
Fatal server error:
(EE) Cannot establish any listening sockets - Make sure an X server isn't already running(EE) 
noVNC (VNC via browser) is running on http://localhost:6080

2023-12-30 17:24:42.227 started checking prime-gaming
Not signed in anymore.
Login timeout is 180 seconds!
Using email and password from environment.
Two-Step Verification - enter the One Time Password (OTP), e.g. generated by your Authenticator App
--- Exception:
page.waitForURL: Timeout 180000ms exceeded.
=========================== logs ===========================
waiting for navigation to "https://gaming.amazon.com/home?signedIn=true" until "load"
  navigated to "https://www.amazon.pl/ap/mfa?ie=UTF8&arb=7d10b0c0-0d65-4d86-af7d-0ae2aa023f31&mfa.arb.value=7d10b0c0-0d65-4d86-af7d-0ae2aa023f31&mfa.arb.key=arb"
  navigated to "https://www.amazon.pl/ap/mfa?ie=UTF8&arb=9d5ad4ce-916a-4517-93ad-6ffc44bbf4c4&mfa.arb.value=9d5ad4ce-916a-4517-93ad-6ffc44bbf4c4&mfa.arb.key=arb"
============================================================
    at /data/prime-gaming.js:82:16 {
  name: 'TimeoutError'
}
 
[17:27:47] INFO: Starting the app with arguments "node gog"
 
Version: https://github.com/vogler/free-games-claimer/tree/11db31ea46bf1fd0ec67144f484d3b151ba569b5
Build: Mon, 06 Nov 2023 18:41:08 +0000
Xvfb display server created screen with resolution 1920x1080
VNC is running on port 5900 (no password!)
noVNC (VNC via browser) is running on http://localhost:6080

_XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running
(EE) 
Fatal server error:
(EE) Cannot establish any listening sockets - Make sure an X server isn't already running(EE) 
2023-12-30 17:27:47.445 started checking gog
Not signed in anymore.
Login timeout is 180 seconds!

SPAMMING OF 
 locator resolved to hidden <span id="menuUsername" data-hj-suppress="" class="men…></span>
  locator resolved to hidden <span id="menuUsername" data-hj-suppress="" class="men…></span>
  locator resolved to hidden <span id="menuUsername" data-hj-suppress="" class="men…></span>
  locator resolved to hidden <span id="menuUsername" data-hj-suppress="" class="men…></span>
  locator resolved to hidden <span id="menuUsername" data-hj-suppress="" class="men…></span>
  locator resolved to hidden <span id="menuUsername" data-hj-suppress="" class="men…></span>
============================================================
    at /data/gog.js:74:18 {
  name: 'TimeoutError'
}
? Enter two-factor sign in code ‣  ✖ Enter two-factor sign in code ·  timeout
[17:30:59] INFO: All actions concluded, addon will stop in 10 seconds

When using all details in the .env file it should be used and not asking for the information in the browser (which has issues in HAOS)/

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

No branches or pull requests

1 participant