• Joined on 2023-03-07
j commented on issue SVIG/pricer#7 2023-06-17 03:17:02 +02:00
Scraper runs but zipcodes not found & Chrome failed to start

Look up what DevToolsActivePort is, and figure out why chromedriver can't connect to it.

j pushed to main at SVIG/pricer 2023-06-16 23:16:12 +02:00
1988a0f7fa Added ansible-lint for syntax checking
104ae2e903 Added note on installing snapd
bdb2a48a86 Use gitignore to ignore packages installed via venv
Compare 3 commits »
j commented on issue SVIG/pricer#3 2023-06-16 23:13:15 +02:00
Sloetjes: Unreachable error while gathering facts in Ansible playbook for basic system checks

The lack of output from "docker port pricer" tells me that the port still isn't being forwarded from your MacOS localhost:2222 -> Container ssh:22, so you'll have to fix that.

j reopened issue SVIG/pricer#3 2023-06-16 23:04:37 +02:00
Sloetjes: Unreachable error while gathering facts in Ansible playbook for basic system checks
j pushed to main at SVIG/python-bootcamp 2023-06-16 03:10:11 +02:00
5440bf3773 Escaped underscores in dunder methods
j commented on issue SVIG/pricer#3 2023-06-15 23:59:40 +02:00
Sloetjes: Unreachable error while gathering facts in Ansible playbook for basic system checks

Looks like docker isn't forwarding the port, so you'll have to recreate the container from the dev image you built, and set up port forwarding correctly. The playbook should do this automatically.

j closed issue SVIG/pricer#3 2023-06-15 23:59:40 +02:00
Sloetjes: Unreachable error while gathering facts in Ansible playbook for basic system checks
j commented on issue SVIG/pricer#4 2023-06-15 23:53:26 +02:00
Karen: Unable to open chrome when running scripts in the docker container

The issue is that you're using the docker_container module here:

j commented on issue SVIG/pricer#4 2023-06-15 23:08:43 +02:00
Karen: Unable to open chrome when running scripts in the docker container

What happens when you re-run the playbook with -vvv?

j opened issue SVIG/pricer#6 2023-06-15 02:12:10 +02:00
Use a headless compositing display manager to run chrome
j commented on issue SVIG/pricer#3 2023-06-15 02:07:24 +02:00
Sloetjes: Unreachable error while gathering facts in Ansible playbook for basic system checks

The issue here is that although your MacOS system is listening on port 22 (SSH), Ansible needs to connect to the docker container, which is available via port 2222, as per this line here:

j opened issue SVIG/pricer#5 2023-06-15 02:01:27 +02:00
Make ansible a development-only requirement
j pushed to main at SVIG/pricer 2023-06-15 02:00:58 +02:00
1e72e8ce59 Added ansible to list of package requirements
j commented on issue SVIG/pricer#4 2023-06-15 01:38:21 +02:00
Karen: Unable to open chrome when running scripts in the docker container

An important tool for troubleshooting the docker container restart with systemd is to run ansible in check mode like this:

j commented on issue SVIG/pricer#4 2023-06-15 01:13:29 +02:00
Karen: Unable to open chrome when running scripts in the docker container

You also have to add a play to install the chromium-chromedriver and chromium-browser packages.

j commented on issue SVIG/pricer#4 2023-06-15 01:09:36 +02:00
Karen: Unable to open chrome when running scripts in the docker container

The underlying issue is that the ansible playbook isn't complete, and the play on this line needs to be troubleshot so the container starts back up with systemd, so snap will run:

j commented on issue SVIG/pricer#4 2023-06-15 01:08:33 +02:00
Karen: Unable to open chrome when running scripts in the docker container

Note that status code 127 is usually used by bash and bash-like shells to indicate that the command was not found. You can access the return code (status code) from the $? variable on both Unix and Windows.

j pushed to main at SVIG/pricer 2023-06-14 23:34:08 +02:00
0391614151 Undo test commit
j pushed to main at SVIG/pricer 2023-06-14 23:32:15 +02:00
1beb86f483 Testing issue linking in title #3
j commented on issue SVIG/pricer#2 2023-06-14 22:59:27 +02:00
Sloetjes: Failed to import the 'requests' library during Ansible playbook execution

Karen fixed this in this commit: