function group()

12:07:17 INFO: Syncing Blueprint-related database values.. In RouteServiceProvider.php line 64:
Call to a member function group() on null
90 Replies
Pedro Pagani
Pedro PaganiOP16mo ago
I just tried installing blueprint on the panel, but for some reason i started getting that exception, now the panel just gives 500 errr
Emma
Emma16mo ago
@Pedro Pagani Which modifications do you have installed
Pedro Pagani
Pedro PaganiOP16mo ago
what do you mean by modifications i just tried to follow this one https://blueprint.zip/docs/?page=getting-started/Installation i didnt install any theme or anything yet
Emma
Emma16mo ago
things that are not standard with fresh pterodactyl installs anything like addons or whatever?
Pedro Pagani
Pedro PaganiOP16mo ago
i had an addon a category addon
Emma
Emma16mo ago
yeah there is the problem
lunat
lunat16mo ago
This is strange. I have just completed an install myself and got the same error when migrating my DB. I have a standard ptero install with no modifications
Pedro Pagani
Pedro PaganiOP16mo ago
yeah that shows up on migrating the db 12:07:17 INFO: Syncing Blueprint-related database values.. In RouteServiceProvider.php line 64:
Call to a member function group() on null

12:07:17 SUCCESS: Blueprint has completed it's installation process.
Emma
Emma16mo ago
what the fuck uhhh
Pedro Pagani
Pedro PaganiOP16mo ago
12:07:04 INFO: Running database migrations.. In RouteServiceProvider.php line 64:
Call to a member function group() on null
lunat
lunat16mo ago
yes same ^
Emma
Emma16mo ago
does blueprint -upgrade remote blueprintframework/fallback also produce this error?
lunat
lunat16mo ago
Testing
Pedro Pagani
Pedro PaganiOP16mo ago
should i do Y?
Emma
Emma16mo ago
yeah
lunat
lunat16mo ago
Yes I got the error
Pedro Pagani
Pedro PaganiOP16mo ago
yeah got it too
Emma
Emma16mo ago
I can't seem to reproduce this
Pedro Pagani
Pedro PaganiOP16mo ago
should i show that file RouteServiceProvider.php
Emma
Emma16mo ago
have you both installed addons in the past?
Pedro Pagani
Pedro PaganiOP16mo ago
he said he didnt i have
lunat
lunat16mo ago
Hmmm, are you testing on a new panel install Ivy? Maybe our existing DB entries pertaining to existing servers, users etc are what is causing the problem here. No, I have not done anything addon based now or in the past
Emma
Emma16mo ago
themes?
lunat
lunat16mo ago
No
Pedro Pagani
Pedro PaganiOP16mo ago
no its my first time trying it
Emma
Emma16mo ago
uhhhh
Pedro Pagani
Pedro PaganiOP16mo ago
@lunat when you installed it were you on the latest pterodactyl version?
lunat
lunat16mo ago
I have not updated ptero in a couple of months
Pedro Pagani
Pedro PaganiOP16mo ago
i also haven't i was on something .3
lunat
lunat16mo ago
I'll update mine now
Emma
Emma16mo ago
that could be the problem, not sure though
Pedro Pagani
Pedro PaganiOP16mo ago
I can't update because it keeps giving that error now
?php

namespace Pterodactyl\Providers;

use Illuminate\Http\Request;
use Pterodactyl\Models\Database;
use Illuminate\Support\Facades\Route;
use Illuminate\Cache\RateLimiting\Limit;
use Illuminate\Support\Facades\RateLimiter;
use Pterodactyl\Http\Middleware\TrimStrings;
use Pterodactyl\Http\Middleware\AdminAuthenticate;
use Pterodactyl\Http\Middleware\RequireTwoFactorAuthentication;
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;

class RouteServiceProvider extends ServiceProvider
{
protected const FILE_PATH_REGEX = '/^\/api\/client\/servers\/([a-z0-9-]{36})\/files(\/?$|\/(.)*$)/i';

/**
* Define your route model bindings, pattern filters, etc.
*/
public function boot(): void
{
$this->configureRateLimiting();

// Disable trimming string values when requesting file information — it isn't helpful
// and messes up the ability to actually open a directory that ends with a space.
TrimStrings::skipWhen(function (Request $request) {
return preg_match(self::FILE_PATH_REGEX, $request->getPathInfo()) === 1;
});

// This is needed to make use of the "resolveRouteBinding" functionality in the
// model. Without it you'll never trigger that logic flow thus resulting in a 404
// error because we request databases with a HashID, and not with a normal ID.
Route::model('database', Database::class);

$this->routes(function () {
/* Blueprint web routes */
Route::middleware('blueprint')
->prefix('/extensions')
->group(base_path('routes/blueprint/web.php'));

/* Blueprint API routes */
Route::middleware(['blueprint/api', RequireTwoFactorAuthentication::class])->group(function () {
/* Application API */
Route::middleware(['blueprint/application-api', 'throttle:api.application'])
->prefix('/api/application/extensions')
->scopeBindings()
->group(base_path('routes/blueprint/application.php'));
/* Client API */
Route::middleware(['blueprint/client-api', 'throttle:api.client'])
->prefix('/api/client/extensions')
->scopeBindings()
->group(base_path('routes/blueprint/client.php'));
});

Route::middleware('web')->group(function () {
Route::middleware(['auth.session', RequireTwoFactorAuthentication::class])
->group(base_path('routes/base.php'));

Route::middleware(['auth.session', RequireTwoFactorAuthentication::class, AdminAuthenticate::class])
->prefix('/admin')
->group(base_path('routes/admin.php'))
->group(base_path('routes/blueprint.php')); // Import Blueprint admin routes
?php

namespace Pterodactyl\Providers;

use Illuminate\Http\Request;
use Pterodactyl\Models\Database;
use Illuminate\Support\Facades\Route;
use Illuminate\Cache\RateLimiting\Limit;
use Illuminate\Support\Facades\RateLimiter;
use Pterodactyl\Http\Middleware\TrimStrings;
use Pterodactyl\Http\Middleware\AdminAuthenticate;
use Pterodactyl\Http\Middleware\RequireTwoFactorAuthentication;
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;

class RouteServiceProvider extends ServiceProvider
{
protected const FILE_PATH_REGEX = '/^\/api\/client\/servers\/([a-z0-9-]{36})\/files(\/?$|\/(.)*$)/i';

/**
* Define your route model bindings, pattern filters, etc.
*/
public function boot(): void
{
$this->configureRateLimiting();

// Disable trimming string values when requesting file information — it isn't helpful
// and messes up the ability to actually open a directory that ends with a space.
TrimStrings::skipWhen(function (Request $request) {
return preg_match(self::FILE_PATH_REGEX, $request->getPathInfo()) === 1;
});

// This is needed to make use of the "resolveRouteBinding" functionality in the
// model. Without it you'll never trigger that logic flow thus resulting in a 404
// error because we request databases with a HashID, and not with a normal ID.
Route::model('database', Database::class);

$this->routes(function () {
/* Blueprint web routes */
Route::middleware('blueprint')
->prefix('/extensions')
->group(base_path('routes/blueprint/web.php'));

/* Blueprint API routes */
Route::middleware(['blueprint/api', RequireTwoFactorAuthentication::class])->group(function () {
/* Application API */
Route::middleware(['blueprint/application-api', 'throttle:api.application'])
->prefix('/api/application/extensions')
->scopeBindings()
->group(base_path('routes/blueprint/application.php'));
/* Client API */
Route::middleware(['blueprint/client-api', 'throttle:api.client'])
->prefix('/api/client/extensions')
->scopeBindings()
->group(base_path('routes/blueprint/client.php'));
});

Route::middleware('web')->group(function () {
Route::middleware(['auth.session', RequireTwoFactorAuthentication::class])
->group(base_path('routes/base.php'));

Route::middleware(['auth.session', RequireTwoFactorAuthentication::class, AdminAuthenticate::class])
->prefix('/admin')
->group(base_path('routes/admin.php'))
->group(base_path('routes/blueprint.php')); // Import Blueprint admin routes
this is the beggining of it im not sure if there's anything different really
Emma
Emma16mo ago
you should be able to update without getting that error just skip the artisan down command
Pedro Pagani
Pedro PaganiOP16mo ago
should I RUn everything with root? thats something that got me confused when doing the getcompositor thing my php is PHP 8.1.25 (cli) (built: Oct 27 2023 14:00:18) (NTS)
Emma
Emma16mo ago
yeah that should be fine
Pedro Pagani
Pedro PaganiOP16mo ago
@lunat is that your php version too
lunat
lunat16mo ago
8.1.27
Pedro Pagani
Pedro PaganiOP16mo ago
ok when i did the update my panel got back and my addon for categories is gone ok, my panel is working when doing the upgrade can you try reinstalling with the upgrade lunat i am kind of running like 100 instances on prod rn with a bunch of db reliance stuff very scary to do this now
lunat
lunat16mo ago
Hold on I did not clear out my ptero directory after doing original install so the panel.tar.gz download and unpack is failing can I just append --overwrite to: curl -L https://github.com/pterodactyl/panel/releases/latest/download/panel.tar.gz | tar -xzv
Pedro Pagani
Pedro PaganiOP16mo ago
@Emma will have to answer that
lunat
lunat16mo ago
Example:
lnort@Ubuntu-2204-jammy-amd64-base:/var/www/pterodactyl$ sudo curl -L https://gi thub.com/pterodactyl/panel/releases/latest/download/panel.tar.gz | tar -xzv
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0BU ILDING.md
tar: BUILDING.md: Cannot open: File exists
CHANGELOG.md
tar: CHANGELOG.md: Cannot open: File exists
Dockerfile
tar: Dockerfile: Cannot open: File exists
LICENSE.md
tar: LICENSE.md: Cannot open: File exists
README.md
tar: README.md: Cannot open: File exists
SECURITY.md
tar: SECURITY.md: Cannot open: File exists
app/
app/Notifications/
app/Notifications/AddedToServer.php
tar: app/Notifications/AddedToServer.php: Cannot open: File exists
app/Notifications/MailTested.php
tar: app/Notifications/MailTested.php: Cannot open: File exists
app/Notifications/SendPasswordReset.php
tar: app/Notifications/SendPasswordReset.php: Cannot open: File exists
app/Notifications/AccountCreated.php
tar: app/Notifications/AccountCreated.php: Cannot open: File exists
app/Notifications/RemovedFromServer.php
tar: app/Notifications/RemovedFromServer.php: Cannot open: File exists
app/Notifications/ServerInstalled.php
tar: app/Notifications/ServerInstalled.php: Cannot open: File exists
app/Rules/
tar: app/Notifications: Cannot utime: Operation not permitted
app/Rules/Fqdn.php
tar: app/Rules/Fqdn.php: Cannot open: File exists
app/Rules/Username.php
tar: app/Rules/Username.php: Cannot open: File exists
app/Repositories/
tar: app/Rules: Cannot utime: Operation not permitted
app/Repositories/Eloquent/
app/Repositories/Eloquent/TaskRepository.php
tar: app/Repositories/Eloquent/TaskRepository.php: Cannot open: File exists
app/Repositories/Eloquent/LocationRepository.php
lnort@Ubuntu-2204-jammy-amd64-base:/var/www/pterodactyl$ sudo curl -L https://gi thub.com/pterodactyl/panel/releases/latest/download/panel.tar.gz | tar -xzv
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0BU ILDING.md
tar: BUILDING.md: Cannot open: File exists
CHANGELOG.md
tar: CHANGELOG.md: Cannot open: File exists
Dockerfile
tar: Dockerfile: Cannot open: File exists
LICENSE.md
tar: LICENSE.md: Cannot open: File exists
README.md
tar: README.md: Cannot open: File exists
SECURITY.md
tar: SECURITY.md: Cannot open: File exists
app/
app/Notifications/
app/Notifications/AddedToServer.php
tar: app/Notifications/AddedToServer.php: Cannot open: File exists
app/Notifications/MailTested.php
tar: app/Notifications/MailTested.php: Cannot open: File exists
app/Notifications/SendPasswordReset.php
tar: app/Notifications/SendPasswordReset.php: Cannot open: File exists
app/Notifications/AccountCreated.php
tar: app/Notifications/AccountCreated.php: Cannot open: File exists
app/Notifications/RemovedFromServer.php
tar: app/Notifications/RemovedFromServer.php: Cannot open: File exists
app/Notifications/ServerInstalled.php
tar: app/Notifications/ServerInstalled.php: Cannot open: File exists
app/Rules/
tar: app/Notifications: Cannot utime: Operation not permitted
app/Rules/Fqdn.php
tar: app/Rules/Fqdn.php: Cannot open: File exists
app/Rules/Username.php
tar: app/Rules/Username.php: Cannot open: File exists
app/Repositories/
tar: app/Rules: Cannot utime: Operation not permitted
app/Repositories/Eloquent/
app/Repositories/Eloquent/TaskRepository.php
tar: app/Repositories/Eloquent/TaskRepository.php: Cannot open: File exists
app/Repositories/Eloquent/LocationRepository.php
Pedro Pagani
Pedro PaganiOP16mo ago
ah run that fully with root user i also got that sudo su worked for me just fine
lunat
lunat16mo ago
ok trying root user thanks king proceeding.. my panel now works @Pedro Pagani
Pedro Pagani
Pedro PaganiOP16mo ago
try the blueprint install again maybe its because we were with outdated panel
lunat
lunat16mo ago
Working on it now
lnort@Ubuntu-2204-jammy-amd64-base:/var/www/pterodactyl$ sudo bash blueprint.sh
12:28:19 FATAL: Installation process has already been finished before, consider using the 'blueprint' command.
lnort@Ubuntu-2204-jammy-amd64-base:/var/www/pterodactyl$ sudo bash blueprint.sh
12:28:19 FATAL: Installation process has already been finished before, consider using the 'blueprint' command.
Should I simply run
blueprint -upgrade remote blueprintframework/fallback
blueprint -upgrade remote blueprintframework/fallback
Emma
Emma16mo ago
yeah
Pedro Pagani
Pedro PaganiOP16mo ago
yes
lunat
lunat16mo ago
zero error. well done Pedro! thanks for help Ivy
Pedro Pagani
Pedro PaganiOP16mo ago
that'd be a nice thing to go to the script some sort of get latest ptero version and don't allow to run until on the latest ahm
Emma
Emma16mo ago
i am legally obligated to ask for github stars now :v perchance
Pedro Pagani
Pedro PaganiOP16mo ago
hell yeah will do @Emmado you develop themes/addons for the platform too?
Emma
Emma16mo ago
Yeah.
lunat
lunat16mo ago
send me your link I starred here https://github.com/BlueprintFramework/framework
Lovinoes
Lovinoes16mo ago
ok
Emma
Emma16mo ago
yeah was referring to that repo thanks :v
Pedro Pagani
Pedro PaganiOP16mo ago
you should add an extension for categories i have like 140 servers
Emma
Emma16mo ago
oh no lol
Pedro Pagani
Pedro PaganiOP16mo ago
and categories help a lot
Emma
Emma16mo ago
there is at least a "reorder servers" extension which might help
Pedro Pagani
Pedro PaganiOP16mo ago
No description
Pedro Pagani
Pedro PaganiOP16mo ago
like at the top we used to have some buttons there on the header part
Emma
Emma16mo ago
yeah i understand what you mean
Pedro Pagani
Pedro PaganiOP16mo ago
yeah ill buy that one later im concerned about how it does the stuff though does it change the Internal Identifier?
Emma
Emma16mo ago
browser-side sadly
Pedro Pagani
Pedro PaganiOP16mo ago
that one is browser side?
Emma
Emma16mo ago
well it basically saves the order in the browser through localstorage i don't think so
Pedro Pagani
Pedro PaganiOP16mo ago
yeah sad
RedOps
RedOps16mo ago
i was having the same error, but i found this at the line 64: ->group(base_path('routes/blueprint.php')); // Import Blueprint admin routes
RedOps
RedOps16mo ago
No description
RedOps
RedOps16mo ago
@Emma
Emma
Emma16mo ago
No need to mention me - I've read your message and didn't respond because I'm not always available. Make sure you are running a up-to-date version of Pterodactyl.
RedOps
RedOps16mo ago
im sorry, i just followed the instruction up here, i just did the update to 1.11.7 do i need to migrate my database?
Emma
Emma16mo ago
yes.
RedOps
RedOps16mo ago
got no error this time while reinstalling, but cant access from the web i see the main page, but at the second i click somewhere im getting error 500 server error nvm i did a rerun install
Emma
Emma16mo ago
you'd want a blueprint -upgrade remote blueprintframework/fallback instead
RedOps
RedOps16mo ago
i did, didnt work correctly, but nw its all working
Emma
Emma16mo ago
alrighty im legally obligated to ask for github stars
RedOps
RedOps16mo ago
whats that?
Emma
Emma16mo ago
basically likes but on github helps grow the project
RedOps
RedOps16mo ago
i will, but small question for you, it's says we have by default 2 files (conf.yml and admin.blade.php), but on my side, i have (conf.yml and view.blade.php)
Emma
Emma16mo ago
could you link me the page? didn't update the website to reflect the new filename changes in the barebones template
Emma
Emma16mo ago
alright gimme a bit i'll update it - in the meantime look for view.blade.php every time admin.blade.php is mentioned
RedOps
RedOps16mo ago
thanks
Emma
Emma16mo ago
done
Nelly
Nelly16mo ago
No description
Nelly
Nelly16mo ago
@Emma
Emma
Emma16mo ago
. scroll up a bit and try solutions mentioned in this thread
Nelly
Nelly16mo ago
Sorry, let me ask you, which version should be used on the pterodactyl?
Emma
Emma16mo ago
1.11.5-1.11.7 as mentioned before in this thread

Did you find this page helpful?