Skip to content

Nextcloud 21 - Warning no app in context "Invalid data provided to provideInitialState by files" #25790

Closed

Description

@fate8383

I am having this warning, and exhausted my search ability to find out what it is

Warning | no app in context | Invalid data provided to provideInitialState by files

Every time file app is open, logs generate this

Is this a bug or can be ignored or what can i do?

Activity

  1. added
    0. Needs triagePending check for reproducibility or if it fits our roadmap
    on Feb 24, 2021
  2. v1r0x commented on Feb 25, 2021

    @v1r0x
    Contributor

    I got the same error and a blank files app (only left sidebar is visible). Don't know if that is related, but that's the only error I get
    Edit: I'm on NC 21 (docker) as well

  3. amatteo78 commented on Feb 25, 2021

    @amatteo78

    on NC21 same on my side, follow

  4. ramirooliveiracg commented on Feb 25, 2021

    @ramirooliveiracg

    Me too

  5. huangy10 commented on Feb 26, 2021

    @huangy10

    Same problem here. NC 21.

    This error occurs each time when I try to upload a large file (about 3.5GB).

  6. amatteo78 commented on Feb 26, 2021

    @amatteo78

    on my side I can upload large file, I upload upto 6GB single file. But every 30min about, I receive this message on log.

  7. v1r0x commented on Feb 26, 2021

    @v1r0x
    Contributor

    I tried to investigate where this is coming from and if it is (for my case) the reason I have a blank files app.
    And in my case it happens here: https://github.com/nextcloud/server/blob/master/apps/files/lib/Controller/ViewController.php#L297
    That's because I don't have a template directory (know nothing about it and couldn't find out how to set it 🤷) and null is passed to the provideInitialState function, IMHO either the logged warning is misleading or passing null is wrong, because it passes null (thus invalid data) on purpose.
    When replaced with something different than null the logged warning disappears, but my problem with a blank page is still present.

  8. zedpr0 commented on Feb 27, 2021

    @zedpr0

    I solved it by going into the files app and clicking the + icon that you would use to create a new file and selecting "Set up Templates Folder". That removed the error for me.

  9. kostyainmadness commented on Feb 27, 2021

    @kostyainmadness

    I solved it by going into the files app and clicking the + icon that you would use to create a new file and selecting "Set up Templates Folder". That removed the error for me.

    Working solution, thank you

  10. v1r0x commented on Feb 27, 2021

    @v1r0x
    Contributor

    I solved it by going into the files app and clicking the + icon that you would use to create a new file and selecting "Set up Templates Folder". That removed the error for me.

    Good to hear it's fixed for you! 🎉
    Unfortunately, I have a blank page in files app and don't see the + icon 😆 But maybe that's a different bug...

  11. AndyFx12 commented on Feb 28, 2021

    @AndyFx12

    I solved it by going into the files app and clicking the + icon that you would use to create a new file and selecting "Set up Templates Folder". That removed the error for me.

    Less errors - but in my case, everyday I see again this warning once per user.

  12. Cardes commented on Mar 6, 2021

    @Cardes

    I would be happy if there could be another solution to this, those directories are less than ideal if every user has to have lets say "Talk, Notes, Templates..." in his homedirectory. Perhaps there could be something like a hidden / system folder like the trash accessible via menu or a possibility to hide those folders away.

    That beeing said, thanks for your work on this :)

  13. fabikroeger commented on Mar 7, 2021

    @fabikroeger

    Hi people,

    so same issue for me. The workaround does not work for me.

    So NC21 and on docker as well. If that helps: this occours after i upgraded the docker image from NC 20 to NC 21.

    Update:

    So i took a few minuts and a lot of browser reloads pressing F5 until i got my files listed. Then i had the option to press the plus button and add the template stuff as mentioned above. That works for me 👍

  14. amatteo78 commented on Mar 7, 2021

    @amatteo78

    on my side, workaround fixed.

  15. tomcatcw1980 commented on Mar 10, 2021

    @tomcatcw1980

    Hello,

    got the same error message. But IMHO it cannot be the solution that every user has to add a template folder by himself. So ther must be an option in the config.php to set it globally for all users.

    Is there a solutions available yet?

    Greetings

  16. added
    1. to developAccepted and waiting to be taken care of
    and removed
    0. Needs triagePending check for reproducibility or if it fits our roadmap
    1. to developAccepted and waiting to be taken care of
    on Mar 15, 2021
  17. skjnldsv commented on Mar 15, 2021

    @skjnldsv
    Member

    Fix in #26131

  18. self-assigned this
    on Mar 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions