sopel-irc / docker-sopel

:whale: Officially Unofficial™ Docker container for Sopel, a Python IRC bot
https://hub.docker.com/r/sopelirc/sopel
12 stars 6 forks source link

Command responses are duplicated on container restart #22

Open HumorBaby opened 5 years ago

HumorBaby commented 5 years ago

A user reports that container restarts lead to duplicated responses. For example, after a restart, .weather xxx responds twice. After another restart, .weather xxx responds three times.

Unfortunately, I am not able to duplicate this with the following:

$ docker create --name sopel_test -e EXTRA_PYPI_PACKAGES=sopel_modules.weather -e PUID=1000 -v "$(pwd)/sopel-config:/home/sopel/.sopel" sopelirc/sopel
$ docker start -a sopel_test
...
...
^C
$ docker start -a sopel_test
...
...

After subsequent restarts, the .weather xxx command still responds only one time.

"Labels" from sopelirc/sopel image used for testing:

            "Labels": {                                                                                                 
                "dockerfile.vcf-ref": "cbee053",                                                                        
                "dockerfile.vcs-url": "https://github.com/sopel-irc/sopel-docker",                                      
                "maintainer": "Humorous Baby <baby.humorous@gmail.com>",                                                
                "org.label-schema.build-date": "2019-02-06T21:43:32Z",                                                  
                "org.label-schema.description": "         Sopel, the Python IRC bot.         For stand-alone or compose/
stack service use.",                                                                                                    
                "org.label-schema.name": "sopel",                                                                       
                "org.label-schema.schema-version": "1.0",                                                               
                "org.label-schema.url": "https://sopel.chat",                                                           
                "org.label-schema.vcs-ref": "90a0916",                                                                  
                "org.label-schema.vcs-url": "https://github.com/sopel-irc/sopel",                                       
                "org.label-schema.version": "Python 3.4.9/Sopel v6.6.2"                                                 
            }                                             

More information is required:

RustyBower commented 5 years ago

Not sure if this is 100% related, but I am running into an issue where Sopel will randomly start duplicating module results (weather, youtube, etc.)

Using docker-compose

  sopel:
    depends_on:
      - db
    environment:
      - EXTRA_PYPI_PACKAGES=google-api-python-client pyfiglet sopel-modules.bucket sopel-modules.cryptocurrency sopel-modules.imdb sopel-modules.quotes sopel-modules.stocks sopel-modules.urban sopel-modules.weather sopel-modules.youtube
      - EXTRA_APK_PACKAGES=mariadb-connector-c-dev
    image: sopelirc/sopel:latest
    restart: always
    volumes:
      - ./sopel:/home/sopel/.sopel

No Bouncer

Labels:

"Labels": {
                "com.docker.compose.config-hash": "63bdfd51ed9379248967f175fe6e4                                                                                  a4c3a6b7056086247899e6ccd4a30f56c7f",
                "com.docker.compose.container-number": "1",
                "com.docker.compose.oneoff": "False",
                "com.docker.compose.project": "sopel",
                "com.docker.compose.service": "sopel",
                "com.docker.compose.version": "1.22.0",
                "dockerfile.vcf-ref": "9e68621",
                "dockerfile.vcs-url": "https://github.com/sopel-irc/docker-sopel                                                                                  ",
                "maintainer": "Humorous Baby <humorbaby@humorbaby.net>",
                "org.label-schema.build-date": "2019-05-10T12:21:54Z",
                "org.label-schema.description": "         Sopel, the Python IRC                                                                                   bot.         For stand-alone or compose/stack service use.",
                "org.label-schema.name": "sopel",
                "org.label-schema.schema-version": "1.0",
                "org.label-schema.url": "https://sopel.chat",
                "org.label-schema.vcs-ref": "d8b4233",
                "org.label-schema.vcs-url": "https://github.com/sopel-irc/sopel"                                                                                  ,
                "org.label-schema.version": "Python 3.6.8/Sopel v6.6.8"
            }
        },