[bug] Static FE has no effect/does not work #638

Open
opened 2023-08-30 17:44:37 +00:00 by verarr · 0 comments

Your setup

From source

Extra details

Arch Linux

Version

3.10.4

PostgreSQL version

15.3

What were you trying to do?

I've enabled Static FE from the Admin FE, and tried to access a user profile from a browser with JavaScript disabled.

What did you expect to happen?

Some kind of static page displays with user details. (I remember this worked in Pleroma)

What actually happened?

A blank page is displayed, the div with the id app is empty.

Logs

Enabling Static FE

18:56:14.596 request_id=F4CGKfGTkVeH2fMAABkB [debug] GET /api/v1/accounts/AWJtemorTD8JIuh7Pk/statuses
18:56:14.596 request_id=F4CGKfGTkVeH2fMAABkB [debug] Processing with Pleroma.Web.MastodonAPI.AccountController.statuses/2
  Parameters: %{"exclude_replies" => "1", "id" => "AWJtemorTD8JIuh7Pk", "limit" => "20", "with_muted" => "true"}
  Pipelines: [:api]
18:56:14.598 request_id=F4CGKfGTkVeH2fMAABkB [debug] QUERY OK source="oauth_tokens" db=1.6ms idle=1776.7ms
SELECT o0."id", o0."token", o0."refresh_token", o0."scopes", o0."valid_until", o0."user_id", o0."app_id", o0."inserted_at", o0."updated_at" FROM "oauth_tokens" AS o0 WHERE (o0."token" = $1) ["uGNSI9YQDNb_h3opsMeDJySZWkXAzeYvr25iF8HwD7M"]
18:56:14.600 request_id=F4CGKfGTkVeH2fMAABkB [debug] QUERY OK source="user_relationships" db=1.0ms idle=868.0ms
SELECT TRUE FROM "user_relationships" AS u0 WHERE (((u0."relationship_type" = $1) AND (u0."source_id" = $2)) AND (u0."target_id" = $3)) LIMIT 1 [:block, "AWJtemorTD8JIuh7Pk", "AWJtemorTD8JIuh7Pk"]
18:56:14.921 request_id=F4CGKgT9p6zGZX4AABkh [debug] POST /api/v1/pleroma/admin/config
18:56:14.922 request_id=F4CGKgT9p6zGZX4AABkh [debug] Processing with Pleroma.Web.AdminAPI.ConfigController.update/2
  Parameters: %{"configs" => [%{"group" => ":pleroma", "key" => ":static_fe", "value" => [%{"tuple" => [":enabled", true]}]}]}
  Pipelines: [:admin_api, :require_admin]
18:56:14.923 request_id=F4CGKgT9p6zGZX4AABkh [debug] QUERY OK source="oauth_tokens" db=0.6ms idle=1102.0ms
SELECT o0."id", o0."token", o0."refresh_token", o0."scopes", o0."valid_until", o0."user_id", o0."app_id", o0."inserted_at", o0."updated_at" FROM "oauth_tokens" AS o0 WHERE (o0."token" = $1) ["uGNSI9YQDNb_h3opsMeDJySZWkXAzeYvr25iF8HwD7M"]
18:56:14.924 request_id=F4CGKgT9p6zGZX4AABkh [debug] QUERY OK source="config" db=0.9ms idle=1103.1ms
SELECT c0."id", c0."key", c0."group", c0."value", c0."inserted_at", c0."updated_at" FROM "config" AS c0 WHERE ((c0."group" = $1) AND (c0."key" = $2)) [:pleroma, :static_fe]
18:56:15.393 request_id=F4CGKgT9p6zGZX4AABkh [debug] QUERY OK db=468.1ms queue=0.3ms idle=1104.2ms
INSERT INTO "config" ("value","group","key","inserted_at","updated_at") VALUES ($1,$2,$3,$4,$5) RETURNING "id" [[enabled: true], :pleroma, :static_fe, ~N[2023-08-31 16:56:14], ~N[2023-08-31 16:56:14]]
18:56:15.395 request_id=F4CGKgT9p6zGZX4AABkh [debug] QUERY OK source="config" db=1.4ms idle=1573.1ms
SELECT c0."id", c0."key", c0."group", c0."value", c0."inserted_at", c0."updated_at" FROM "config" AS c0 []

