My Problem
After app update from tandoor 1.5.10~ynh1 to tandoor 1.5.11~ynh2 i can not edit my recipes any more (stapled dots menu on the right of the title section of the recipeis tile is missing).
My Research
i am very positive to be facing the same issue as described in tandoor forum.
but it is not well solved there. they do a good job in analyzing it as an issue with user permissions. but it reads to me as if they workaround by removing a user and then run their docker by root.
i would prefer to solve it cleanly by repairing the non-root users permissions. but my knowledge lacks to know where to do this.
every hint warmly welcome!
My Logs
let me know if you need more description after you checked out the log of the tandoor update that broke the permissions here: https://paste.yunohost.org/raw/ejavufirat
the yunohost update report contains three sub-operations concerning permissions:
General Info Hardware: Dell Wyse Thinclient 5010 2GB RAM bare-metal amd64 YunoHost version: 11.2.9.1 I have access to my server : Through SSH and through the webadmin and if necessary direct access via keyboard Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no If your request is related to an app, specify its name and version: tandoor app update from tandoor 1.5.10~ynh1 to tandoor 1.5.11~ynh2
UPDATE july 9th 2024: todays yunohost-tandoor-update (to 1.5.18~ynh1) fixed this for me.
UPDATE january 31st 2024: in tandoors github a ācollaboratorā suggests:
If you are unable to edit it is because your app is deployed incorrectly. ā¦ If it is because you have changed the container to run as a non-root user this is unsupported and you will need to change it back.
how would i do this (change back the permissions of the user running tandoor) in yunohost? (i am afraid to try and error this on my yunohost installation and thereby risking to brake it.)
The app is not running in docker in Yunohost installation so this is very unlikely to be the cause here.
Can you please share app logs (available in webadmin->tools->services->Tandoor) for any obvious problems?
Is network tab of developer tools in your browser of choice showing any non-200 return codes?
thanks for your request for further information. here you go: latest app log and: indeed, there are a bunch of āTypeError: window.Urls[e] is not a functionā. i am not allowed to upload the whole console export file. but here is one of them, there are 20+, identical as far as i can manually read:
TypeError: window.Urls[e] is not a function
m https://rezepte.mois.noho.st/static/vue/js/recipe_search_view.a3f4f27d1d61.js:1
resolveDjangoUrl https://rezepte.mois.noho.st/static/vue/js/recipe_search_view.a3f4f27d1d61.js:1
i https://rezepte.mois.noho.st/static/vue/js/recipe_search_view.a3f4f27d1d61.js:1
_render https://rezepte.mois.noho.st/static/vue/js/chunk-vendors.ec4fffc9516b.js:1054
r https://rezepte.mois.noho.st/static/vue/js/chunk-vendors.ec4fffc9516b.js:1054
get https://rezepte.mois.noho.st/static/vue/js/chunk-vendors.ec4fffc9516b.js:1054
t https://rezepte.mois.noho.st/static/vue/js/chunk-vendors.ec4fffc9516b.js:1054
Pn https://rezepte.mois.noho.st/static/vue/js/chunk-vendors.ec4fffc9516b.js:1054
$mount https://rezepte.mois.noho.st/static/vue/js/chunk-vendors.ec4fffc9516b.js:1054
$mount https://rezepte.mois.noho.st/static/vue/js/chunk-vendors.ec4fffc9516b.js:1054
init https://rezepte.mois.noho.st/static/vue/js/chunk-vendors.ec4fffc9516b.js:1054
p https://rezepte.mois.noho.st/static/vue/js/chunk-vendors.ec4fffc9516b.js:1054
f https://rezepte.mois.noho.st/static/vue/js/chunk-vendors.ec4fffc9516b.js:1054
y https://rezepte.mois.noho.st/static/vue/js/chunk-vendors.ec4fffc9516b.js:1054
f https://rezepte.mois.noho.st/static/vue/js/chunk-vendors.ec4fffc9516b.js:1054
y https://rezepte.mois.noho.st/static/vue/js/chunk-vendors.ec4fffc9516b.js:1054
f https://rezepte.mois.noho.st/static/vue/js/chunk-vendors.ec4fffc9516b.js:1054
y https://rezepte.mois.noho.st/static/vue/js/chunk-vendors.ec4fffc9516b.js:1054
f https://rezepte.mois.noho.st/static/vue/js/chunk-vendors.ec4fffc9516b.js:1054
y https://rezepte.mois.noho.st/static/vue/js/chunk-vendors.ec4fffc9516b.js:1054
f https://rezepte.mois.noho.st/static/vue/js/chunk-vendors.ec4fffc9516b.js:1054
y https://rezepte.mois.noho.st/static/vue/js/chunk-vendors.ec4fffc9516b.js:1054
f https://rezepte.mois.noho.st/static/vue/js/chunk-vendors.ec4fffc9516b.js:1054
ms https://rezepte.mois.noho.st/static/vue/js/chunk-vendors.ec4fffc9516b.js:1054
_update https://rezepte.mois.noho.st/static/vue/js/chunk-vendors.ec4fffc9516b.js:1054
r https://rezepte.mois.noho.st/static/vue/js/chunk-vendors.ec4fffc9516b.js:1054
get https://rezepte.mois.noho.st/static/vue/js/chunk-vendors.ec4fffc9516b.js:1054
t https://rezepte.mois.noho.st/static/vue/js/chunk-vendors.ec4fffc9516b.js:1054
Pn https://rezepte.mois.noho.st/static/vue/js/chunk-vendors.ec4fffc9516b.js:1054
$mount https://rezepte.mois.noho.st/static/vue/js/chunk-vendors.ec4fffc9516b.js:1054
$mount https://rezepte.mois.noho.st/static/vue/js/chunk-vendors.ec4fffc9516b.js:1054
init https://rezepte.mois.noho.st/static/vue/js/chunk-vendors.ec4fffc9516b.js:1054
p https://rezepte.mois.noho.st/static/vue/js/chunk-vendors.ec4fffc9516b.js:1054
f https://rezepte.mois.noho.st/static/vue/js/chunk-vendors.ec4fffc9516b.js:1054
C https://rezepte.mois.noho.st/static/vue/js/chunk-vendors.ec4fffc9516b.js:1054
T https://rezepte.mois.noho.st/static/vue/js/chunk-vendors.ec4fffc9516b.js:1054
C https://rezepte.mois.noho.st/static/vue/js/chunk-vendors.ec4fffc9516b.js:1054
T https://rezepte.mois.noho.st/static/vue/js/chunk-vendors.ec4fffc9516b.js:1054
C https://rezepte.mois.noho.st/static/vue/js/chunk-vendors.ec4fffc9516b.js:1054
T https://rezepte.mois.noho.st/static/vue/js/chunk-vendors.ec4fffc9516b.js:1054
C https://rezepte.mois.noho.st/static/vue/js/chunk-vendors.ec4fffc9516b.js:1054
T https://rezepte.mois.noho.st/static/vue/js/chunk-vendors.ec4fffc9516b.js:1054
C https://rezepte.mois.noho.st/static/vue/js/chunk-vendors.ec4fffc9516b.js:1054
T https://rezepte.mois.noho.st/static/vue/js/chunk-vendors.ec4fffc9516b.js:1054
C https://rezepte.mois.noho.st/static/vue/js/chunk-vendors.ec4fffc9516b.js:1054
T https://rezepte.mois.noho.st/static/vue/js/chunk-vendors.ec4fffc9516b.js:1054
C https://rezepte.mois.noho.st/static/vue/js/chunk-vendors.ec4fffc9516b.js:1054
T https://rezepte.mois.noho.st/static/vue/js/chunk-vendors.ec4fffc9516b.js:1054
ms https://rezepte.mois.noho.st/static/vue/js/chunk-vendors.ec4fffc9516b.js:1054
_update https://rezepte.mois.noho.st/static/vue/js/chunk-vendors.ec4fffc9516b.js:1054
r https://rezepte.mois.noho.st/static/vue/js/chunk-vendors.ec4fffc9516b.js:1054
get https://rezepte.mois.noho.st/static/vue/js/chunk-vendors.ec4fffc9516b.js:1054
run https://rezepte.mois.noho.st/static/vue/js/chunk-vendors.ec4fffc9516b.js:1054
qn https://rezepte.mois.noho.st/static/vue/js/chunk-vendors.ec4fffc9516b.js:1054
Dr https://rezepte.mois.noho.st/static/vue/js/chunk-vendors.ec4fffc9516b.js:1054
Cr https://rezepte.mois.noho.st/static/vue/js/chunk-vendors.ec4fffc9516b.js:1054
promise callback*xr https://rezepte.mois.noho.st/static/vue/js/chunk-vendors.ec4fffc9516b.js:1054
Dr https://rezepte.mois.noho.st/static/vue/js/chunk-vendors.ec4fffc9516b.js:1054
Jn https://rezepte.mois.noho.st/static/vue/js/chunk-vendors.ec4fffc9516b.js:1054
update https://rezepte.mois.noho.st/static/vue/js/chunk-vendors.ec4fffc9516b.js:1054
notify https://rezepte.mois.noho.st/static/vue/js/chunk-vendors.ec4fffc9516b.js:1054
set https://rezepte.mois.noho.st/static/vue/js/chunk-vendors.ec4fffc9516b.js:1054
set https://rezepte.mois.noho.st/static/vue/js/chunk-vendors.ec4fffc9516b.js:1054
refreshData https://rezepte.mois.noho.st/static/vue/js/recipe_search_view.a3f4f27d1d61.js:1
promise callback*23305/I.methods.refreshData< https://rezepte.mois.noho.st/static/vue/js/recipe_search_view.a3f4f27d1d61.js:1
b https://rezepte.mois.noho.st/static/vue/js/chunk-vendors.ec4fffc9516b.js:727
x https://rezepte.mois.noho.st/static/vue/js/chunk-vendors.ec4fffc9516b.js:727
O https://rezepte.mois.noho.st/static/vue/js/chunk-vendors.ec4fffc9516b.js:727
setTimeout handler*y https://rezepte.mois.noho.st/static/vue/js/chunk-vendors.ec4fffc9516b.js:727
B https://rezepte.mois.noho.st/static/vue/js/chunk-vendors.ec4fffc9516b.js:727
mounted https://rezepte.mois.noho.st/static/vue/js/recipe_search_view.a3f4f27d1d61.js:1
Dr https://rezepte.mois.noho.st/static/vue/js/chunk-vendors.ec4fffc9516b.js:1054
Cr https://rezepte.mois.noho.st/static/vue/js/chunk-vendors.ec4fffc9516b.js:1054
chunk-vendors.ec4fffc9516b.js:1054:30359
I have the same issue with a similar error in the console. Iām on a fresh install. Iām also seeing this in the console: This page is in Quirks Mode. Page layout may be impacted. For Standards Mode use ā<!DOCTYPE html>ā.
and TypeError: fetchedRules is undefined
I found this issue that might be relevant - same window.Urls[e] console error - no resolution sadly.
I looked at the headers as pointed from that issue:
and they seem to be fine.
I do find I can access edit mode for a recipe by replacing āviewā with āeditā in the urlā¦
this IS a workaround working here too - welcome back to the 90s. THANKS a lot anyways!
but i will wait until a day before the topic closes automatically before i mark your answer as āsolutionā. there might somebody show up with a real solution in the meantime.
checked my yunohostās nginx for the location headers.
found two of the four recommended ones in /var/www/tandoor/nginx/conf.d/Recipes.conf
added the other two.
now it looks like this (added lines marked with asterisk):
restarted nginx.service.
reloaded browser cache (strg+F5).
nothing broke. same errors in browser console. no noticable change.
will leave it like this and watch it further.
@mois - when you say āno noticable changeā - your adding the two headers to ā/var/www/tandoor/nginx/conf.d/Recipes.confā didnāt fix your problem?
Because Iām having the same problem - I also canāt edit recipes anymore as you described, except by changing āviewā to āeditā in the address bar.
If you were performing an action from the webadmin or the CLI and encountered what you think is a bug, you are on the right place! Carefully follow the issue template, for better efficiency.
that is what would make me file it there, not in the appās issues you recommended. but i am not shure.
Iāve run into this issue as well and similarly believe it might be related to permissions around the static files being generated though I havenāt been able to dig into the issue much.
I had a backup that I was able to restore to quite easily but this issue will prevent me from upgrading moving forward.