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

Unable to start Docker Container #70

Open
TeaRex-coder opened this issue Mar 9, 2023 · 9 comments
Open

Unable to start Docker Container #70

TeaRex-coder opened this issue Mar 9, 2023 · 9 comments

Comments

@TeaRex-coder
Copy link

Using the prebuilt image from Docker Hub, starting the container with the latest tag for the image resulted in this error:

Exception: local variable 'options' referenced before assignment

Traceback (most recent call last):
  File "/app/main.py", line 1395, in main
    start_rewards()
  File "/app/main.py", line 1275, in start_rewards
    driver = get_driver()
  File "/app/main.py", line 258, in get_driver
    options.add_argument('--no-sandbox')
UnboundLocalError: local variable 'options' referenced before assignment



 Attempting to restart Bing Rewards Automation in 10 minutes...

I let it sit for 30 minutes and it didn't work.
I also tried building the image myself from this repo but no dice.

Server info:

  • OS: Ubuntu Server 22.04.02
  • CPU arch: X86
@vay1314
Copy link

vay1314 commented Mar 9, 2023

Same Question, why is that?

@Lexxior
Copy link

Lexxior commented Mar 26, 2023

I get this error too

@Prem-ium
Copy link
Owner

Prem-ium commented Apr 4, 2023

May be an issue with your BROWSER variable, make sure it is following the description.

@TeaRex-coder
Copy link
Author

Thanks for the reply and suggestion. I'll have a look this weekend!

@HuiMi24
Copy link

HuiMi24 commented Apr 11, 2023

the BROWSER should be chrome instead of 'chrome' in the .env file

@Lexxior
Copy link

Lexxior commented Apr 11, 2023

the BROWSER should be chrome instead of 'chrome' in the .env file

This does not work for me
also it says # Not used in Docker for browser in the .env

@Lexxior
Copy link

Lexxior commented Apr 11, 2023

I just checked again, for me it's actually a different error code

HANDLE_DRIVER:
Starting Bing Rewards Bot...
Traceback (most recent call last):
File "/app/main.py", line 30, in
if not os.environ["LOGIN"]:
File "/usr/lib/python3.10/os.py", line 679, in getitem
raise KeyError(key) from None
KeyError: 'LOGIN'

@Prem-ium
Copy link
Owner

I just checked again, for me it's actually a different error code

HANDLE_DRIVER:
Starting Bing Rewards Bot...
Traceback (most recent call last):
File "/app/main.py", line 30, in
if not os.environ["LOGIN"]:
File "/usr/lib/python3.10/os.py", line 679, in getitem
raise KeyError(key) from None
KeyError: 'LOGIN'

In your case, it looks like you're missing your LOGIN env variable. Make sure you have one in your env file

@Lexxior
Copy link

Lexxior commented Apr 12, 2023

In your case, it looks like you're missing your LOGIN env variable. Make sure you have one in your env file

I do, but it's not working on my home server
I tried on my VPS - there I got the same error as the poster and could get it working by changing the 'chrome' to chrome
Thanks!

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

5 participants