Hi Tim - yes, agreed. We were running 6.0. The ignore command was in 
operation for our migration, and it claims it is not needed, and so it is 
ignored. Except it is not ignored, and the DB fails on request. 
Additionally, I am not sure what you are saying because this field doesn't 
exist in the 7/xx DB schema for that table. SO what gives? Is it created, 
and then migrated through additional SQL migration scripts to another 
table, this index it is trying to create? Because it doesn't not exist in 
7, so why is the script desperately trying to make it so? 

On Thursday, October 14, 2021 at 11:04:30 AM UTC-5 Tim Donohue wrote:

> Hi Steven,
>
> What does your "dspace database info" command return?  
> We'd need more information here to help debug it.  This seems like a very 
> odd error to me as well, as that migration was initially added in 5.7 and 
> ported to 6.1... so, if you were already running 6.1 or above, this 
> migration * should have already run for you*​. 
>
> That said, it's possible your "dspace database info" command would provide 
> us with additional hints.​  I'm assuming that somehow this migration may 
> not have ever been applied to your 6.x site....and now that you are 
> updating to 7.x, it's causing issues.
>
> Tim
> ------------------------------
> *From:* [email protected] <[email protected]> on behalf 
> of S. T. <[email protected]>
> *Sent:* Thursday, October 14, 2021 10:47 AM
> *To:* DSpace Technical Support <[email protected]>
> *Subject:* [dspace-tech] Re: Seemingly crazy catch 22 Dspace DB migration 
> loop question!!! 
>  
> Thanks Joel, I appreciate the help. I guess I should search the Jira for 
> Dspace on their github repo, and / or submit this bug. I am assuming they 
> have a Jira and a github repo.Let me run those commands, and I will share.
>
> On Thursday, October 14, 2021 at 7:56:24 AM UTC-5 [email protected] wrote:
>
> Steven,
>
> I claim to be no expert, but maybe you (and another post 
> <https://groups.google.com/g/dspace-tech/c/1paSeuUkjFo> from September) 
> stumbled upon a bug? Can you share the results of the following commands? 
>
>
> *[dspace]/bin/dspace database validate *
> *[dspace]/bin/dspace database info*
>
> It's suspicious that you started on version 6 and the Flyaway migration is 
> attempting to issue a patch for something that existed in version 5.7. 
>
> Just for fun, you might want to try this, too, if you haven't already.
>
>
> *[dspace]/bin/dspace database repair *
>
> --Joel
>
>
>
>
> On Wednesday, October 13, 2021 at 5:47:46 PM UTC-4 [email protected] 
> wrote:
>
> We are trying to upgrade our system from 6 to 7, we are following all the 
> steps. 
>
> We get this message on DB migration:
> Migration 
> V5.7_2017.04.11__DS-3563_Index_metadatavalue_resource_type_id_column.sql 
> failed
>
> When we attempt to update the DB, if fails right there, because it is (?) 
> trying to create a field WHICH APPARENTLY DOES NOT EXIST in 6.x or 7.x from 
> a previous field THAT NEVER EXISTED ON OUR 6.x install.
>
> This script, which is part of the Flyway DB upgrade auto process
>
>
> org/dspace/storage/rdbms/sqlmigration/postgres/V5.7_2017.04.11__DS-3563_Index_metadatavalue_resource_type_id_column.sql
>
> Contents are:
> DROP INDEX IF EXISTS metadatavalue_resource_type_id_idx; CREATE INDEX 
> metadatavalue_resource_type_id_idx ON metadatavalue (resource_type_id);
>
> However, WE started with V 6.0. So, (1) that column did not exist in the 
> 6.0 schema. (2) Furthermore, the field it is trying to create USING the 
> value from that 5.7 field, also DOES NOT EXIST in the schema for 6.xx OR 
> 7.xx.
>
> So, the migration script seems to be trying to alter the metadatavalue 
> table using a column which doesn't exist to create a column that doesn't 
> apparently exist in anyone's backend. 
>
>  Can anyone who either knows migrations very well, or the Dspace backend 
> care to comment or assist? This is so super frustrating and confusing. What 
> are we missing?
>
> Thanks so much
>
> Steven Turner
>
> -- 
> All messages to this mailing list should adhere to the Code of Conduct: 
> https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
> --- 
> You received this message because you are subscribed to the Google Groups 
> "DSpace Technical Support" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/dspace-tech/6fe30d91-4b79-48c6-aa30-2e13ce040132n%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/dspace-tech/6fe30d91-4b79-48c6-aa30-2e13ce040132n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
All messages to this mailing list should adhere to the Code of Conduct: 
https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
--- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/16bc085d-77f0-4bdb-aade-9a25af9b12edn%40googlegroups.com.

Reply via email to