Requesting user profile

19:09:54.820 request_id=F4CG6Oq8UP-kdEQAADOC [debug] GET /verarr
19:09:54.820 request_id=F4CG6Oq8UP-kdEQAADOC [debug] Processing with Pleroma.Web.Fallback.RedirectController.redirector_with_meta/2
  Parameters: %{"maybe_nickname_or_id" => "verarr"}
  Pipelines: []
19:09:54.822 [debug] QUERY OK source="users" db=1.3ms idle=1996.5ms
SELECT u0."id", u0."bio", u0."raw_bio", u0."email", u0."name", u0."nickname", u0."password_hash", u0."keys", u0."public_key", u0."ap_id", u0."avatar", u0."local", u0."follower_address", u0."following_address", u0."featured_address", u0."tags", u0."last_refreshed_at", u0."last_digest_emailed_at", u0."banner", u0."background", u0."note_count", u0."follower_count", u0."following_count", u0."is_locked", u0."is_confirmed", u0."password_reset_pending", u0."is_approved", u0."registration_reason", u0."confirmation_token", u0."default_scope", u0."domain_blocks", u0."is_active", u0."no_rich_text", u0."ap_enabled", u0."is_moderator", u0."is_admin", u0."show_role", u0."mastofe_settings", u0."uri", u0."hide_followers_count", u0."hide_follows_count", u0."hide_followers", u0."hide_follows", u0."hide_favorites", u0."email_notifications", u0."mascot", u0."emoji", u0."pleroma_settings_store", u0."fields", u0."raw_fields", u0."is_discoverable", u0."invisible", u0."allow_following_move", u0."skip_thread_containment", u0."actor_type", u0."also_known_as", u0."inbox", u0."shared_inbox", u0."last_active_at", u0."disclose_client", u0."pinned_objects", u0."is_suggested", u0."last_status_at", u0."language", u0."status_ttl_days", u0."accepts_direct_messages_from", u0."notification_settings", u0."multi_factor_authentication_settings", u0."inserted_at", u0."updated_at" FROM "users" AS u0 WHERE (u0."id" = $1) ["verarr"]
19:09:54.823 request_id=F4CG6Oq8UP-kdEQAADOC [debug] QUERY OK source="users" db=1.0ms idle=1998.1ms
SELECT u0."id", u0."bio", u0."raw_bio", u0."email", u0."name", u0."nickname", u0."password_hash", u0."keys", u0."public_key", u0."ap_id", u0."avatar", u0."local", u0."follower_address", u0."following_address", u0."featured_address", u0."tags", u0."last_refreshed_at", u0."last_digest_emailed_at", u0."banner", u0."background", u0."note_count", u0."follower_count", u0."following_count", u0."is_locked", u0."is_confirmed", u0."password_reset_pending", u0."is_approved", u0."registration_reason", u0."confirmation_token", u0."default_scope", u0."domain_blocks", u0."is_active", u0."no_rich_text", u0."ap_enabled", u0."is_moderator", u0."is_admin", u0."show_role", u0."mastofe_settings", u0."uri", u0."hide_followers_count", u0."hide_follows_count", u0."hide_followers", u0."hide_follows", u0."hide_favorites", u0."email_notifications", u0."mascot", u0."emoji", u0."pleroma_settings_store", u0."fields", u0."raw_fields", u0."is_discoverable", u0."invisible", u0."allow_following_move", u0."skip_thread_containment", u0."actor_type", u0."also_known_as", u0."inbox", u0."shared_inbox", u0."last_active_at", u0."disclose_client", u0."pinned_objects", u0."is_suggested", u0."last_status_at", u0."language", u0."status_ttl_days", u0."accepts_direct_messages_from", u0."notification_settings", u0."multi_factor_authentication_settings", u0."inserted_at", u0."updated_at" FROM "users" AS u0 WHERE (u0."ap_id" = $1) [""]
19:09:54.828 request_id=F4CG6Oq8UP-kdEQAADOC [debug] QUERY OK source="users" db=0.8ms idle=320.8ms
SELECT count(*) FROM "users" AS u0 WHERE (u0."last_active_at" >= $1) AND (u0."local" = TRUE) [~N[2023-08-01 17:09:54]]
19:09:54.832 request_id=F4CG6Oq8UP-kdEQAADOC [debug] QUERY OK source="users" db=1.7ms idle=8.8ms
SELECT u0."id", u0."bio", u0."raw_bio", u0."email", u0."name", u0."nickname", u0."password_hash", u0."keys", u0."public_key", u0."ap_id", u0."avatar", u0."local", u0."follower_address", u0."following_address", u0."featured_address", u0."tags", u0."last_refreshed_at", u0."last_digest_emailed_at", u0."banner", u0."background", u0."note_count", u0."follower_count", u0."following_count", u0."is_locked", u0."is_confirmed", u0."password_reset_pending", u0."is_approved", u0."registration_reason", u0."confirmation_token", u0."default_scope", u0."domain_blocks", u0."is_active", u0."no_rich_text", u0."ap_enabled", u0."is_moderator", u0."is_admin", u0."show_role", u0."mastofe_settings", u0."uri", u0."hide_followers_count", u0."hide_follows_count", u0."hide_followers", u0."hide_follows", u0."hide_favorites", u0."email_notifications", u0."mascot", u0."emoji", u0."pleroma_settings_store", u0."fields", u0."raw_fields", u0."is_discoverable", u0."invisible", u0."allow_following_move", u0."skip_thread_containment", u0."actor_type", u0."also_known_as", u0."inbox", u0."shared_inbox", u0."last_active_at", u0."disclose_client", u0."pinned_objects", u0."is_suggested", u0."last_status_at", u0."language", u0."status_ttl_days", u0."accepts_direct_messages_from", u0."notification_settings", u0."multi_factor_authentication_settings", u0."inserted_at", u0."updated_at" FROM "users" AS u0 WHERE (NOT (u0."nickname" IS NULL)) AND (NOT (u0."nickname" LIKE 'internal.%')) AND (u0."local" = $1) AND (u0."is_admin" OR u0."is_moderator") [true]
19:09:54.834 request_id=F4CG6Oq8UP-kdEQAADOC [debug] QUERY OK source="users" db=0.8ms queue=0.1ms idle=9.7ms
SELECT count(*) FROM "users" AS u0 WHERE (u0."last_active_at" >= $1) AND (u0."local" = TRUE) [~N[2023-08-01 17:09:54]]
19:09:54.835 request_id=F4CG6Oq8UP-kdEQAADOC [debug] QUERY OK source="users" db=0.7ms idle=10.4ms
SELECT count(*) FROM "users" AS u0 WHERE (u0."last_active_at" >= $1) AND (u0."local" = TRUE) [~N[2023-03-04 17:09:54]]
19:09:54.836 request_id=F4CG6Oq8UP-kdEQAADOC [debug] Sent 200 in 15ms
19:09:54.884 request_id=F4CG6O6Qt62y1j4AABBD [debug] GET /manifest.json
19:09:54.884 request_id=F4CG6O6Qt62y1j4AABBD [debug] Processing with Pleroma.Web.ManifestController.show/2
  Parameters: %{}
  Pipelines: [:api]
