question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failed to restart pulsar standalone

See original GitHub issue

Describe the bug I start a pulasr standalone using docker-compose and produce some messages. Then run docker-compose down and docker-compose up -d. Pulsar container failed to start.

To Reproduce Steps to reproduce the behavior:

  1. docker-compose up -d
  2. produce messages
  3. docker-compose down
  4. docker-compose up -d
  5. See error

Expected behavior pulsar container restarts successfully

docker-compose.yaml

pulsar:
    container_name: pulsar
    image: apachepulsar/pulsar:2.6.1
    volumes:
      - ${DOCKER_VOLUME_DIRECTORY:-.}/volumes/pulsar:/pulsar/data
    command: >
      /bin/sh -c "
                  echo "" >> /pulsar/conf/standalone.conf && \
                  echo "maxMessageSize=104857600" >> /pulsar/conf/standalone.conf && \
                  echo "" >> /pulsar/conf/standalone.conf && \
                  echo "nettyMaxFrameSizeBytes=104857600" >> /pulsar/conf/standalone.conf && \
                  sed -i 's/^defaultRetentionTimeInMinutes=.*/defaultRetentionTimeInMinutes=10080/' /pulsar/conf/broker.conf && \
                  bin/pulsar standalone"

log: pulsar-08-25.log

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
sunbycommented, Aug 27, 2021

@lhotari I really appreciate your help and I will test it.

0reactions
lhotaricommented, Sep 1, 2021

The issue remains that it is unable to start Pulsar standalone after an unclean shutdown. It’s more like a mitigation to fix the graceful shutdown by using exec bin/pulsar in docker-compose.yaml.

The root cause of the issue has been reported as #11842 .

Read more comments on GitHub >

github_iconTop Results From Across the Web

Mac(Mojave). Standalone quits. Failed to start pulsar service.
Describe the bug Hi, When I run bin/pulsar standalone it quits. To Reproduce Steps to reproduce the behavior: wget ...
Read more >
Troubleshooting - Apache Pulsar
Disable function workers by setting functionsWorkerEnabled=false , and restart brokers. Get the current cluster list of the public/functions namespace. bin/ ...
Read more >
Apache pulsar 2.8.0 standalone failing - Stack Overflow
To start pulsar i need delete all data folder, after that it starts. 10:56:47.858 [main] ERROR org.apache.pulsar.functions.worker.
Read more >
[GitHub] [pulsar] sunby edited a comment on issue #11768
... a comment on issue #11768: Failed to restart pulsar standalone ... URL: https://github.com/apache/pulsar/issues/11768#issuecomment- ...
Read more >
Introduction to Apache Pulsar - Baeldung
Learn about the Apache Pulsar publish-subscribe messaging system. ... To start a standalone instance we can execute: bin/pulsar standalone
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found