caddyserver/caddy · error

setting STEK module configuration: %v

Error message

setting STEK module configuration: %v

What it means

Error "setting STEK module configuration: %v" thrown in caddyserver/caddy.

Source

Thrown at modules/caddytls/sessiontickets.go:106

}

// start loads the starting STEKs and spawns a goroutine
// which loops to rotate the STEKs, which continues until
// stop() is called. If start() was already called, this
// is a no-op.
func (s *SessionTicketService) start() error {
	if s.stopChan != nil {
		return nil
	}
	s.stopChan = make(chan struct{})

	// initializing the key source gives us our
	// initial key(s) to start with; if successful,
	// we need to be sure to call Next() so that
	// the key source can know when it is done
	initialKeys, err := s.keySource.Initialize(s)
	if err != nil {
		return fmt.Errorf("setting STEK module configuration: %v", err)
	}

	s.mu.Lock()
	s.currentKeys = initialKeys
	s.mu.Unlock()

	// keep the keys rotated
	go s.stayUpdated()

	return nil
}

// stayUpdated is a blocking function which rotates
// the keys whenever new ones are sent. It reads
// from keysChan until s.stop() is called.
func (s *SessionTicketService) stayUpdated() {
	defer func() {
		if err := recover(); err != nil {

View on GitHub (pinned to 50e54ee279)

Solutions

  1. Fix the STEK module configuration; the wrapped error explains why it could not be applied.

When it happens

Trigger: Thrown at modules/caddytls/sessiontickets.go:106 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of caddyserver/caddy@50e54ee279 (2026-08-15). Data as JSON: /api/errors/8ce6335927f3ec68. Report an issue: GitHub.