Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing #14

Merged
merged 47 commits into from May 7, 2021
Merged

Testing #14

merged 47 commits into from May 7, 2021

Conversation

ericgaspar
Copy link
Member

@ericgaspar ericgaspar commented Apr 15, 2021

  • Upgrade to version alpha 53

@ericgaspar
Copy link
Member Author

!testme

@yunohost-bot
Copy link
Contributor

Alrighty!
Test Badge

@ericgaspar
Copy link
Member Author

From what I understand (thanks @benjaminbellamy for the explanations)

The app, after install, displays a 500 error page: that seems to be the expected behavior.

The CI fails tests because of error 500 :/

The app needs a post-install action -> /cp-install (.env config file as already database fields set, so we only need to finish install process with 4/4 page).

I can see two possible solutions

From castopod_ynh

  • Try to avoid post-install 4/4 page step (set admin, password, email, on manifest.json and achieve the post-install with cURL
    -> This doesn’t work yet… Not very used to this helper and I may have missed something o_O

From upstream app

  • Instead of displaying a 500 error page, the app could redirect directly to whatever wizard page is needed to finish post-install.

@ericgaspar
Copy link
Member Author

!testme

@yunohost-bot
Copy link
Contributor

Alrighty!
Test Badge

@ImaCrea
Copy link
Contributor

ImaCrea commented Apr 20, 2021

fingers crossed 🤞(infinite thanks to you @ericgaspar ! we can't wait to update our instance here 💎💎)

@ImaCrea
Copy link
Contributor

ImaCrea commented Apr 24, 2021

J'ai tenté de mettre à jour à partir de la branche testing.
Malgré que l'upgrade semble s'être bien passée, de l'autre côté Castopod semble moins content :
Capture d’écran 2021-04-24 à 13 15 19

:/ Je vais tenter d'investiguer et remonter ici d'éventuelles précisions.

@ImaCrea
Copy link
Contributor

ImaCrea commented Apr 24, 2021

C'est étrange ça semble marcher côté cp-admin mais certaines url renvoient vers une page d'erreur.. hm

Si ça peut aider voici le log:

ERROR - 2021-04-24 11:15:10 --> Table 'castopod.cp_activitypub_notes' doesn't exist
CRITICAL - 2021-04-24 11:15:10 --> Call to a member function getResult() on bool
#0 /var/www/castopod/app/Libraries/ActivityPub/Models/NoteModel.php(78): Michalsn\Uuid\UuidModel->findAll()
#1 /var/www/castopod/app/Controllers/Podcast.php(49): ActivityPub\Models\NoteModel->getActorNotes(NULL)
#2 /var/www/castopod/app/Controllers/Podcast.php(35): App\Controllers\Podcast->activity()
#3 /var/www/castopod/vendor/codeigniter4/codeigniter4/system/CodeIgniter.php(944): App\Controllers\Podcast->_remap('activity', 'AinsiVaLaVie')
#4 /var/www/castopod/vendor/codeigniter4/codeigniter4/system/CodeIgniter.php(444): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Podcast))
#5 /var/www/castopod/vendor/codeigniter4/codeigniter4/system/CodeIgniter.php(344): CodeIgniter\CodeIgniter->handleRequest(NULL, Object(Config\Cache), false)
#6 /var/www/castopod/public/index.php(50): CodeIgniter\CodeIgniter->run()
#7 {main}
ERROR - 2021-04-24 11:15:12 --> Table 'castopod.cp_activitypub_notes' doesn't exist
CRITICAL - 2021-04-24 11:15:12 --> Call to a member function getResult() on bool
#0 /var/www/castopod/app/Libraries/ActivityPub/Models/NoteModel.php(78): Michalsn\Uuid\UuidModel->findAll()
#1 /var/www/castopod/app/Controllers/Podcast.php(49): ActivityPub\Models\NoteModel->getActorNotes(NULL)
#2 /var/www/castopod/app/Controllers/Podcast.php(35): App\Controllers\Podcast->activity()
#3 /var/www/castopod/vendor/codeigniter4/codeigniter4/system/CodeIgniter.php(944): App\Controllers\Podcast->_remap('activity', 'AinsiVaLaVie')
#4 /var/www/castopod/vendor/codeigniter4/codeigniter4/system/CodeIgniter.php(444): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Podcast))
#5 /var/www/castopod/vendor/codeigniter4/codeigniter4/system/CodeIgniter.php(344): CodeIgniter\CodeIgniter->handleRequest(NULL, Object(Config\Cache), false)
#6 /var/www/castopod/public/index.php(50): CodeIgniter\CodeIgniter->run()
#7 {main}
ERROR - 2021-04-24 11:15:15 --> Table 'castopod.cp_activitypub_notes' doesn't exist
CRITICAL - 2021-04-24 11:15:15 --> Call to a member function getResult() on bool
#0 /var/www/castopod/app/Libraries/ActivityPub/Models/NoteModel.php(78): Michalsn\Uuid\UuidModel->findAll()
#1 /var/www/castopod/app/Controllers/Podcast.php(49): ActivityPub\Models\NoteModel->getActorNotes(NULL)
#2 /var/www/castopod/app/Controllers/Podcast.php(35): App\Controllers\Podcast->activity()
#3 /var/www/castopod/vendor/codeigniter4/codeigniter4/system/CodeIgniter.php(944): App\Controllers\Podcast->_remap('activity', 'AinsiVaLaVie')
#4 /var/www/castopod/vendor/codeigniter4/codeigniter4/system/CodeIgniter.php(444): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Podcast))
#5 /var/www/castopod/vendor/codeigniter4/codeigniter4/system/CodeIgniter.php(344): CodeIgniter\CodeIgniter->handleRequest(NULL, Object(Config\Cache), false)
#6 /var/www/castopod/public/index.php(50): CodeIgniter\CodeIgniter->run()
#7 {main}
ERROR - 2021-04-24 11:18:41 --> Table 'castopod.cp_activitypub_notes' doesn't exist
CRITICAL - 2021-04-24 11:18:41 --> Call to a member function getResult() on bool
#0 /var/www/castopod/app/Libraries/ActivityPub/Models/NoteModel.php(78): Michalsn\Uuid\UuidModel->findAll()
#1 /var/www/castopod/app/Controllers/Podcast.php(49): ActivityPub\Models\NoteModel->getActorNotes(NULL)
#2 /var/www/castopod/app/Controllers/Podcast.php(35): App\Controllers\Podcast->activity()
#3 /var/www/castopod/vendor/codeigniter4/codeigniter4/system/CodeIgniter.php(944): App\Controllers\Podcast->_remap('activity', 'AinsiVaLaVie')
#4 /var/www/castopod/vendor/codeigniter4/codeigniter4/system/CodeIgniter.php(444): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Podcast))
#5 /var/www/castopod/vendor/codeigniter4/codeigniter4/system/CodeIgniter.php(344): CodeIgniter\CodeIgniter->handleRequest(NULL, Object(Config\Cache), false)
#6 /var/www/castopod/public/index.php(50): CodeIgniter\CodeIgniter->run()
#7 {main}
ERROR - 2021-04-24 11:18:52 --> Table 'castopod.cp_activitypub_notes' doesn't exist
CRITICAL - 2021-04-24 11:18:52 --> Call to a member function getResult() on bool
#0 /var/www/castopod/app/Libraries/ActivityPub/Models/NoteModel.php(78): Michalsn\Uuid\UuidModel->findAll()
#1 /var/www/castopod/app/Controllers/Podcast.php(49): ActivityPub\Models\NoteModel->getActorNotes(NULL)
#2 /var/www/castopod/app/Controllers/Podcast.php(35): App\Controllers\Podcast->activity()
#3 /var/www/castopod/vendor/codeigniter4/codeigniter4/system/CodeIgniter.php(944): App\Controllers\Podcast->_remap('activity', 'AinsiVaLaVie')
#4 /var/www/castopod/vendor/codeigniter4/codeigniter4/system/CodeIgniter.php(444): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Podcast))
#5 /var/www/castopod/vendor/codeigniter4/codeigniter4/system/CodeIgniter.php(344): CodeIgniter\CodeIgniter->handleRequest(NULL, Object(Config\Cache), false)
#6 /var/www/castopod/public/index.php(50): CodeIgniter\CodeIgniter->run()
#7 {main}
ERROR - 2021-04-24 11:19:14 --> Table 'castopod.cp_activitypub_notes' doesn't exist
CRITICAL - 2021-04-24 11:19:14 --> Call to a member function getResult() on bool
#0 /var/www/castopod/app/Libraries/ActivityPub/Models/NoteModel.php(78): Michalsn\Uuid\UuidModel->findAll()
#1 /var/www/castopod/app/Controllers/Podcast.php(49): ActivityPub\Models\NoteModel->getActorNotes(NULL)
#2 /var/www/castopod/app/Controllers/Podcast.php(35): App\Controllers\Podcast->activity()
#3 /var/www/castopod/vendor/codeigniter4/codeigniter4/system/CodeIgniter.php(944): App\Controllers\Podcast->_remap('activity', 'AinsiVaLaVie')
#4 /var/www/castopod/vendor/codeigniter4/codeigniter4/system/CodeIgniter.php(444): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Podcast))
#5 /var/www/castopod/vendor/codeigniter4/codeigniter4/system/CodeIgniter.php(344): CodeIgniter\CodeIgniter->handleRequest(NULL, Object(Config\Cache), false)
#6 /var/www/castopod/public/index.php(50): CodeIgniter\CodeIgniter->run()
#7 {main}
CRITICAL - 2021-04-24 11:19:25 --> Vous n’avez pas les autorisations nécessaires pour accéder à cette page.
#0 /var/www/castopod/vendor/codeigniter4/codeigniter4/system/Filters/Filters.php(181): App\Filters\PermissionFilter->before(Object(CodeIgniter\HTTP\IncomingRequest), Array)
#1 /var/www/castopod/vendor/codeigniter4/codeigniter4/system/CodeIgniter.php(415): CodeIgniter\Filters\Filters->run('cp-admin/fedive...', 'before')
#2 /var/www/castopod/vendor/codeigniter4/codeigniter4/system/CodeIgniter.php(344): CodeIgniter\CodeIgniter->handleRequest(NULL, Object(Config\Cache), false)
#3 /var/www/castopod/public/index.php(50): CodeIgniter\CodeIgniter->run()
#4 {main}
CRITICAL - 2021-04-24 11:19:54 --> Vous n’avez pas les autorisations nécessaires pour accéder à cette page.
#0 /var/www/castopod/vendor/codeigniter4/codeigniter4/system/Filters/Filters.php(181): App\Filters\PermissionFilter->before(Object(CodeIgniter\HTTP\IncomingRequest), Array)
#1 /var/www/castopod/vendor/codeigniter4/codeigniter4/system/CodeIgniter.php(415): CodeIgniter\Filters\Filters->run('cp-admin/fedive...', 'before')
#2 /var/www/castopod/vendor/codeigniter4/codeigniter4/system/CodeIgniter.php(344): CodeIgniter\CodeIgniter->handleRequest(NULL, Object(Config\Cache), false)
#3 /var/www/castopod/public/index.php(50): CodeIgniter\CodeIgniter->run()
#4 {main}

On dirait que des choses manquent :/ Je vais restore un backup en attendant. En espérant que ce retour aide ^^

J'essayais de mettre à jour depuis v1.0.0-alpha.41

@ImaCrea
Copy link
Contributor

ImaCrea commented Apr 25, 2021

@ImaCrea
Copy link
Contributor

ImaCrea commented Apr 27, 2021

fyi -> https://code.podlibre.org/podlibre/castopod-host/-/issues/115

For your info, I couldn't update easily. Yassine from Castopod's team shared a few hints to make it work, it's all documented in their repo.

On my side, we were ok to restart from zero at this point (lucky we are!) so I installed a fresh clean install from this branch. It seems to run smoothly! Thank you for your precious contribution @ericgaspar :) Hopefully next updates will be smoother 🤞

@ericgaspar
Copy link
Member Author

!testme

@yunohost-bot
Copy link
Contributor

🚀
Test Badge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants