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

/bin/sh: /goravel/storage/temp/main: No such file or directory #722

Open
neilyoung opened this issue Dec 17, 2024 · 5 comments
Open

/bin/sh: /goravel/storage/temp/main: No such file or directory #722

neilyoung opened this issue Dec 17, 2024 · 5 comments

Comments

@neilyoung
Copy link

In conjunction with goravel I'm having this problem every now and then. Need to restart air then.

@xiantang
Copy link
Collaborator

are u running in docker? could u show your config?

@neilyoung
Copy link
Author

@xiantang No, plain CLI.

My config is default, I guess. OS is MacOS latest on MBP 4 Pro 16 inch (APP_KEY obfuscated, you never know :))

APP_NAME=Goravel
APP_ENV=local
APP_KEY=xxxxxxxxxxxxx
APP_DEBUG=true
APP_URL=http://localhost
APP_HOST=127.0.0.1
APP_PORT=3000

GRPC_HOST=
GRPC_PORT=

JWT_SECRET=

LOG_CHANNEL=stack
LOG_LEVEL=debug

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=goravel
DB_USERNAME=root
DB_PASSWORD=

SESSION_DRIVER=file
SESSION_LIFETIME=120

REDIS_HOST=127.0.0.1
REDIS_PASSWORD=
REDIS_PORT=6379

MAIL_HOST=
MAIL_PORT=
MAIL_USERNAME=
MAIL_PASSWORD=
MAIL_FROM_ADDRESS=
MAIL_FROM_NAME=

Output of air on successful start:

~/Documents/goravel $ air

  __    _   ___  
 / /\  | | | |_) 
/_/--\ |_| |_| \_ v1.61.5, built with Go go1.23.3

