Login issue after deploying
Hi, I deployed a website this week, and I can't login to the filament panel, I know there is a modification to make in the User model, I did it, I don't have a 403 error, it just do nothing..
With the host, I don't have a terminal to write command, so I can't do composer install, php artisan etc...., it's really boring but I had to upload all the file on the server using FTP, I manually add the symlink for livewire (with php
symlink()
method in a /foo route), which is loaded, did I miss something ?
In an another host, that have a terminal, I was able to perform all the commands and the login works perfectly
But I can't find what's missing, I don't remember the need to use a special command for filament when deploying
If you want to try, check the console or anything, here is the url https://clairec-skinbeauty.fr/admin/login25 Replies
I think the command you're referring to is
php artisan filament:assets
... which basically copies the assets from Filament's vendor directory into your app's public/js
and public/css
directories. You can do that on your local PC and then upload those directories to your server, and not have to run the command on the server.Hi, thx for your replied, unfortunately, I tried and it doesn't work
Could this be relatet to your issue?
https://v2.filamentphp.com/tricks/admin-403-in-production
Filament
Admin panel 403 in production by Dan Harrin - Tricks - Filament
Filament is a collection of tools for rapidly building beautiful TALL stack apps, designed for humans.
No, I did this, the panel works on another host. I don't get any errors, it just don't log me in, without any messages
Can you verify in your database that the user exists?
Yes there is the user
If I enter wrong entries in the log in, I'll get the error message
But in my case, there is no message, nothing, the page just reload like nothing happen
Can it be that. you don't have any rights and therefore you're not allowed in?
Or maybe check access logs
double check the
canAccessPanel
functionHow can I verify that ? Like I said, the same code works on another host, I'm not sure it's a code problem, maybe more a file, dependency one
ssh into your server and check if it looks as expected maybe?
I don't have SSH access with the offer the customer took, so I can only use small amount of commands directly in php, in laravel, in a route
Like but the filament artisan commands don't work and return a 500 server error
That sucks
Yeah XD
So error logs are also not available?
For the login there is no error so no, for the commands there is an entry in the laravel log file in storage/logs that pretty much says "PRODUCTION errors, the commands "filament blabla" doesn't exist"
Can it be that composer didn't run on production?
I would Advise you to change the hosing to an environment you have control over
Unfortunately, the client chose a first price hosting plane, the one with SSH access is a lot more expensive, show won't want to pay more for only one functionnality
did you try enabling debug mode to see what's going on?
Just tried, doesn't give me any info
the page juste reload itself, without any error message
I see 2 Livewire, so I don't think the issue's coming from a livewire installation
so when you make the login, nothing happens?
Nop, it's loading some ms, then the page reload and the page is as clean as the first page load