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

Command responses are duplicated on container restart #22

Open
HumorBaby opened this issue Feb 11, 2019 · 1 comment
Open

Command responses are duplicated on container restart #22

HumorBaby opened this issue Feb 11, 2019 · 1 comment
Labels
question Further information is requested

Comments

@HumorBaby
Copy link
Contributor

HumorBaby commented Feb 11, 2019

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 <[email protected]>",                                                
                "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:

  • What are the commands that are being used to create/start/restart the container?
  • Is the bot connecting through a bouncer?
  • Provide the output of docker inspect sopelirc/sopel, specifically the "Labels" metadata.
@HumorBaby HumorBaby added the question Further information is requested label Feb 11, 2019
@RustyBower
Copy link
Contributor

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 <[email protected]>",
                "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"
            }
        },

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

No branches or pull requests

2 participants