92 5.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. ---
  2. title: Error deleting duplicated OStatus profiles (nightly)
  3. author: notabug.org/postblue
  4. time: Thu, 21 Nov 2019 11:55:10 UTC
  5. status: closed
  6. ---
  7. author: notabug.org
  8. time: Thu, 21 Nov 2019 11:55:10 UTC
  9. content: -----
  10. I tried to launch the `scripts/upgrade.php` that tries to run, if it's correct, `plugins/OStatus/scripts/updateuris.php`. Sadly, it fails at deleting the duplicated OStatus profiles with a fatal error: ``` #!/usr/bin/env php Inspecting OStatus profiles... Error retrieving the real ID for oprofile:113572:Request timed out after 60 second(s) Error retrieving the real ID for oprofile:126874:Could not GET URL https://social.shnoulle.net/api/users/show/shnoulle.json. Error retrieving the real ID for oprofile:137937:Request timed out after 60 second(s) Error retrieving the real ID for oprofile:149258:Request timed out after 60 second(s) Error retrieving the real ID for oprofile:166510:Could not GET URL https://pirati.ca/api/users/show/test5.json. Error retrieving the real ID for oprofile:179297:Could not GET URL https://squeet.me/api/users/show/lwflouisa.json. Deleting duplicated OStatus profiles... PHP Fatal error: Uncaught TypeError: Argument 1 passed to Activitypub_explorer::lookup() must be of the type string, null given, called in /var/www/social/plugins/ActivityPub/lib/postman.php on line 430 and defined in /var/www/social/plugins/ActivityPub/lib/explorer.php:81 Stack trace: #0 /var/www/social/plugins/ActivityPub/lib/postman.php(430): Activitypub_explorer->lookup(NULL) #1 /var/www/social/plugins/ActivityPub/lib/postman.php(245): Activitypub_postman->to_inbox() #2 /var/www/social/plugins/ActivityPub/ActivityPubPlugin.php(975): Activitypub_postman->undo_like(Object(Notice)) #3 /var/www/social/lib/util/event.php(89): ActivityPubPlugin->onEndDisfavorNotice(Object(Profile), Object(Notice)) #4 /var/www/social/modules/Favorite/classes/Fave.php(128): Event::handle('EndDisfavorNoti...', Array) #5 /var/www/social/modules/Favorite/FavoriteModule.php(334): Fave->delete() #6 /var/www/social/lib/util/event.php(89): FavoriteModule->onNoticeDeleteRelated(Object(Notice)) #7 /var/www/social/classes/Notice.php(184): Event::handle('No in /var/www/social/plugins/ActivityPub/lib/explorer.php on line 81 ```
  11. -----
  12. author: notabug.org
  13. time: Thu, 21 Nov 2019 12:18:16 UTC
  14. content: -----
  15. Create the file ".ostatus_version.txt" in OStatus directory, you don't need to run that script, it was mostly to test something and try an idea
  16. -----
  17. author: notabug.org
  18. time: Thu, 21 Nov 2019 12:18:55 UTC
  19. content: -----
  20. OH, WAIT, that relates to this other issue: https://notabug.org/diogo/gnu-social/issues/90 ! :D
  21. -----
  22. author: notabug.org
  23. time: Thu, 21 Nov 2019 15:13:06 UTC
  24. content: -----
  25. > Create the file ".ostatus_version.txt" in OStatus directory Done, running `scripts/upgrade.php` skipped the OStatus check, thank you! Have I missed something in the documentation? ```txt $ php scripts/upgrade.php -f postblue@friedrich Ensuring all conversations have a URI...DONE. Upgrading core schema... Constraint checking Notice table... * notice_reply_to_fkey (reply_to => notice.id) * notice_repeat_of_fkey (repeat_of => notice.id) * notice_profile_id_fkey (profile_id => profile.id) DONE. Upgrading plugin schema...DONE. Ensuring all notices have a conversation ID...DONE. Skipping initConversation, fixed by previous upgrade. Ensuring all users have no empty strings for NULLs...DONE. Ensuring all groups have an URI...DONE. Running file iterations: * Ensuring width and height is set for supported local File objects...DONE. * Removing all local File_thumbnail entries without filename property...DONE. * Removing all local File_thumbnail entries without existing files...DONE. * Setting urlhash for File_thumbnail entries: DONE. * Ensuring all local files have the filehash field set...DONE. DONE. Ensuring all User_group entries have a Profile and profile_id...DONE. Ensuring all local user groups have a local_group...DONE. Skipping initNoticeReshare, fixed by previous upgrade. Ensuring all subscriptions have a URI...DONE. Ensuring all group memberships have a URI...DONE. Ensuring all profile tags have a corresponding list...DONE. Finding and possibly migrating Profile_prefs entries: DONE. Ensuring all faves have a URI...DONE. ``` > you don't need to run that script, it was mostly to test something and try an idea It was not intentional but called by `[root]/scripts/upgrade.php`. Moreover, the aforementioned `updateuris.php` is dupllicated in both `[root]/plugins/OStatus/scripts/` and `[root]/scripts/` folders.
  26. -----
  27. author: notabug.org
  28. time: Thu, 21 Nov 2019 15:33:31 UTC
  29. content: -----
  30. nightly is being a dev release for now so we aren't adding these small details to docs as it won't be permanent, should be removed in next commit... but I really should add a note stressing this to readme. I will leave this issue open because you've found an issue related to #90 during the execution of that script that we will have to diagnose.
  31. -----
  32. author: notabug.org
  33. time: Wed, 05 Aug 2020 17:03:40 UTC
  34. content: -----
  35. can be closed already.
  36. -----