gosom / gosom/google-maps-scraper

panic: Concurrency must be greater than 0 (docker)

Open
#130 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
5.9k
Forks
924
Avg merge
5d 13h
Merged PRs (30d)
3

Description

- Tried to install it to a new system via docker compose
- past 2 months there wasn't a problem
- new system : alpine-docker lxc proxmox
- docker-compose.yml
```
services:
google-maps-scraper:
container_name: maps-scraper
command: '-data-folder /gmapsdata'
image: gosom/google-maps-scraper
ports:
- '5907:8080'
volumes:
#- './gmaps-data:/gmapsdata'
- '/root/google-maps:/gmapsdata'
restart: unless-stopped
environment:
- TZ=Australia/Sydney

```
- the error
```

╔══════════════════════════════════════════════════════════════════════════════╗
║ 🌍 Google Maps Scraper ║
║ ⭐ If you find this project useful, please star it on GitHub: https://github ║
║ .com/gosom/google-maps-scraper ║
║ 💖 Consider sponsoring to support development: https://github.com/sponsors/g ║
║ osom ║
╚══════════════════════════════════════════════════════════════════════════════╝

panic: Concurrency must be greater than 0

goroutine 1 [running]:
github.com/gosom/google-maps-scraper/runner.ParseConfig()
/app/runner/runner.go:154 +0xea5
main.main()
/app/main.go:35 +0x125
╔══════════════════════════════════════════════════════════════════════════════╗
║ 🌍 Google Maps Scraper ║
║ ⭐ If you find this project useful, please star it on GitHub: https://github ║
║ .com/gosom/google-maps-scraper ║
║ 💖 Consider sponsoring to support development: https://github.com/sponsors/g ║
║ osom ║
╚══════════════════════════════════════════════════════════════════════════════╝

panic: Concurrency must be greater than 0

goroutine 1 [running]:
github.com/gosom/google-maps-scraper/runner.ParseConfig()
/app/runner/runner.go:154 +0xea5
main.main()
/app/main.go:35 +0x125
╔══════════════════════════════════════════════════════════════════════════════╗
║ 🌍 Google Maps Scraper ║
║ ⭐ If you find this project useful, please star it on GitHub: https://github ║
║ .com/gosom/google-maps-scraper ║
║ 💖 Consider sponsoring to support development: https://github.com/sponsors/g ║
║ osom ║
╚══════════════════════════════════════════════════════════════════════════════╝

panic: Concurrency must be greater than 0

goroutine 1 [running]:
github.com/gosom/google-maps-scraper/runner.ParseConfig()
/app/runner/runner.go:154 +0xea5
main.main()
/app/main.go:35 +0x125
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the provided docker-compose.yml and inspect runner/runner.go at the ParseConfig call shown at line 154, then trace the startup path from main.go:35. Reproduce the panic with the listed compose configuration and determine what configuration handling causes concurrency to be zero; done means the container starts without this panic.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, docker-compose, go
Domain
devops
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.