19:09:54.884 request_id=F4CG6O6Qt62y1j4AABBD [debug] Sent 200 in 443µs

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 3.10.4 ### PostgreSQL version 15.3 ### What were you trying to do? I've enabled Static FE from the Admin FE, and tried to access a user profile from a browser with JavaScript disabled. ### What did you expect to happen? Some kind of static page displays with user details. (I remember this worked in Pleroma) ### What actually happened? A blank page is displayed, the div with the id `app` is empty. ### Logs #### Enabling Static FE ``` 18:56:14.596 request_id=F4CGKfGTkVeH2fMAABkB [debug] GET /api/v1/accounts/AWJtemorTD8JIuh7Pk/statuses 18:56:14.596 request_id=F4CGKfGTkVeH2fMAABkB [debug] Processing with Pleroma.Web.MastodonAPI.AccountController.statuses/2 Parameters: %{"exclude_replies" => "1", "id" => "AWJtemorTD8JIuh7Pk", "limit" => "20", "with_muted" => "true"} Pipelines: [:api] 18:56:14.598 request_id=F4CGKfGTkVeH2fMAABkB [debug] QUERY OK source="oauth_tokens" db=1.6ms idle=1776.7ms SELECT o0."id", o0."token", o0."refresh_token", o0."scopes", o0."valid_until", o0."user_id", o0."app_id", o0."inserted_at", o0."updated_at" FROM "oauth_tokens" AS o0 WHERE (o0."token" = $1) ["uGNSI9YQDNb_h3opsMeDJySZWkXAzeYvr25iF8HwD7M"] 18:56:14.600 request_id=F4CGKfGTkVeH2fMAABkB [debug] QUERY OK source="user_relationships" db=1.0ms idle=868.0ms SELECT TRUE FROM "user_relationships" AS u0 WHERE (((u0."relationship_type" = $1) AND (u0."source_id" = $2)) AND (u0."target_id" = $3)) LIMIT 1 [:block, "AWJtemorTD8JIuh7Pk", "AWJtemorTD8JIuh7Pk"] 18:56:14.921 request_id=F4CGKgT9p6zGZX4AABkh [debug] POST /api/v1/pleroma/admin/config 18:56:14.922 request_id=F4CGKgT9p6zGZX4AABkh [debug] Processing with Pleroma.Web.AdminAPI.ConfigController.update/2 Parameters: %{"configs" => [%{"group" => ":pleroma", "key" => ":static_fe", "value" => [%{"tuple" => [":enabled", true]}]}]} Pipelines: [:admin_api, :require_admin] 18:56:14.923 request_id=F4CGKgT9p6zGZX4AABkh [debug] QUERY OK source="oauth_tokens" db=0.6ms idle=1102.0ms SELECT o0."id", o0."token", o0."refresh_token", o0."scopes", o0."valid_until", o0."user_id", o0."app_id", o0."inserted_at", o0."updated_at" FROM "oauth_tokens" AS o0 WHERE (o0."token" = $1) ["uGNSI9YQDNb_h3opsMeDJySZWkXAzeYvr25iF8HwD7M"] 18:56:14.924 request_id=F4CGKgT9p6zGZX4AABkh [debug] QUERY OK source="config" db=0.9ms idle=1103.1ms SELECT c0."id", c0."key", c0."group", c0."value", c0."inserted_at", c0."updated_at" FROM "config" AS c0 WHERE ((c0."group" = $1) AND (c0."key" = $2)) [:pleroma, :static_fe] 18:56:15.393 request_id=F4CGKgT9p6zGZX4AABkh [debug] QUERY OK db=468.1ms queue=0.3ms idle=1104.2ms INSERT INTO "config" ("value","group","key","inserted_at","updated_at") VALUES ($1,$2,$3,$4,$5) RETURNING "id" [[enabled: true], :pleroma, :static_fe, ~N[2023-08-31 16:56:14], ~N[2023-08-31 16:56:14]] 18:56:15.395 request_id=F4CGKgT9p6zGZX4AABkh [debug] QUERY OK source="config" db=1.4ms idle=1573.1ms SELECT c0."id", c0."key", c0."group", c0."value", c0."inserted_at", c0."updated_at" FROM "config" AS c0 [] ``` #### Requesting user profile ``` 19:09:54.820 request_id=F4CG6Oq8UP-kdEQAADOC [debug] GET /verarr 19:09:54.820 request_id=F4CG6Oq8UP-kdEQAADOC [debug] Processing with Pleroma.Web.Fallback.RedirectController.redirector_with_meta/2 Parameters: %{"maybe_nickname_or_id" => "verarr"} Pipelines: [] 19:09:54.822 [debug] QUERY OK source="users" db=1.3ms idle=1996.5ms SELECT u0."id", u0."bio", u0."raw_bio", u0."email", u0."name", u0."nickname", u0."password_hash", u0."keys", u0."public_key", u0."ap_id", u0."avatar", u0."local", u0."follower_address", u0."following_address", u0."featured_address", u0."tags", u0."last_refreshed_at", u0."last_digest_emailed_at", u0."banner", u0."background", u0."note_count", u0."follower_count", u0."following_count", u0."is_locked", u0."is_confirmed", u0."password_reset_pending", u0."is_approved", u0."registration_reason", u0."confirmation_token", u0."default_scope", u0."domain_blocks", u0."is_active", u0."no_rich_text", u0."ap_enabled", u0."is_moderator", u0."is_admin", u0."show_role", u0."mastofe_settings", u0."uri", u0."hide_followers_count", u0."hide_follows_count", u0."hide_followers", u0."hide_follows", u0."hide_favorites", u0."email_notifications", u0."mascot", u0."emoji", u0."pleroma_settings_store", u0."fields", u0."raw_fields", u0."is_discoverable", u0."invisible", u0."allow_following_move", u0."skip_thread_containment", u0."actor_type", u0."also_known_as", u0."inbox", u0."shared_inbox", u0."last_active_at", u0."disclose_client", u0."pinned_objects", u0."is_suggested", u0."last_status_at", u0."language", u0."status_ttl_days", u0."accepts_direct_messages_from", u0."notification_settings", u0."multi_factor_authentication_settings", u0."inserted_at", u0."updated_at" FROM "users" AS u0 WHERE (u0."id" = $1) ["verarr"] 19:09:54.823 request_id=F4CG6Oq8UP-kdEQAADOC [debug] QUERY OK source="users" db=1.0ms idle=1998.1ms SELECT u0."id", u0."bio", u0."raw_bio", u0."email", u0."name", u0."nickname", u0."password_hash", u0."keys", u0."public_key", u0."ap_id", u0."avatar", u0."local", u0."follower_address", u0."following_address", u0."featured_address", u0."tags", u0."last_refreshed_at", u0."last_digest_emailed_at", u0."banner", u0."background", u0."note_count", u0."follower_count", u0."following_count", u0."is_locked", u0."is_confirmed", u0."password_reset_pending", u0."is_approved", u0."registration_reason", u0."confirmation_token", u0."default_scope", u0."domain_blocks", u0."is_active", u0."no_rich_text", u0."ap_enabled", u0."is_moderator", u0."is_admin", u0."show_role", u0."mastofe_settings", u0."uri", u0."hide_followers_count", u0."hide_follows_count", u0."hide_followers", u0."hide_follows", u0."hide_favorites", u0."email_notifications", u0."mascot", u0."emoji", u0."pleroma_settings_store", u0."fields", u0."raw_fields", u0."is_discoverable", u0."invisible", u0."allow_following_move", u0."skip_thread_containment", u0."actor_type", u0."also_known_as", u0."inbox", u0."shared_inbox", u0."last_active_at", u0."disclose_client", u0."pinned_objects", u0."is_suggested", u0."last_status_at", u0."language", u0."status_ttl_days", u0."accepts_direct_messages_from", u0."notification_settings", u0."multi_factor_authentication_settings", u0."inserted_at", u0."updated_at" FROM "users" AS u0 WHERE (u0."ap_id" = $1) [""] 19:09:54.828 request_id=F4CG6Oq8UP-kdEQAADOC [debug] QUERY OK source="users" db=0.8ms idle=320.8ms SELECT count(*) FROM "users" AS u0 WHERE (u0."last_active_at" >= $1) AND (u0."local" = TRUE) [~N[2023-08-01 17:09:54]] 19:09:54.832 request_id=F4CG6Oq8UP-kdEQAADOC [debug] QUERY OK source="users" db=1.7ms idle=8.8ms SELECT u0."id", u0."bio", u0."raw_bio", u0."email", u0."name", u0."nickname", u0."password_hash", u0."keys", u0."public_key", u0."ap_id", u0."avatar", u0."local", u0."follower_address", u0."following_address", u0."featured_address", u0."tags", u0."last_refreshed_at", u0."last_digest_emailed_at", u0."banner", u0."background", u0."note_count", u0."follower_count", u0."following_count", u0."is_locked", u0."is_confirmed", u0."password_reset_pending", u0."is_approved", u0."registration_reason", u0."confirmation_token", u0."default_scope", u0."domain_blocks", u0."is_active", u0."no_rich_text", u0."ap_enabled", u0."is_moderator", u0."is_admin", u0."show_role", u0."mastofe_settings", u0."uri", u0."hide_followers_count", u0."hide_follows_count", u0."hide_followers", u0."hide_follows", u0."hide_favorites", u0."email_notifications", u0."mascot", u0."emoji", u0."pleroma_settings_store", u0."fields", u0."raw_fields", u0."is_discoverable", u0."invisible", u0."allow_following_move", u0."skip_thread_containment", u0."actor_type", u0."also_known_as", u0."inbox", u0."shared_inbox", u0."last_active_at", u0."disclose_client", u0."pinned_objects", u0."is_suggested", u0."last_status_at", u0."language", u0."status_ttl_days", u0."accepts_direct_messages_from", u0."notification_settings", u0."multi_factor_authentication_settings", u0."inserted_at", u0."updated_at" FROM "users" AS u0 WHERE (NOT (u0."nickname" IS NULL)) AND (NOT (u0."nickname" LIKE 'internal.%')) AND (u0."local" = $1) AND (u0."is_admin" OR u0."is_moderator") [true] 19:09:54.834 request_id=F4CG6Oq8UP-kdEQAADOC [debug] QUERY OK source="users" db=0.8ms queue=0.1ms idle=9.7ms SELECT count(*) FROM "users" AS u0 WHERE (u0."last_active_at" >= $1) AND (u0."local" = TRUE) [~N[2023-08-01 17:09:54]] 19:09:54.835 request_id=F4CG6Oq8UP-kdEQAADOC [debug] QUERY OK source="users" db=0.7ms idle=10.4ms SELECT count(*) FROM "users" AS u0 WHERE (u0."last_active_at" >= $1) AND (u0."local" = TRUE) [~N[2023-03-04 17:09:54]] 19:09:54.836 request_id=F4CG6Oq8UP-kdEQAADOC [debug] Sent 200 in 15ms 19:09:54.884 request_id=F4CG6O6Qt62y1j4AABBD [debug] GET /manifest.json 19:09:54.884 request_id=F4CG6O6Qt62y1j4AABBD [debug] Processing with Pleroma.Web.ManifestController.show/2 Parameters: %{} Pipelines: [:api] 19:09:54.884 request_id=F4CG6O6Qt62y1j4AABBD [debug] Sent 200 in 443µs ``` ### 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.
verarr added the
bug
label 2023-08-30 17:44:37 +00:00
verarr changed title from [bug] Static FE does not work to [bug] Static FE has no effect/does not work 2023-08-31 13:11:02 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
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#638
No description provided.