laravel / octane

Supercharge your Laravel application's performance.
https://laravel.com/docs/octane
MIT License
3.78k stars 296 forks source link

Error parsing "<path>/public/frankenphp-worker.php": invalid syntax #781

Closed peterfox closed 11 months ago

peterfox commented 11 months ago

Octane Version

2.2.3

Laravel Version

10.38.1

PHP Version

8.3.0

What server type are you using?

FrankenPHP

Server Version

FrankenPHP 1.0.1 PHP 8.3.0 Caddy v2.7.6 h1:w0NymbG2m9PcvKWsrXO6EEkY9Ru4FJK8uQbYcev1p3A=

Database Driver & Version

No response

Description

When running the server the following error is thrown:

INFO Error: adapting config using caddyfile: parsing caddyfile tokens for 'frankenphp': strconv.Atoi: parsing "<project path>/public/frankenphp-worker.php": invalid syntax

I can't get anything more for the error. Sorry it's quite vague.

Notes

FrankenPHP build info:

go  go1.21.4
path    github.com/dunglas/frankenphp/caddy/frankenphp
mod github.com/dunglas/frankenphp/caddy (devel) 
dep filippo.io/edwards25519 v1.1.0  h1:FNf4tywRC1HmFuKW5xopWpigGjJKiJSV0Cqo0cJWDaA=
dep github.com/AndreasBriese/bbloom v0.0.0-20190825152654-46b345b51c96  h1:cTp8I5+VIoKjsnZuH8vjyaysT/ses3EvZeaV/1UkF2M=
dep github.com/BurntSushi/toml  v1.3.2  h1:o7IhLm0Msx3BaB+n3Ag7L8EVlByGnpq14C4YWiu/gL8=
dep github.com/Masterminds/goutils  v1.1.1  h1:5nUrii3FMTL5diU80unEVvNevw1nH4+ZV4DSLVJLSYI=
dep github.com/Masterminds/semver/v3    v3.2.1  h1:RN9w6+7QoMeJVGyfmbcgs28Br8cvmnucEXnY0rYXWg0=
dep github.com/Masterminds/sprig/v3 v3.2.3  h1:eL2fZNezLomi0uOLqjQoN6BfsDD+fyLtgbJMAj9n6YA=
dep github.com/MauriceGit/skiplist  v0.0.0-20211105230623-77f5c8d3e145  h1:1yw6O62BReQ+uA1oyk9XaQTvLhcoHWmoQAgXmDFXpIY=
dep github.com/RoaringBitmap/roaring    v1.6.0  h1:dc7kRiroETgJcHhWX6BerXkZz2b3JgLGg9nTURJL/og=
dep github.com/alecthomas/chroma/v2 v2.12.0 h1:Wh8qLEgMMsN7mgyG8/qIpegky2Hvzr4By6gEF7cmWgw=
dep github.com/antlr/antlr4/runtime/Go/antlr/v4 v4.0.0-20230305170008-8188dc5388df  h1:7RFfzj4SSt6nnvCPbCqijJi1nWCd+TqAT3bYCStRC18=
dep github.com/aryann/difflib   v0.0.0-20210328193216-ff5ff6dc229b  h1:uUXgbcPDK3KpW29o4iy7GtuappbWT0l5NaMo9H9pJDw=
dep github.com/beorn7/perks v1.0.1  h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM=
dep github.com/caddyserver/caddy/v2 v2.7.6  h1:w0NymbG2m9PcvKWsrXO6EEkY9Ru4FJK8uQbYcev1p3A=
dep github.com/caddyserver/certmagic    v0.20.0 h1:bTw7LcEZAh9ucYCRXyCpIrSAGplplI0vGYJ4BpCQ/Fc=
dep github.com/cenkalti/backoff/v4  v4.2.1  h1:y4OZtCnogmCPw98Zjyt5a6+QwPLGkiQsYW5oUqylYbM=
dep github.com/cespare/xxhash   v1.1.0  h1:a6HrQnmkObjyL+Gs60czilIUGqrzKutQD6XZog3p+ko=
dep github.com/cespare/xxhash/v2    v2.2.0  h1:DC2CZ1Ep5Y4k3ZQ899DldepgrayRUGE6BBZ/cd9Cj44=
dep github.com/chzyer/readline  v1.5.1  h1:upd/6fQk4src78LMRzh5vItIt361/o4uq553V8B5sGI=
dep github.com/cpuguy83/go-md2man/v2    v2.0.3  h1:qMCsGGgs+MAzDFyp9LpAe1Lqy/fY/qCovCm0qnXZOBM=
dep github.com/dgraph-io/badger v1.6.2  h1:mNw0qs90GVgGGWylh0umH5iag1j6n/PeJtNvL6KY/x8=
dep github.com/dgraph-io/badger/v2  v2.2007.4   h1:TRWBQg8UrlUhaFdco01nO2uXwzKS7zd+HVdwV/GHc4o=
dep github.com/dgraph-io/ristretto  v0.1.1  h1:6CWw5tJNgpegArSHpNHJKldNeq03FQCwYvfMVWajOK8=
dep github.com/dgryski/go-farm  v0.0.0-20200201041132-a6ae2369ad13  h1:fAjc9m62+UWV/WAFKLNi6ZS0675eEUC9y3AlwSbQu1Y=
dep github.com/dlclark/regexp2  v1.10.0 h1:+/GIL799phkJqYW+3YbOd8LCcbHzT0Pbo8zl70MHsq0=
dep github.com/dunglas/frankenphp   v1.0.1
=>  ../ (devel) 

