[bug] admin-fe redirects to pleroma-fe with missing timeline #385

Closed
opened 2022-12-20 23:14:16 +00:00 by zimpenfish · 9 comments

Your setup

From source

Extra details

Arch Linux

Version

develop 4a78c431cf

PostgreSQL version

14.5

What were you trying to do?

Migrated from Pleroma to Akkoma as per documentation but admin-fe was just showing pleroma-fe without a timeline.

Cloned a fresh Akkoma at 4a78c43, copied over prod.secret.exs, installed admin-fe with MIX_ENV=prod mix pleroma.frontend install admin-fe, and restarted.

Sadly it did the same.

What did you expect to happen?

admin-fe to show as per previous Pleroma installation.

What actually happened?

admin-fe not working on Akkoma

Essentially the normal pleroma-fe but with the timeline missing.

Mildly inconvenient since now I can't do any configuration as it's all db-based.

Logs

No response

Severity

I cannot use it as easily as I'd like

Have you searched for this issue?

  • I have double-checked and have not found this issue mentioned anywhere.
### Your setup From source ### Extra details Arch Linux ### Version develop 4a78c431cfe1373ba09a3c02bc56502063975890 ### PostgreSQL version 14.5 ### What were you trying to do? Migrated from Pleroma to Akkoma as per documentation but admin-fe was just showing pleroma-fe without a timeline. Cloned a fresh Akkoma at 4a78c43, copied over `prod.secret.exs`, installed admin-fe with `MIX_ENV=prod mix pleroma.frontend install admin-fe`, and restarted. Sadly it did the same. ### What did you expect to happen? admin-fe to show as per previous Pleroma installation. ### What actually happened? ![admin-fe not working on Akkoma](https://rjp.is/akkoma-admin-weirdness.jpg) Essentially the normal pleroma-fe but with the timeline missing. Mildly inconvenient since now I can't do any configuration as it's all db-based. ### Logs _No response_ ### Severity I cannot use it as easily as I'd like ### Have you searched for this issue? - [x] I have double-checked and have not found this issue mentioned anywhere.
zimpenfish added the
bug
label 2022-12-20 23:14:16 +00:00

putting odds of 2/1 on your ref being wrong

try adding --ref stable to the adminFE installation command

or if you had that already, use --ref develop

putting odds of 2/1 on your ref being wrong try adding `--ref stable ` to the adminFE installation command or if you had that already, use --ref develop
floatingghost added
help wanted
not a bug
and removed
bug
labels 2022-12-20 23:17:00 +00:00
Author

--stable didn't work.

Downloading admin-fe (stable)...
Could not download or unzip the frontend

But --develop did do an installation, thanks!

Unfortunately now it just puts "Request failed with status code 404 - Not implemented" over every admin page and leaves them essentially blank; e.g. the users page shows no users.

Presumably there's something I've not twiddled to enable this but the documentation doesn't mention anything else to do.

`--stable` didn't work. ``` Downloading admin-fe (stable)... Could not download or unzip the frontend ``` But `--develop` did do an installation, thanks! Unfortunately now it just puts "Request failed with status code 404 - Not implemented" over every admin page and leaves them essentially blank; e.g. the users page shows no users. Presumably there's something I've not twiddled to enable this but the documentation doesn't mention anything else to do.

the flag isn't --develop, it's --ref develop

but that makes it simple, you're serving stable adminfe on a develop install, which is awkward to get out of

your easiest path out of this is to do the following:

MIX_ENV=prod mix pleroma.frontend install admin-fe --ref develop
cp -r instance/static/frontends/admin-fe/develop instance/static/frontends/admin-fe/stable

then you should be able to access your admin-fe

the flag isn't `--develop`, it's `--ref develop` but that makes it simple, you're serving stable adminfe on a develop install, which is awkward to get out of your easiest path out of this is to do the following: ``` MIX_ENV=prod mix pleroma.frontend install admin-fe --ref develop cp -r instance/static/frontends/admin-fe/develop instance/static/frontends/admin-fe/stable ``` then you should be able to access your admin-fe

once you've done that, i recommend changing the ref of admin-fe to develop so this doesn't happen again

once you've done that, i recommend changing the `ref` of `admin-fe` to `develop` so this doesn't happen again
Author

the flag isn't --develop, it's --ref develop

Ah, sorry, I was just shorthanding - I promise I did the actual --ref develop on the command line.

MIX_ENV=prod mix pleroma.frontend install admin-fe --ref develop
cp -r instance/static/frontends/admin-fe/develop instance/static/frontends/admin-fe/stable

then you should be able to access your admin-fe

I can access it fine - it's just throwing 404 Not Implemented errors on every page and not giving me anything to actually admin.

Looking at the network requests, it seems that the /api/ in https://social.rjp.is/api/pleroma/admin/users?page=1&filters=local,active is causing the 404. Double-checked my nginx proxy against the supplied one to make sure it's not something weird left over from Pleroma.

Just really confusing.

> the flag isn't `--develop`, it's `--ref develop` Ah, sorry, I was just shorthanding - I promise I did the actual `--ref develop` on the command line. > ``` > MIX_ENV=prod mix pleroma.frontend install admin-fe --ref develop > cp -r instance/static/frontends/admin-fe/develop instance/static/frontends/admin-fe/stable > ``` > > then you should be able to access your admin-fe I can access it fine - it's just throwing 404 Not Implemented errors on every page and not giving me anything to actually admin. Looking at the network requests, it seems that the `/api/` in `https://social.rjp.is/api/pleroma/admin/users?page=1&filters=local,active` is causing the 404. Double-checked my nginx proxy against the supplied one to make sure it's not something weird left over from Pleroma. Just really confusing.

the steps above are to remove the error, you have a version mismatch, as stated

the steps above are to remove the error, you have a version mismatch, as stated
Author

I followed those steps. Just to be sure, I removed any trace of admin-fe from instance/static/frontends and ran those steps again.

Specifically:

MIX_ENV=prod mix pleroma.frontend install admin-fe --ref develop
cp -r instance/static/frontends/admin-fe/develop instance/static/frontends/admin-fe/stable

Restarted Akkoma just to be sure and I'm still getting the 404 Not Implemented errors all over the admin pages.

I followed those steps. Just to be sure, I removed any trace of admin-fe from `instance/static/frontends` and ran those steps again. Specifically: ``` MIX_ENV=prod mix pleroma.frontend install admin-fe --ref develop cp -r instance/static/frontends/admin-fe/develop instance/static/frontends/admin-fe/stable ``` Restarted Akkoma just to be sure and I'm still getting the 404 Not Implemented errors all over the admin pages.

ok i just looked at your instance

you're still using pleroma's frontends, nothing has been updated to our builds

just MIX_ENV=prod mix pleroma.config delete pleroma frontends and reinstall the FEs

ok i just looked at your instance you're still using pleroma's frontends, nothing has been updated to our builds just `MIX_ENV=prod mix pleroma.config delete pleroma frontends` and reinstall the FEs
Author

Aha, that worked. And I guess that also explains why the --ref stable didn't download because it was using the Pleroma git (via the database) to fetch instead of the Akkoma git.

Thank you kindly. I'll try and make some time tomorrow for a documentation patch to highlight this for anyone else migrating from Pleroma.

Aha, that worked. And I guess that also explains why the `--ref stable` didn't download because it was using the Pleroma git (via the database) to fetch instead of the Akkoma git. Thank you kindly. I'll try and make some time tomorrow for a documentation patch to highlight this for anyone else migrating from Pleroma.
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: AkkomaGang/akkoma#385
No description provided.