Permission broken after tandoor app update: Can't edit recipes anymore

Good evening!

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: 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…

1 Like

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.

1 Like

thanks @RadtkeJCJ for hinting me towards required headers.

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):

  location / {
    proxy_set_header Host $http_host;
*   proxy_set_header X-Forwarded-Proto $scheme;
    proxy_pass http://web_recipes:8080;
*   proxy_redirect http://web_recipes:8080 https://xxxx.xxxx.noho.st;
    error_page 502 /errors/http502.html;
  }

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.

1 Like

@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.

Is this worth a bug report in https://github.com/YunoHost-Apps/tandoor_ynh/issues ?

Hope this finds you all well!

exactly.

thanks for the link. but i am not shure if this would be the right place.

Yunohost General Repo Issues says:

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.

so i wont file it at all - yet.

1 Like

I’ve got the same problem. However I don’t find any problems in the log: hastebin

Before finding this thread I already opened an issue report on Git: Can't edit recipes any more · Issue #67 · YunoHost-Apps/tandoor_ynh · GitHub