dep github.com/dunglas/httpsfv  v1.0.2  h1:iERDp/YAfnojSDJ7PW3dj1AReJz4MrwbECSSE59JWL0=
dep github.com/dunglas/mercure  v0.15.6 h1:p9y9oq/kN/dGx/bcBccgixuGYCoudFi91tmZUiiPVBQ=
dep github.com/dunglas/mercure/caddy    v0.15.6 h1:Ic/h/ztxjcHwUO2Tv+cXFJ1uqyu3p5EmIhgZKJJ20uw=
dep github.com/dunglas/vulcain  v1.0.0  h1:z42oXOXitFUUDbBWGZTvGVbuL/G83L4y+662I3EXUw8=
dep github.com/dunglas/vulcain/caddy    v1.0.0  h1:m9yhiO37CkyNi5spT1tc0zf1qpOUN8rav7ymEHx8Sxc=
dep github.com/dustin/go-humanize   v1.0.1  h1:GzkhY7T5VNhEkwH0PVJgjz+fX1rhBrR7pRT3mDkpeCY=
dep github.com/felixge/httpsnoop    v1.0.4  h1:NFTV2Zj1bL4mc9sqWACXbQFVBBg2W3GPvqp8/ESS2Wg=
dep github.com/fsnotify/fsnotify    v1.7.0  h1:8JEhPFa5W2WU7YfeZzPNqzMP6Lwt7L2715Ggo0nosvA=
dep github.com/fxamacker/cbor/v2    v2.5.0  h1:oHsG0V/Q6E/wqTS2O1Cozzsy69nqCiguo5Q1a1ADivE=
dep github.com/getkin/kin-openapi   v0.120.0    h1:MqJcNJFrMDFNc07iwE8iFC5eT2k/NPUFDIpNeiZv8Jg=
dep github.com/go-chi/chi/v5    v5.0.10 h1:rLz5avzKpjqxrYwXNfmjkrYYXOyLJd37pz53UFHC6vk=
dep github.com/go-kit/kit   v0.13.0 h1:OoneCcHKHQ03LfBpoQCUfCluwd2Vt3ohz+kvbJneZAU=
dep github.com/go-kit/log   v0.2.1  h1:MRVx0/zhvdseW+Gza6N9rVzU/IVzaeE1SFI4raAhmBU=
dep github.com/go-logfmt/logfmt v0.6.0  h1:wGYYu3uicYdqXVgoYbvnkrPVXkuLM1p1ifugDMEdRi4=
dep github.com/go-logr/logr v1.3.0  h1:2y3SDp0ZXuc6/cjLSZ+Q3ir+QB9T/iG5yYRXqsagWSY=
dep github.com/go-logr/stdr v1.2.2  h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag=
dep github.com/go-openapi/jsonpointer   v0.20.0 h1:ESKJdU9ASRfaPNOPRx12IUyA1vn3R9GiE3KYD14BXdQ=
dep github.com/go-openapi/swag  v0.22.4 h1:QLMzNJnMGPRNDCbySlcj1x01tzU8/9LTTL9hZZZogBU=
dep github.com/go-sql-driver/mysql  v1.7.1  h1:lUIinVbN1DY0xBg0eMOzmmtGoHwWBbvnWubQUrtU8EI=
dep github.com/gofrs/uuid   v4.4.0+incompatible h1:3qXRTX8/NbyulANqlc0lchS1gqAVxRgsuW1YrTJupqA=
dep github.com/golang-jwt/jwt/v4    v4.5.0  h1:7cYmW1XlMY7h7ii7UhUyChSgS5wUJEnm9uZVTGqOWzg=
dep github.com/golang/glog  v1.2.0  h1:uCdmnmatrKCgMBlM4rMuJZWOkPDqdbZPnrMXDY4gI68=
dep github.com/golang/protobuf  v1.5.3  h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg=
dep github.com/golang/snappy    v0.0.4  h1:yAGX7huGHXlcLOEtBnF4w7FQwA26wojNCwOYAEhLjQM=
dep github.com/google/cel-go    v0.15.1 h1:iTgVZor2x9okXtmTrqO8cg4uvqIeaBcWhXtruaWFMYQ=
dep github.com/google/certificate-transparency-go   v1.1.7  h1:IASD+NtgSTJLPdzkthwvAG1ZVbF2WtFg4IvoA68XGSw=
dep github.com/google/go-tpm    v0.9.0  h1:sQF6YqWMi+SCXpsmS3fd21oPy/vSddwZry4JnmltHVk=
dep github.com/google/go-tspi   v0.3.0  h1:ADtq8RKfP+jrTyIWIZDIYcKOMecRqNJFOew2IT0Inus=
dep github.com/google/uuid  v1.4.0  h1:MtMxsa51/r9yyhkyLsVeVt0B+BGQZzpQiTQ4eHZ8bc4=
dep github.com/gorilla/handlers v1.5.2  h1:cLTUSsNkgcwhgRqvCNmdbRWG0A3N4F+M2nWKdScwyEE=
dep github.com/gorilla/mux  v1.8.1  h1:TuBL49tXwgrFYWhqrNgrUNEY92u81SPhu7sTdzQEiWY=
dep github.com/grpc-ecosystem/grpc-gateway/v2   v2.18.1 h1:6UKoz5ujsI55KNpsJH3UwCq3T8kKbZwNZBNPuTTje8U=
dep github.com/hashicorp/golang-lru v1.0.2  h1:dV3g9Z/unq5DpblPpw+Oqcv4dU/1omnb4Ok8iPY6p1c=
dep github.com/hashicorp/hcl    v1.0.0  h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4=
dep github.com/huandu/xstrings  v1.4.0  h1:D17IlohoQq4UcpqD7fDk80P7l+lwAmlFaBHgOipl2FU=
dep github.com/imdario/mergo    v0.3.16 h1:wwQJbIsHYGMUyLSPrEq1CT16AhnhNJQ51+4fdHUnCl4=
dep github.com/invopop/yaml v0.2.0  h1:7zky/qH+O0DwAyoobXUqvVBwgBFRxKoQ/3FjcVpjTMY=
dep github.com/jackc/chunkreader/v2 v2.0.1  h1:i+RDz65UE+mmpjTfyz0MoVTnzeYxroil2G82ki7MGG8=
dep github.com/jackc/pgconn v1.14.1 h1:smbxIaZA08n6YuxEX1sDyjV/qkbtUtkH20qLkR9MUR4=
dep github.com/jackc/pgio   v1.0.0  h1:g12B9UwVnzGhueNavwioyEEpAmqMe1E/BN9ES+8ovkE=
dep github.com/jackc/pgpassfile v1.0.0  h1:/6Hmqy13Ss2zCq62VdNG8tM1wchn8zjSGOBJ6icpsIM=
dep github.com/jackc/pgproto3/v2    v2.3.2  h1:7eY55bdBeCz1F2fTzSz69QC+pG46jYq9/jtSPiJ5nn0=
dep github.com/jackc/pgservicefile  v0.0.0-20231201235250-de7065d80cb9  h1:L0QtFUgDarD7Fpv9jeVMgy/+Ec0mtnmYuImjTz6dtDA=
dep github.com/jackc/pgtype v1.14.0 h1:y+xUdabmyMkJLyApYuPj38mW+aAIqCe5uuBB51rH3Vw=
dep github.com/jackc/pgx/v4 v4.18.1 h1:YP7G1KABtKpB5IHrO9vYwSrCOhs7p3uqhvhhQBptya0=
dep github.com/josharian/intern v1.0.0  h1:vlS4z54oSdjm0bgjRigI+G1HpF+tI+9rE5LLzOg8HmY=
dep github.com/kevburnsjr/skipfilter    v0.0.1  h1:EWl1lWUJfIehrKYIEkps0Cl67lCfS2pUM9iZFNajp7g=
dep github.com/klauspost/compress   v1.17.4 h1:Ej5ixsIri7BrIjBkRZLTo6ghwrEtHFk7ijlczPW4fZ4=
dep github.com/klauspost/cpuid/v2   v2.2.6  h1:ndNyv040zDGIDh8thGkXYjnFtiN02M1PVVF+JE/48xc=
dep github.com/libdns/libdns    v0.2.1  h1:Wu59T7wSHRgtA0cfxC+n1c/e+O3upJGWytknkmFEDis=
dep github.com/magiconair/properties    v1.8.7  h1:IeQXZAiQcpL9mgcAe1Nu6cX9LLw6ExEHKjN0VQdvPDY=
dep github.com/mailru/easyjson  v0.7.7  h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0=
dep github.com/manifoldco/promptui  v0.9.0  h1:3V4HzJk1TtXW1MTZMP7mdlwbBpIinw3HztaIlYthEiA=
dep github.com/mastercactapus/proxyprotocol v0.0.4  h1:qSY75IZF30ZqIU9iW1ip3I7gTnm8wRAnGWqPxCBVgq0=
dep github.com/mattn/go-colorable   v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA=
dep github.com/mattn/go-isatty  v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY=
dep github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0  h1:jWpvCLoY8Z/e3VKvlsiIGKtc+UG6U5vzxaoagmhXfyg=
dep github.com/mgutz/ansi   v0.0.0-20200706080929-d51e80ef957d  h1:5PJl274Y63IEHC+7izoQE9x6ikvDFZS2mDVS3drnohI=
dep github.com/mholt/acmez  v1.2.0  h1:1hhLxSgY5FvH5HCnGUuwbKY2VQVo8IU7rxXKSnZ7F30=
dep github.com/miekg/dns    v1.1.57 h1:Jzi7ApEIzwEPLHWRcafCN9LZSBbqQpxjt/wpgvg7wcM=
dep github.com/mitchellh/copystructure  v1.2.0  h1:vpKXTN4ewci03Vljg/q9QvCGUDttBOGBIa15WveJJGw=
dep github.com/mitchellh/go-ps  v1.0.0  h1:i6ampVEEF4wQFF+bkYfwYgY+F/uYJDktmvLPf7qIgjc=
dep github.com/mitchellh/mapstructure   v1.5.0  h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY=
dep github.com/mitchellh/reflectwalk    v1.0.2  h1:G2LzWKi524PWgd3mLHV8Y5k7s6XUvT0Gef6zxSIeXaQ=
dep github.com/mohae/deepcopy   v0.0.0-20170929034955-c48cc78d4826  h1:RWengNIwukTxcDr9M+97sNutRR1RKhG96O6jWumTTnw=
dep github.com/pelletier/go-toml/v2 v2.1.0  h1:FnwAJ4oYMvbT/34k9zzHuZNrhlz48GB3/s6at6/MHO4=
dep github.com/perimeterx/marshmallow   v1.1.5  h1:a2LALqQ1BlHM8PZblsDdidgv1mWi1DgC2UmX50IvK2s=
dep github.com/pkg/errors   v0.9.1  h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
dep github.com/prometheus/client_golang v1.17.0 h1:rl2sfwZMtSthVU752MqfjQozy7blglC+1SOtjMAMh+Q=
dep github.com/prometheus/client_model  v0.5.0  h1:VQw1hfvPvk3Uv6Qf29VrPF32JB6rtbgI6cYPYQjL0Qw=
dep github.com/prometheus/common    v0.45.0 h1:2BGz0eBc2hdMDLnO/8n0jeB3oPrt2D08CekT0lneoxM=
dep github.com/prometheus/procfs    v0.12.0 h1:jluTpSng7V9hY0O2R9DzzJHYb2xULk9VTR1V1R/k6Bo=
dep github.com/quic-go/qpack    v0.4.0  h1:Cr9BXA1sQS2SmDUWjSofMPNKmvF6IiIfDRmgU0w1ZCo=
dep github.com/quic-go/quic-go  v0.40.0 h1:GYd1iznlKm7dpHD7pOVpUvItgMPo/jrMgDWZhMCecqw=
dep github.com/rs/xid   v1.5.0  h1:mKX4bl4iPYJtEIxp6CYiUuLQ/8DYMoz0PUdtGgMFRVc=
dep github.com/russross/blackfriday/v2  v2.1.0  h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk=
dep github.com/sagikazarmark/slog-shim  v0.1.0  h1:diDBnUNK9N/354PgrxMywXnAwEr1QZcOr6gto+ugjYE=
dep github.com/shopspring/decimal   v1.3.1  h1:2Usl1nmF/WZucqkFZhnfFYxxxu8LG21F6nPQBE5gKV8=
dep github.com/shurcooL/sanitized_anchor_name   v1.0.0  h1:PdmoCO6wvbs+7yrJyMORt4/BmY5IYyJwS/kOiWx8mHo=
dep github.com/sirupsen/logrus  v1.9.3  h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ=
dep github.com/slackhq/nebula   v1.8.0  h1:WCOmmg1JMyy4HcFwA/hEfAq7IJZB9MyaL12itu88Umk=
dep github.com/smallstep/certificates   v0.25.2 h1:URA/KG11EyWn/UTPJdWxzCylKu8QniaTct7Aaj7PCBQ=
dep github.com/smallstep/go-attestation v0.4.4-0.20230627102604-cf579e53cbd2    h1:UIAS8DTWkeclraEGH2aiJPyNPu16VbT41w4JoBlyFfU=
dep github.com/smallstep/nosql  v0.6.0  h1:ur7ysI8s9st0cMXnTvB8tA3+x5Eifmkb6hl4uqNV5jc=
dep github.com/smallstep/pkcs7  v0.0.0-20231107075624-be1870d87d13  h1:qRxEt9ESQhAg1kjmgJ8oyyzlc9zkAjOooe7bcKjKORQ=
dep github.com/smallstep/scep   v0.0.0-20231024192529-aee96d7ad34d  h1:06LUHn4Ia2X6syjIaCMNaXXDNdU+1N/oOHynJbWgpXw=
dep github.com/smallstep/truststore v0.13.0 h1:90if9htAOblavbMeWlqNLnO9bsjjgVv2hQeQJCi/py4=
dep github.com/spf13/afero  v1.10.0 h1:EaGW2JJh15aKOejeuJ+wpFSHnbd7GE6Wvp3TsNhb6LY=
dep github.com/spf13/cast   v1.6.0  h1:GEiTHELF+vaR5dhz3VqZfFSzZjYbgeKDpBxQVS4GYJ0=
dep github.com/spf13/cobra  v1.8.0  h1:7aJaZx1B85qltLMc546zn58BxxfZdR/W22ej9CFoEf0=
dep github.com/spf13/pflag  v1.0.5  h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA=
dep github.com/spf13/viper  v1.17.0 h1:I5txKw7MJasPL/BrfkbA0Jyo/oELqVmux4pR/UxOMfI=
dep github.com/stoewer/go-strcase   v1.3.0  h1:g0eASXYtp+yvN9fK8sH94oCIk0fau9uV1/ZdJ0AVEzs=
dep github.com/subosito/gotenv  v1.6.0  h1:9NlTDc1FTs4qu0DDq7AEtTPNw6SVm7uBMsUCUjABIf8=
dep github.com/tailscale/tscert v0.0.0-20230806124524-28a91b69a046  h1:8rUlviSVOEe7TMk7W0gIPrW8MqEzYfZHpsNWSf8s2vg=
dep github.com/tidwall/gjson    v1.17.0 h1:/Jocvlh98kcTfpN2+JzGQWQcqrPQwDrVEMApx/M5ZwM=
dep github.com/tidwall/match    v1.1.1  h1:+Ho715JplO36QYgwN9PGYNhgZvoUSc9X2c80KVTi+GA=
dep github.com/tidwall/pretty   v1.2.1  h1:qjsOFOWWQl+N3RsoF5/ssm1pHmJJwhjlSbZ51I6wMl4=
dep github.com/tidwall/sjson    v1.2.5  h1:kLy8mja+1c9jlljvWTlSazM7cKDRfJuR/bOJhcY5NcY=
dep github.com/unrolled/secure  v1.13.0 h1:sdr3Phw2+f8Px8HE5sd1EHdj1aV3yUwed/uZXChLFsk=
dep github.com/urfave/cli   v1.22.14    h1:ebbhrRiGK2i4naQJr+1Xj92HXZCrK7MsyTS/ob3HnAk=
dep github.com/x448/float16 v0.8.4  h1:qLwI1I70+NjRFUR3zs1JPUCgaCXSh3SW62uAKT1mSBM=
dep github.com/yosida95/uritemplate/v3  v3.0.2  h1:Ed3Oyj9yrmi9087+NczuL5BwkIc4wvTb5zIM+UJPGz4=
dep github.com/yuin/goldmark    v1.6.0  h1:boZcn2GTjpsynOsC0iJHnBWa4Bi0qzfJjthwauItG68=
dep github.com/yuin/goldmark-highlighting/v2    v2.0.0-20230729083705-37449abec8cc  h1:+IAOyRda+RLrxa1WC7umKOZRsGq4QrFFMYApOeHzQwQ=
dep github.com/zeebo/blake3 v0.2.3  h1:TFoLXsjeXqRNFxSbk35Dk4YtszE/MQQGK10BH4ptoTg=
dep go.etcd.io/bbolt    v1.3.8  h1:xs88BrvEv273UsB79e0hcVrlUWmS0a8upikMFhSyAtA=
dep go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp   v0.45.0 h1:x8Z78aZx8cOF0+Kkazoc7lwUNMGy0LrzEMxTm4BbTxg=
dep go.opentelemetry.io/contrib/propagators/autoprop    v0.45.0 h1:FT/JCFzjzXgyp/aXkQeywnI/Tl8ZtKhvusVtZOokmFM=
dep go.opentelemetry.io/contrib/propagators/aws v1.20.0 h1:PByDRx6xPygwFP+L3FTlOifJoCB10T2LdRBZcDYMTJw=
dep go.opentelemetry.io/contrib/propagators/b3  v1.20.0 h1:Yty9Vs4F3D6/liF1o6FNt0PvN85h/BJJ6DQKJ3nrcM0=
dep go.opentelemetry.io/contrib/propagators/jaeger  v1.20.0 h1:iVhNKkMIpzyZqxk8jkDU2n4DFTD+FbpGacvooxEvyyc=
dep go.opentelemetry.io/contrib/propagators/ot  v1.20.0 h1:duH7mgL6VGQH7e7QEAVOFkCQXWpCb4PjTtrhdrYrJRQ=
dep go.opentelemetry.io/otel    v1.21.0 h1:hzLeKBZEL7Okw2mGzZ0cc4k/A7Fta0uoPgaJCr8fsFc=
dep go.opentelemetry.io/otel/exporters/otlp/otlptrace   v1.21.0 h1:cl5P5/GIfFh4t6xyruOgJP5QiA1pw4fYYdv6nc6CBWw=
dep go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.21.0 h1:tIqheXEFWAZ7O8A7m+J0aPTmpJN3YQ7qetUAdkkkKpk=
dep go.opentelemetry.io/otel/metric v1.21.0 h1:tlYWfeo+Bocx5kLEloTjbcDwBuELRrIFxwdQ36PlJu4=
dep go.opentelemetry.io/otel/sdk    v1.21.0 h1:FTt8qirL1EysG6sTQRZ5TokkU8d0ugCj8htOgThZXQ8=
dep go.opentelemetry.io/otel/trace  v1.21.0 h1:WD9i5gzvoUPuXIXH24ZNBudiarZDKuekPqi/E8fpfLc=
dep go.opentelemetry.io/proto/otlp  v1.0.0  h1:T0TX0tmXU8a3CbNXzEKGeU5mIVOdf0oykP+u2lIVU/I=
dep go.step.sm/cli-utils    v0.8.0  h1:b/Tc1/m3YuQq+u3ghTFP7Dz5zUekZj6GUmd5pCvkEXQ=
dep go.step.sm/crypto   v0.39.0 h1:3CzvUx3ckkTH8/7BgCcD7sV9US0GK8u9jcY7LEhZSeo=
dep go.step.sm/linkedca v0.20.1 h1:bHDn1+UG1NgRrERkWbbCiAIvv4lD5NOFaswPDTyO5vU=
dep go.uber.org/automaxprocs    v1.5.3  h1:kWazyxZUrS3Gs4qUpbwo5kEIMGe/DAvi5Z4tl2NW4j8=
dep go.uber.org/multierr    v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0=
dep go.uber.org/zap v1.26.0 h1:sI7k6L95XOKS281NhVKOFCUNIvv9e0w4BF8N3u+tCRo=
dep golang.org/x/crypto v0.16.0 h1:mMMrFzRSCF0GvB7Ne27XVtVAaXLrPmgPC7/v0tkwHaY=
dep golang.org/x/exp    v0.0.0-20231206192017-f3f8817b8deb  h1:c0vyKkb6yr3KR7jEfJaOSv4lG7xPkbN6r52aJz1d8a8=
dep golang.org/x/net    v0.19.0 h1:zTwKpTd2XuCqf8huc7Fo2iSy+4RHPd10s4KzeTnVr1c=
dep golang.org/x/sync   v0.5.0  h1:60k92dhOjHxJkrqnwsfl8KuaHbn/5dl0lUPUklKo3qE=
dep golang.org/x/sys    v0.15.0 h1:h48lPFYpsTvQJZF4EKyI4aLHaev3CxivZmv7yZig9pc=
dep golang.org/x/term   v0.15.0 h1:y/Oo/a/q3IXu26lQgl04j/gjuBDOBlx7X6Om1j2CPW4=
dep golang.org/x/text   v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ=
dep google.golang.org/genproto/googleapis/api   v0.0.0-20231127180814-3a041ad873d4  h1:ZcOkrmX74HbKFYnpPY8Qsw93fC29TbJXspYKaBkSXDQ=
dep google.golang.org/genproto/googleapis/rpc   v0.0.0-20231127180814-3a041ad873d4  h1:DC7wcm+i+P1rN3Ff07vL+OndGg5OhNddHyTA+ocPqYE=
dep google.golang.org/grpc  v1.59.0 h1:Z5Iec2pjwb+LEOqzpB2MR12/eKFhDPhuqW91O+4bwUk=
dep google.golang.org/protobuf  v1.31.0 h1:g0LDEJHgrBl9N9r17Ru3sqWhkIx2NB67okBHPwC7hs8=
dep gopkg.in/ini.v1 v1.67.0 h1:Dgnx+6+nfE+IfzjUEISNeydPJh9AXNNsWbGP9KzCsOA=
dep gopkg.in/natefinch/lumberjack.v2    v2.2.1  h1:bBRl1b0OH9s/DuPhuXpNl+VtCaJXFZ5/uEFST95x9zc=
dep gopkg.in/square/go-jose.v2  v2.6.0  h1:NGk74WTnPKBNUhNzQX7PYcTLUjoq7mzKk2OKbvwk2iI=
dep gopkg.in/yaml.v3    v3.0.1  h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
dep howett.net/plist    v1.0.1  h1:37GdZ8tP09Q35o9ych3ehygcsL+HqKSwzctveSlarvM=
build   -buildmode=pie
build   -compiler=gc
build   -ldflags="-linkmode=external -extldflags '-static-pie ' -w -s -X 'github.com/caddyserver/caddy/v2.CustomVersion=FrankenPHP 1.0.1 PHP 8.3.0 Caddy'"
build   -tags=cgo,netgo,osusergo,static_build
build   CGO_ENABLED=1
build   CGO_CFLAGS="-DFRANKENPHP_VERSION=1.0.1 -I/Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/include/php -I/Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/include/php/main -I/Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/include/php/TSRM -I/Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/include/php/Zend -I/Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/include/php/ext -I/Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/include/php/ext/date/lib"
build   CGO_CPPFLAGS=
build   CGO_CXXFLAGS=
build   CGO_LDFLAGS="-framework CoreFoundation -framework SystemConfiguration -lpthread -lpthread -L/Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/pkgconfig/../..//lib -L/Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib -L/lib -lresolv -lreadline /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libncurses.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libreadline.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libncurses.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libiconv.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libcharset.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libz.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libicui18n.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libicuio.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libicuuc.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libicudata.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libxml2.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libicui18n.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libicuio.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libicuuc.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libicudata.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libz.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libiconv.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libcharset.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libssl.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libcrypto.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libz.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libncurses.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libreadline.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libncurses.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libgmp.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libsodium.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/liblber.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libldap.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libsodium.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libgmp.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libssl.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libcrypto.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libz.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libpq.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libpgport.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libpgcommon.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/liblber.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libldap.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libsodium.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libgmp.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libreadline.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libncurses.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libssl.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libcrypto.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libxml2.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libicui18n.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libicuio.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libicuuc.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libicudata.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libz.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libiconv.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libcharset.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libiconv.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libcharset.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libz.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libicui18n.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libicuio.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libicuuc.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libicudata.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libxml2.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libicui18n.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libicuio.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libicuuc.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libicudata.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libz.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libiconv.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libcharset.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libssl.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libcrypto.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libz.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libncurses.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libreadline.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libncurses.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libgmp.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libsodium.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/liblber.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libldap.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libsodium.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libgmp.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libssl.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libcrypto.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libz.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libpq.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libpgport.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libpgcommon.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/liblber.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libldap.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libsodium.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libgmp.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libreadline.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libncurses.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libssl.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libcrypto.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libxml2.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libicui18n.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libicuio.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libicuuc.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libicudata.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libz.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libiconv.a /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libcharset.a -lldap -llber -lstdc++ -liconv /Users/dunglas/workspace/frankenphp/dist/static-php-cli/buildroot/lib/libbz2.a -framework CoreFoundation -framework CoreServices -framework SystemConfiguration -lnetwork -lm -lpthread -lxml2 -lssl -lcrypto -lsqlite3 -lz -lcurl -llber -lldap -lssl -lcrypto -lxml2 -lz -lpng16 -lavif -lwebp -lsharpyuv -ljpeg -lfreetype -lz -lpng16 -licuio -licui18n -licuuc -licudata -lonig -lsqlite3 -lxml2 -lxml2 -lxml2 -lxml2 -lzip -lz -lssl -lcrypto"
build   GOARCH=arm64
build   GOOS=darwin
build   vcs=git
build   vcs.revision=0015493543467e54fe431554743481388f2d5684
build   vcs.time=2023-12-18T18:39:47Z
build   vcs.modified=true

