Monica: Cannot view the settings.storage.index page on 2.17 docker image

Created on 25 Mar 2020  路  5Comments  路  Source: monicahq/monica

Describe the bug
I upgraded from 2.16 to 2.17 and can no longer view the storage page under my user's settings. I've run through all the migration steps, cleared cache, etc.

Screenshots
I'm just getting the "Whoops! Something went wrong" screen.

Which version are you using:

  • A server you maintain yourself: 2.17 (docker image)

Additional context
Log output:

[2020-03-25 19:44:12] production.ERROR: View [settings.storage.index] not found. {"userId":4,"exception":"[object] (InvalidArgumentException(code: 0): View [settings.storage.index] not found. at /var/www/monica/vendor/laravel/framework/src/Illuminate/View/FileViewFinder.php:137)
[stacktrace]
#0 /var/www/monica/vendor/laravel/framework/src/Illuminate/View/FileViewFinder.php(79): Illuminate\\View\\FileViewFinder->findInPaths('settings.storag...', Array)
#1 /var/www/monica/vendor/laravel/framework/src/Illuminate/View/Factory.php(131): Illuminate\\View\\FileViewFinder->find('settings.storag...')
#2 /var/www/monica/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php(968): Illuminate\\View\\Factory->make('settings.storag...', Array, Array)
#3 /var/www/monica/app/Http/Controllers/Settings/StorageController.php(38): view('settings.storag...')
#4 [internal function]: App\\Http\\Controllers\\Settings\\StorageController->index()

I can include the entire stack trace if need be, but that seems to be the relevant bit.

bug docker

Most helpful comment

@nwalke Thank you for the feedback! I'll fix it ASAP

All 5 comments

I wonder if the 2.17 docker image is broken? Here's what I see:

$ dc exec monica ls -1 resources/views/settings/
_sidebar.blade.php
api
auditlog
dav
export.blade.php
imports
index.blade.php
personalization
security
subscriptions
tags.blade.php
users

Which does not match this: https://github.com/monicahq/monica/tree/v2.17.0/resources/views/settings

After more digging, relaunching of the container, and playing with the image...

The resources/views/settings/storage folder exists in the image under /usr/src/monica but for some reason doesn't seem to be getting copied to /var/www/monica as part of the Syncing sources... section.

It appears the rsync is dropping that folder: https://gist.github.com/nwalke/3726719d91b3e440cde4a485caf85fc1

3487 introduced the upgrade.exclude list. It must be excluding any folders named "storage".

@nwalke Thank you for the feedback! I'll fix it ASAP

Do we need to do anything to apply this fix?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mattdavenport picture mattdavenport  路  3Comments

djaiss picture djaiss  路  3Comments

baisong picture baisong  路  3Comments

erdmenchen picture erdmenchen  路  4Comments

pc-zookeeper picture pc-zookeeper  路  4Comments