music icon indicating copy to clipboard operation
music copied to clipboard

An exception occurred while executing a query: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'dirty' in 'INSERT INTO'

Open kariburger opened this issue 1 year ago • 3 comments

I'm running Nextcloud Hub 10 (31.0.2) basically without error (i.e. all other apps runs smoothly - and playing audio by music app works also). Just the music app is no more able to perform the scan command. I get the followin error message: In ExceptionConverter.php line 67: An exception occurred while executing a query: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'dirty' in 'INSERT INTO' In Exception.php line 24: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'dirty' in 'INSERT INTO' In Statement.php line 130: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'dirty' in 'INSERT INTO' I saw the comparable error report - but the only migrations command, that is provided to me is: migrations:preview

I checked also, that the config file does not force debug mode (manually added 'debug' = false to config.php). I also tried commands like "occ maintenance:repair --include-expensive", "occ db:add-missing-columns", "occ db:add-missing-indices"

The command "occ migrations:status music" causes the following error: `Command "migrations:status" is not defined.

Did you mean one of these?
encryption:status
face:stats
migrations:preview
twofactorauth:state`

I tried already to deactivate, delete and reinstall the music app - without success.

Any ideas?

Hope anybody can help, Achim

kariburger avatar Apr 03 '25 08:04 kariburger

I assume the "comparable error report" mentioned is https://github.com/owncloud/music/issues/1197.

I'm sure manually adding 'debug' = false would not help, but you should try 'debug' => true as suggested in the other report.

paulijar avatar Apr 03 '25 10:04 paulijar

Hi, thanks for your fast response. Oh - well - sorry - I misunderstood the suggestion to set the debug-parameter. I read it completely wrong. Now - with 'debug' => true - I was able to call exactly the same migrations task as in #1197 - and now I'm able to call the scan task again. Is it possible to perform this step automatically, when the scan doesn't work? I assume that the requestor of #1197 and me are not the only users with this problem.

So my ticket can be regarded as closed.

Bye, Achim

kariburger avatar Apr 03 '25 12:04 kariburger

Yeah, if there are two known cases of this problem, then most likely there are at least some unknown cases as well. Still, probably this is quite rare as there are at least thousands of installation whose owners have not reported such issues.

Creating any automatic recovery system for this sounds a bit risky to me. The scan could fail for other reasons and there's a chance that in some case running the migration might make things worse. And comprehensibly testing such logic would be difficult.

paulijar avatar Apr 03 '25 20:04 paulijar