Steps To Reproduce

  1. run php artisan octane:install and chose frakenphp. Then say yes to downloading the binary.
  2. run php artisan octane:start
  3. See error INFO Error: adapting config using caddyfile: parsing caddyfile tokens for 'frankenphp': strconv.Atoi: parsing "<project path>/public/frankenphp-worker.php": invalid syntax
nunomaduro commented 11 months ago

@peterfox Cab you share your <project path>? Or INFO Error: adapting config using caddyfile: parsing caddyfile tokens for 'frankenphp': strconv.Atoi: parsing "<project path>/public/frankenphp-worker.php": invalid syntax was literally the error you saw?

peterfox commented 11 months ago

@nunomaduro is: "Projects/peterfox/wedding-booth" e.g. `Error: adapting config using caddyfile: parsing caddyfile tokens for 'frankenphp': strconv.Atoi: parsing "Projects/peterfox/wedding-booth/public/frankenphp-worker.php": invalid syntax

The full path is /Users/peterfox/Code/Client Projects/peterfox/wedding-booth so it does seem to be because somewhere isn't handling the space in the Client Projects folder

francislavoie commented 11 months ago

Makes sense.

https://github.com/laravel/octane/blob/7df6da4bda94c5f3a087764826321bc6581ffc90/src/Commands/stubs/Caddyfile#L7

The fix is to wrap {$APP_PUBLIC_PATH}/frankenphp-worker.php in double quotes:

    worker "{$APP_PUBLIC_PATH}/frankenphp-worker.php" {$CADDY_SERVER_WORKER_COUNT} 

See https://caddyserver.com/docs/caddyfile/concepts#tokens-and-quotes