B
Blueprint13mo ago
IY

Error 500 and yarn error

root@h2-kyonix /var/www/pterodactyl # yarn build:production yarn run v1.22.22 $ yarn run clean && cross-env NODE_ENV=production ./node_modules/.bin/webpack --mode production $ cd public/assets && find . ( -name ".js" -o -name ".map" ) -type f -delete node:internal/modules/cjs/loader:1148 throw err; ^ Error: Cannot find module '..' Require stack: - /var/www/pterodactyl/node_modules/.bin/cross-env at Module._resolveFilename (node:internal/modules/cjs/loader:1145:15) at Module._load (node:internal/modules/cjs/loader:986:27) at Module.require (node:internal/modules/cjs/loader:1233:19) at require (node:internal/modules/helpers:179:18) at Object.<anonymous> (/var/www/pterodactyl/node_modules/.bin/cross-env:3:18) at Module._compile (node:internal/modules/cjs/loader:1358:14) at Module._extensions..js (node:internal/modules/cjs/loader:1416:10) at Module.load (node:internal/modules/cjs/loader:1208:32) at Module._load (node:internal/modules/cjs/loader:1024:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:174:12) { code: 'MODULE_NOT_FOUND', requireStack: [ '/var/www/pterodactyl/node_modules/.bin/cross-env' ] } Node.js v20.16.0 error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
11 Replies
Emma
Emma13mo ago
not a bug - adjusted the tags for you
E1ast
E1ast13mo ago
I changed my account and now I can't do it. So how can I fix the error?
Emma
Emma13mo ago
by following the blueprint install guide
E1ast
E1ast13mo ago
I was watching. But I still have this error
Emma
Emma13mo ago
could you send the link of the guide you followed
E1ast
E1ast13mo ago
https://blueprint.zip/docs/?page=getting-started/Installation I should mention that I first installed BluePrint and then moved the data from a folder on another part of the web server. That is, I copied my other pterodactyl panel folder, where there was also blueprint and a number of extensions And then I followed the steps to build the panel The installation itself went smoothly, after which I transferred the files without copying the .env. Next I was building the panel and got an error
Emma
Emma13mo ago
try running yarn
E1ast
E1ast13mo ago
Already did Error 500 after I wrote php artisan up
ℓєzєтнσ
ℓєzєтнσ13mo ago
could you get logs?
E1ast
E1ast13mo ago
tail -n 1000 /var/www/pterodactyl/storage/logs/laravel-$(date +%F).log | grep "[$(date +%Y)" [2024-08-10 04:39:23] production.ERROR: file_put_contents(/var/www/pterodactyl/storage/framework/cache/data/9d/86/9d8693485dbfedc9ee669daec8adbc9178415aa9): Failed to open stream: Permission denied {"exception":"[object] (ErrorException(code: 0): file_put_contents(/var/www/pterodactyl/storage/framework/cache/data/9d/86/9d8693485dbfedc9ee669daec8adbc9178415aa9): Failed to open stream: Permission denied at /var/www/pterodactyl/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:190) [2024-08-10 04:39:23] production.ERROR: file_put_contents(/var/www/pterodactyl/storage/framework/cache/data/9d/86/9d8693485dbfedc9ee669daec8adbc9178415aa9): Failed to open stream: Permission denied {"exception":"[object] (ErrorException(code: 0): file_put_contents(/var/www/pterodactyl/storage/framework/cache/data/9d/86/9d8693485dbfedc9ee669daec8adbc9178415aa9): Failed to open stream: Permission denied at /var/www/pterodactyl/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:190) [2024-08-10 04:39:23] production.ERROR: file_put_contents(/var/www/pterodactyl/storage/framework/cache/data/9d/86/9d8693485dbfedc9ee669daec8adbc9178415aa9): Failed to open stream: Permission denied {"exception":"[object] (ErrorException(code: 0): file_put_contents(/var/www/pterodactyl/storage/framework/cache/data/9d/86/9d8693485dbfedc9ee669daec8adbc9178415aa9): Failed to open stream: Permission denied at /var/www/pterodactyl/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:190) [2024-08-10 04:39:37] production.ERROR: file_put_contents(/var/www/pterodactyl/storage/framework/cache/data/9d/86/9d8693485dbfedc9ee669daec8adbc9178415aa9): Failed to open stream: Permission denied {"exception":"[object] (ErrorException(code: 0): file_put_contents(/var/www/pterodactyl/storage/framework/cache/data/9d/86/9d8693485dbfedc9ee669daec8adbc9178415aa9): Failed to open stream: Permission denied at /var/www/pterodactyl/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:190) [2024-08-10 04:39:37] production.ERROR: file_put_contents(/var/www/pterodactyl/storage/framework/cache/data/9d/86/9d8693485dbfedc9ee669daec8adbc9178415aa9): Failed to open stream: Permission denied {"exception":"[object] (ErrorException(code: 0): file_put_contents(/var/www/pterodactyl/storage/framework/cache/data/9d/86/9d8693485dbfedc9ee669daec8adbc9178415aa9): Failed to open stream:
root@david1117:~#
chown -R www-data:www-data /var/www/pterodactyl*
chown -R www-data:www-data /var/www/pterodactyl*

Did you find this page helpful?