watching .
watching app
watching app/console
watching app/grpc
watching app/grpc/controllers
watching app/grpc/interceptors
watching app/http
watching app/http/controllers
watching app/http/middleware
watching app/models
watching app/providers
watching bootstrap
watching config
!exclude database
watching dist
watching dist/assets
watching node_modules
watching node_modules/@babel
watching node_modules/@babel/helper-string-parser
watching node_modules/@babel/helper-string-parser/lib
watching node_modules/@babel/helper-validator-identifier
watching node_modules/@babel/helper-validator-identifier/lib
watching node_modules/@babel/parser
watching node_modules/@babel/parser/bin
watching node_modules/@babel/parser/lib
watching node_modules/@babel/parser/typings
watching node_modules/@babel/types
watching node_modules/@babel/types/lib
watching node_modules/@babel/types/lib/asserts
watching node_modules/@babel/types/lib/asserts/generated
watching node_modules/@babel/types/lib/ast-types
watching node_modules/@babel/types/lib/ast-types/generated
watching node_modules/@babel/types/lib/builders
watching node_modules/@babel/types/lib/builders/flow
watching node_modules/@babel/types/lib/builders/generated
watching node_modules/@babel/types/lib/builders/react
watching node_modules/@babel/types/lib/builders/typescript
watching node_modules/@babel/types/lib/clone
watching node_modules/@babel/types/lib/comments
watching node_modules/@babel/types/lib/constants
watching node_modules/@babel/types/lib/constants/generated
watching node_modules/@babel/types/lib/converters
watching node_modules/@babel/types/lib/definitions
watching node_modules/@babel/types/lib/modifications
watching node_modules/@babel/types/lib/modifications/flow
watching node_modules/@babel/types/lib/modifications/typescript
watching node_modules/@babel/types/lib/retrievers
watching node_modules/@babel/types/lib/traverse
watching node_modules/@babel/types/lib/utils
watching node_modules/@babel/types/lib/utils/react
watching node_modules/@babel/types/lib/validators
watching node_modules/@babel/types/lib/validators/generated
watching node_modules/@babel/types/lib/validators/react
watching node_modules/@esbuild
watching node_modules/@esbuild/darwin-arm64
watching node_modules/@esbuild/darwin-arm64/bin
watching node_modules/@inertiajs
watching node_modules/@inertiajs/core
watching node_modules/@inertiajs/core/dist
watching node_modules/@inertiajs/core/types
watching node_modules/@inertiajs/vue3
watching node_modules/@inertiajs/vue3/dist
watching node_modules/@inertiajs/vue3/types
watching node_modules/@jridgewell
watching node_modules/@jridgewell/sourcemap-codec
watching node_modules/@jridgewell/sourcemap-codec/dist
watching node_modules/@jridgewell/sourcemap-codec/dist/types
watching node_modules/@vitejs
watching node_modules/@vitejs/plugin-vue
watching node_modules/@vitejs/plugin-vue/dist
watching node_modules/@vue
watching node_modules/@vue/compiler-core
watching node_modules/@vue/compiler-core/dist
watching node_modules/@vue/compiler-dom
watching node_modules/@vue/compiler-dom/dist
watching node_modules/@vue/compiler-sfc
watching node_modules/@vue/compiler-sfc/dist
watching node_modules/@vue/compiler-ssr
watching node_modules/@vue/compiler-ssr/dist
watching node_modules/@vue/reactivity
watching node_modules/@vue/reactivity/dist
watching node_modules/@vue/runtime-core
watching node_modules/@vue/runtime-core/dist
watching node_modules/@vue/runtime-dom
watching node_modules/@vue/runtime-dom/dist
watching node_modules/@vue/server-renderer
watching node_modules/@vue/server-renderer/dist
watching node_modules/@vue/shared
watching node_modules/@vue/shared/dist
watching node_modules/ansi-regex
watching node_modules/ansi-styles
watching node_modules/anymatch
watching node_modules/asynckit
watching node_modules/asynckit/lib
watching node_modules/axios
watching node_modules/axios/dist
watching node_modules/axios/dist/browser
watching node_modules/axios/dist/esm
watching node_modules/axios/dist/node
watching node_modules/axios/lib
watching node_modules/axios/lib/adapters
watching node_modules/axios/lib/cancel
watching node_modules/axios/lib/core
watching node_modules/axios/lib/defaults
watching node_modules/axios/lib/env
watching node_modules/axios/lib/env/classes
watching node_modules/axios/lib/helpers
watching node_modules/axios/lib/platform
watching node_modules/axios/lib/platform/browser
watching node_modules/axios/lib/platform/browser/classes
watching node_modules/axios/lib/platform/common
watching node_modules/axios/lib/platform/node
watching node_modules/axios/lib/platform/node/classes
watching node_modules/binary-extensions
watching node_modules/braces
watching node_modules/braces/lib
watching node_modules/call-bind-apply-helpers
watching node_modules/call-bind-apply-helpers/test
watching node_modules/call-bound
watching node_modules/call-bound/test
watching node_modules/camelcase
watching node_modules/chokidar
watching node_modules/chokidar/lib
watching node_modules/chokidar/types
watching node_modules/chokidar-cli
watching node_modules/cliui
watching node_modules/color-convert
watching node_modules/color-name
watching node_modules/combined-stream
watching node_modules/combined-stream/lib
watching node_modules/csstype
watching node_modules/decamelize
watching node_modules/deepmerge
watching node_modules/deepmerge/dist
watching node_modules/delayed-stream
watching node_modules/delayed-stream/lib
watching node_modules/dunder-proto
watching node_modules/dunder-proto/test
watching node_modules/emoji-regex
watching node_modules/emoji-regex/es2015
watching node_modules/entities
watching node_modules/entities/lib
watching node_modules/entities/lib/esm
watching node_modules/entities/lib/esm/generated
watching node_modules/entities/lib/generated
watching node_modules/es-define-property
watching node_modules/es-define-property/test
watching node_modules/es-errors
watching node_modules/es-errors/test
watching node_modules/es-object-atoms
watching node_modules/es-object-atoms/test
watching node_modules/esbuild
watching node_modules/esbuild/bin
watching node_modules/esbuild/lib
watching node_modules/estree-walker
watching node_modules/estree-walker/dist
watching node_modules/estree-walker/dist/esm
watching node_modules/estree-walker/dist/umd
watching node_modules/estree-walker/src
watching node_modules/estree-walker/types
watching node_modules/fill-range
watching node_modules/find-up
watching node_modules/follow-redirects
watching node_modules/form-data
watching node_modules/form-data/lib
watching node_modules/function-bind
watching node_modules/function-bind/test
watching node_modules/get-caller-file
watching node_modules/get-intrinsic
watching node_modules/get-intrinsic/test
watching node_modules/glob-parent
watching node_modules/gopd
watching node_modules/gopd/test
watching node_modules/has-symbols
watching node_modules/has-symbols/test
watching node_modules/has-symbols/test/shams
watching node_modules/hasown
watching node_modules/is-binary-path
watching node_modules/is-extglob
watching node_modules/is-fullwidth-code-point
watching node_modules/is-glob
watching node_modules/is-number
watching node_modules/locate-path
watching node_modules/lodash.clonedeep
watching node_modules/lodash.debounce
watching node_modules/lodash.isequal
watching node_modules/lodash.throttle
watching node_modules/magic-string
watching node_modules/magic-string/dist
watching node_modules/math-intrinsics
watching node_modules/math-intrinsics/constants
watching node_modules/math-intrinsics/test
watching node_modules/mime-db
watching node_modules/mime-types
watching node_modules/nanoid
watching node_modules/nanoid/async
watching node_modules/nanoid/bin
watching node_modules/nanoid/non-secure
watching node_modules/nanoid/url-alphabet
watching node_modules/normalize-path
watching node_modules/nprogress
watching node_modules/nprogress/test
watching node_modules/object-inspect
watching node_modules/object-inspect/example
watching node_modules/object-inspect/test
watching node_modules/object-inspect/test/browser
watching node_modules/p-limit
watching node_modules/p-locate
watching node_modules/p-try
watching node_modules/path-exists
watching node_modules/picocolors
watching node_modules/picomatch
watching node_modules/picomatch/lib
watching node_modules/postcss
watching node_modules/postcss/lib
watching node_modules/proxy-from-env
watching node_modules/qs
watching node_modules/qs/dist
watching node_modules/qs/lib
watching node_modules/qs/test
watching node_modules/readdirp
watching node_modules/require-directory
watching node_modules/require-main-filename
watching node_modules/rollup
watching node_modules/rollup/dist
watching node_modules/rollup/dist/bin
watching node_modules/rollup/dist/es
watching node_modules/rollup/dist/es/shared
watching node_modules/rollup/dist/shared
watching node_modules/set-blocking
watching node_modules/side-channel
watching node_modules/side-channel/test
watching node_modules/side-channel-list
watching node_modules/side-channel-list/test
watching node_modules/side-channel-map
watching node_modules/side-channel-map/test
watching node_modules/side-channel-weakmap
watching node_modules/side-channel-weakmap/test
watching node_modules/source-map-js
watching node_modules/source-map-js/lib
watching node_modules/string-width
watching node_modules/strip-ansi
watching node_modules/to-regex-range
watching node_modules/vite
watching node_modules/vite/bin
watching node_modules/vite/dist
watching node_modules/vite/dist/client
watching node_modules/vite/dist/node
watching node_modules/vite/dist/node/chunks
watching node_modules/vite/dist/node-cjs
watching node_modules/vite/types
watching node_modules/vue
watching node_modules/vue/compiler-sfc
watching node_modules/vue/dist
watching node_modules/vue/jsx-runtime
watching node_modules/vue/server-renderer
watching node_modules/which-module
watching node_modules/wrap-ansi
watching node_modules/y18n
watching node_modules/yargs
watching node_modules/yargs/lib
watching node_modules/yargs/locales
watching node_modules/yargs-parser
watching node_modules/yargs-parser/lib
watching public
watching resources
watching resources/css
watching resources/js
watching resources/js/Pages
watching resources/views
watching routes
!exclude storage
watching tests
watching tests/feature
building...
running...
GET        /
GET        /dist/*filepath
GET        /1
GET        /users/{id}
HEAD       /dist/*filepath
[HTTP] Listening and serving HTTP on (http://127.0.0.1:3000)

@istyf
Copy link
Contributor

istyf commented Dec 21, 2024

It would be helpful to see your .air.toml file, but assuming that /goravel/storage/temp/main is the path of your built binary, this sounds like the same kind of shutdown/build/startup race issue that is reported in #669 and has a potential fix that is currently being reviewed.

@neilyoung
Copy link
Author

@istyf Thanks. Yes, according to air.toml, this is my build directory. I have applied your patch, lets see, if it works. Thanks

@neilyoung
Copy link
Author

@istyf : The patch doesn't work 100% There are still situations in which I see this:

/bin/sh: /.../storage/temp/main: No such file or directory
Process Exit with Code: 127

One thing is for sure: It dramatically tears down the performance of air, which is astonishing on an 2024 M4 MBP. How does that work on an ordinary Windows PC?

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

No branches or pull requests

3 participants