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

Bug Report: Vttestserver docker image command doesn't work #12003

Closed
GuptaManan100 opened this issue Dec 21, 2022 · 4 comments · Fixed by #12004
Closed

Bug Report: Vttestserver docker image command doesn't work #12003

GuptaManan100 opened this issue Dec 21, 2022 · 4 comments · Fixed by #12004

Comments

@GuptaManan100
Copy link
Member

Overview of the Issue

The command listed on the website docs docker run --name=vttestserver -p 33577:33577 -e PORT=33574 -e PLANNER_VERSION=gen4fallback -e KEYSPACES=test,unsharded -e NUM_SHARDS=2,1 -e MYSQL_MAX_CONNECTIONS=70000 -e MYSQL_BIND_HOST=0.0.0.0 --health-cmd="mysqladmin ping -h127.0.0.1 -P33577" --health-interval=5s --health-timeout=2s --health-retries=5 vitess/vttestserver:mysql57 doesn't work with the vttestserver docker image.

An error like this is thrown -

ERROR: logging before flag.Parse: E1221 11:44:07.749554      16 syslogger.go:149] can't connect to syslog
invalid argument "" for "--tablet_refresh_interval" flag: time: invalid duration ""
Usage of /vt/bin/vttestserver:
      --alsologtostderr                                                  log to standard error as well as files
      --app_idle_timeout duration                                        Idle timeout for app connections (default 1m0s)

Reproduction Steps

Build the docker image of vttestserver and run the docker command

Binary Version

main

Operating System and Environment details

main

Log Fragments

No response

@GuptaManan100
Copy link
Member Author

This problem seems to have been introduced in #11918

@Jolg42
Copy link

Jolg42 commented Dec 21, 2022

I also have the same issue.

For me using

version: '3.7'
  vitess-8:
    image: vitess/vttestserver:mysql80
    restart: always
    ports:
      - 33807:33807
    healthcheck:
      test: ['CMD', 'mysqladmin', 'ping', '-h127.0.0.1', '-P33577']
      interval: 5s
      timeout: 2s
      retries: 5
      start_period: 25s
    environment:
      PORT: '33804'
      KEYSPACES: 'unsharded' 
      NUM_SHARDS: '1' 
      MYSQL_BIND_HOST: '0.0.0.0'
      FOREIGN_KEY_MODE: 'disallow'

Used to work before and now errors when doing docker-compose up -d vitess-8

Relevant error from the logs:

2022-12-21 13:06:13 /vt/run.sh: line 46: --schema_dir=/vt/schema/: No such file or directory
2022-12-21 13:06:26 mkdir: cannot create directory '/vt/schema/': File exists
2022-12-21 13:06:26 mkdir: cannot create directory '/vt/schema/unsharded': File exists
2022-12-21 13:06:26 ERROR: logging before flag.Parse: E1221 12:06:26.514986      27 syslogger.go:149] can't connect to syslog
2022-12-21 13:06:26 invalid argument "" for "--tablet_refresh_interval" flag: time: invalid duration ""

Originally posted by @Jolg42 in #11868 (comment)

@GuptaManan100
Copy link
Member Author

GuptaManan100 commented Dec 21, 2022

@Jolg42 As a work around until this PR #12004 is merged, just specify an additional environment variable TABLET_REFRESH_INTERVAL to 10s.

@Jolg42
Copy link

Jolg42 commented Dec 21, 2022

Thanks, @GuptaManan100, I can confirm adding this under environment to my docker-compose vitess definition works

      TABLET_REFRESH_INTERVAL: '10s'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants