Slim Stop - Slim’s port forwarding is still active even though Slim is stopped

Open
#23 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
go
Domain
cli, networking

Research direction

Start by reproducing the issue with slim stop, slim doctor, and herd restart, then trace the stop command and the port-forwarding lifecycle. Done means slim doctor no longer reports forwarding as active after stopping and Herd can bind to ports 80 and 443 on macOS.

Written by the indexing model from the issue text.

Description

bug
Description

I am also using Herd (PHP) - they are conflicting.
Running them in parallel would be awesome - but for a first step - shutting down slim in a way - that Herd can take over again - would help a lot.

What I found out:
Slim’s port forwarding is still active even though Slim is stopped, so Herd can’t bind to normal web ports.

slim stop

slim doctor && echo '---' && slim list && echo '---' && if [ -f /etc/resolver/test ]; then cat /etc/resolver/test; else echo '/etc/resolver/test missing'; fi && echo '---' && herd --version
Password:
✓  CA certificate         valid, expires 2036-03-10
✓  CA trust               trusted by OS
✓  Port forwarding        active (80→10080, 443→10443)
!  Daemon                 not running
---
No domains or tunnels. Use 'slim start' or 'slim share' to create one.
---
nameserver 127.0.0.1---
Herd 1.26.1

In case I am just doing something wrong - I appreciate the help.

Steps to Reproduce
  1. slim stop
  2. herd restart

=> not binding

Expected Behavior

Herd can take over after slim stop

Actual Behavior

Slim’s port forwarding is still active even though Slim is stopped, so Herd can’t bind to normal web ports.

Slim Version

0.9.1

Operating System

macOS

Configuration

Logs
slim stop

slim doctor && echo '---' && slim list && echo '---' && if [ -f /etc/resolver/test ]; then cat /etc/resolver/test; else echo '/etc/resolver/test missing'; fi && echo '---' && herd --version
Password:
✓  CA certificate         valid, expires 2036-03-10
✓  CA trust               trusted by OS
✓  Port forwarding        active (80→10080, 443→10443)
!  Daemon                 not running
---
No domains or tunnels. Use 'slim start' or 'slim share' to create one.
---
nameserver 127.0.0.1---
Herd 1.26.1
Dominant language
Go
Stars
2.2k
Forks
139
PR merge metrics
No merged PRs in 30d

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from nilbuild/slim

All issues in nilbuild/slim

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.