filament:install Error 255
I am attempting to upgrade from docker filament v2 to v3. The following plugins installed:
awcodes/overlook
bezhansalleh/filament-shield
kenepa/resource-lock
z3d0x/filament-logger
dutchcodingcompany/filament-socialite
I had to remove all the plugins when upgrading to livewire v3 as they were causing dependency conflicts. Once I upgraded livewire, I ran the filamentv3 upgrade script provided in the docs and all looked well. I upgraded filament in composer.json and added all my plugins, and ran
composer update
. Once that was completed I attempted to run php artisan filament:install
I get "Error: 255", see the console output below
I get the same error when running php artisan view:clear
Solution:Jump to solution
It was a permissions issue I think, when I initially setup this project I had setup my artisan container incorrectly. Fixed that and it worked fine after that. I am upgraded to Filament 3. Though now I am having styling issues
16 Replies
I'm not really sure where to look to solve the issue. Seems like error 255 is just a generic "I don't know what to do" type of error?
did you upgrade all your plugin versions too.
yes I did, I just noticed that I had done things out of order compared to the docs. I had upgraded livewire first instead of filament first which caused those dependency issues. So I reset everything back to my latest commit and tried again. This time
1. Upgrade filament with upgrade package
2. Update all plugins to the latest version
3. Update Livewire to V3
4. run
artisan filament:install
Error: 255
still returned
Is the last step of the install command to clear view cache?i think you need to upgrade filament without the plugins, run the install, then upgrade the plugins after that.
ok I will try that
New major version updates aren’t usually easy.
yeah I'm aware lol
Same error. I will revert back to last good commit and try again
Same error still
I'm going to double check if I am able to run
artisan view:clear
before the upgradeI get the error before the upgrade as well....
hmm. then something in you app is off and causing composer / artisan to error out.
yes I will look into that and reply back here with my findings
pending something weird in the app like a missing comma or something along those lines this should make the upgrade pretty seemless,
Solution
It was a permissions issue I think, when I initially setup this project I had setup my artisan container incorrectly. Fixed that and it worked fine after that. I am upgraded to Filament 3. Though now I am having styling issues
Maybe a cash issue. Or try filament:assets.
If you have a custom theme you’ll need to rebuild too.
I didn't think this project had a custom theme but apparently it did. I'm not sure what I was thinking back when I set this up initially but I had defined a custom theme that was just pulling in the filament.css file from the vendor directory? After performing a search for
filament.css
I was able to see that in the app service provider I was calling Filament::registerViteTheme('resources/css/filament.css');
, removing that allowed the proper styles to load.Thanks for your help with this, I really appreciate it!