linuxserver / docker-grocy

A container for grocy - the ERP application for your kitchen https://grocy.info
GNU General Public License v3.0
352 stars 43 forks source link

Empty stock list after upgrade 3.0.1 - 3.1.1 #50

Closed osuka closed 2 years ago

osuka commented 3 years ago

linuxserver.io


Expected Behavior

Upgrading should go without issues.

Current Behavior

After upgrading from 3.0.1 to 3.1.1 the stockoverview page is empty, an error is shown in the JS console: _Cannot set property '_DTCellIndex' of undefined but since the code is obfuscated it's hard to find exactly where - it's inside the datatable rendering code.

Diagnosis:

I believe this will happen to others so it should be mentioned as an upgrade note.

One guess: this may be a 'user error' because after the update one is meant to go to the root of the project but normally you'd have a page in the history or already loaded so it's easy to just reload that. Doing this seems to leave something in the viewcache that means the migration never runs after that.

Steps to Reproduce

  1. Have a 3.0.1 release populated with data
  2. Upgrade to 3.1.1
  3. Reload and try to access /stockoverview

Environment

OS: Linux CPU architecture: x86_64 How docker service was installed:

Synology NAS

Command used to create docker container (run/create/compose/screenshot)

Not necessary, standard run with bridge networking and /config/data mounted to a shared folder with correct permissions.

Docker logs

There are no errors or warning on the logs, just normal startup

github-actions[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.