Massive update

kranf
Messages : 18
Inscription : jeu. janv. 11, 2018 1:07 pm

Massive update

Message par kranf »

Bonjour

Je récupère une machine sur laquelle je dois faire tourner un squash-tm.
Vu la version (1.5), j'ai fais une mise à jour en 1.17.
Petite question : dois appliquer tous les scripts mysql se trouvant dans le répertoire database-scripts depuis la 1.5 vers la version actuelle ?

Merci
kranf
Messages : 18
Inscription : jeu. janv. 11, 2018 1:07 pm

Massive update

Message par kranf »

Merci.

Je vais tenter tout ca alors :)
kranf
Messages : 18
Inscription : jeu. janv. 11, 2018 1:07 pm

Massive update

Message par kranf »

Bon, je sens que cela va être laborieux :)

mysql> source mysql-upgrade-to-1.5.1.sql;
Query OK, 1 row affected (0.36 sec)
Rows matched: 1 Changed: 1 Warnings: 0

Query OK, 1 row affected (0.12 sec)

Query OK, 0 rows affected (0.11 sec)

Query OK, 0 rows affected (0.03 sec)

ERROR 1146 (42S02): Table 'SQUASHDB.TEST_SUITE_TEST_PLAN_ITEM' doesn't exist
Query OK, 0 rows affected (0.01 sec)
Records: 0 Duplicates: 0 Warnings: 0

ERROR 1146 (42S02): Table 'SQUASHDB.TEST_SUITE_TEST_PLAN_ITEM' doesn't exist
Query OK, 0 rows affected (0.03 sec)

Query OK, 0 rows affected (0.00 sec)

ERROR 1146 (42S02): Table 'SQUASHDB.TEST_SUITE_TEST_PLAN_ITEM' doesn't exist
Query OK, 1 row affected (0.03 sec)

Il me manque des tables ...
Idem pour l'upgrade en 1.6.0.

Je ne sais pas s'il faut que je fasse un upgrade massif avec toutes les erreurs qui vont survenir, ou si je dois créer chaque tables manquantes (sachant que je ne sais pas le nombre de colonnes qu'il faut etc etc ..)
kranf
Messages : 18
Inscription : jeu. janv. 11, 2018 1:07 pm

Massive update

Message par kranf »

Bonjour,

J'ai donc mis à jour l'application . DE 1.5 à 1.17.

Les premiers tests ont été concluants, jusqu'à ce que je m'aperçoive qu'il n'y avait pas de data. L'architecture est bien présente, les tables etc, mais aucune data. J'ai donc refait un import de mon dump avant maj, et là j'ai ce souci :

[18-01-16 10:49:57.306] SquashTM - 10776 INFO [main] [] --- org.springframework.boot.autoconfigure.logging.AutoConfigurationReportLoggingInitializer:

Error starting ApplicationContext. To display the auto-configuration report enable debug logging (start with --debug)


[18-01-16 10:49:57.306] SquashTM - 10776 INFO [main] [] --- org.squashtest.tm.PluginsPathClasspathExtender: finished
[18-01-16 10:49:57.323] SquashTM - 10776 ERROR [main] [] --- org.springframework.boot.SpringApplication: Application startup failed
java.lang.NumberFormatException: null
at java.lang.Long.parseLong(Long.java:552) ~[?:1.8.0_151]
at java.lang.Long.valueOf(Long.java:803) ~[?:1.8.0_151]
at org.squashtest.tm.web.internal.fileupload.SquashMultipartResolver.updateConfig(SquashMultipartResolver.java:63) ~[classes!/:?]
at org.squashtest.tm.web.internal.fileupload.MultipartResolverDispatcher.onContextReady(MultipartResolverDispatcher.java:90) ~[classes!/:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_151]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_151]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_151]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_151]
at org.springframework.context.event.ApplicationListenerMethodAdapter.doInvoke(ApplicationListenerMethodAdapter.java:226) ~[spring-context-4.3.2.RELEASE.jar!/:4.3.2.RELEASE]
at org.springframework.context.event.ApplicationListenerMethodAdapter.processEvent(ApplicationListenerMethodAdapter.java:143) ~[spring-context-4.3.2.RELEASE.jar!/:4.3.2.RELEASE]
at org.springframework.context.event.ApplicationListenerMethodAdapter.onApplicationEvent(ApplicationListenerMethodAdapter.java:105) ~[spring-context-4.3.2.RELEASE.jar!/:4.3.2.RELEASE]
at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:166) ~[spring-context-4.3.2.RELEASE.jar!/:4.3.2.RELEASE]
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:138) ~[spring-context-4.3.2.RELEASE.jar!/:4.3.2.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:382) ~[spring-context-4.3.2.RELEASE.jar!/:4.3.2.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:336) ~[spring-context-4.3.2.RELEASE.jar!/:4.3.2.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:877) ~[spring-context-4.3.2.RELEASE.jar!/:4.3.2.RELEASE]
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.finishRefresh(EmbeddedWebApplicationContext.java:144) ~[spring-boot-1.4.0.RELEASE.jar!/:1.4.0.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:544) ~[spring-context-4.3.2.RELEASE.jar!/:4.3.2.RELEASE]
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122) ~[spring-boot-1.4.0.RELEASE.jar!/:1.4.0.RELEASE]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759) [spring-boot-1.4.0.RELEASE.jar!/:1.4.0.RELEASE]
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:369) [spring-boot-1.4.0.RELEASE.jar!/:1.4.0.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:313) [spring-boot-1.4.0.RELEASE.jar!/:1.4.0.RELEASE]
at org.squashtest.tm.SquashTm.main(SquashTm.java:57) [classes!/:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_151]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_151]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_151]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_151]
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48) [squash-tm.war:?]
at org.springframework.boot.loader.Launcher.launch(Launcher.java:87) [squash-tm.war:?]
at org.springframework.boot.loader.Launcher.launch(Launcher.java:50) [squash-tm.war:?]
at org.springframework.boot.loader.WarLauncher.main(WarLauncher.java:59) [squash-tm.war:?]
[18-01-16 10:49:57.330] SquashTM - 10776 INFO [main] [] --- org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext: Closing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@2437c6dc: startup date [Tue Jan 16 10:49:10 CET 2018]; root of context hierarchy
[18-01-16 10:49:57.333] SquashTM - 10776 INFO [main] [] --- org.springframework.context.support.DefaultLifecycleProcessor: Stopping beans in phase 0
[18-01-16 10:49:57.337] SquashTM - 10776 INFO [main] [] --- org.springframework.jmx.export.annotation.AnnotationMBeanExporter: Unregistering JMX-exposed beans on shutdown
[18-01-16 10:49:57.368] SquashTM - 10776 INFO [main] [] --- org.springframework.cache.ehcache.EhCacheManagerFactoryBean: Shutting down EhCache CacheManager
[18-01-16 10:49:57.374] SquashTM - 10776 INFO [main] [] --- org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler: Shutting down ExecutorService 'squashtest.tm.service.ThreadPoolTaskScheduler'
[18-01-16 10:49:57.374] SquashTM - 10776 INFO [main] [] --- org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler: Shutting down ExecutorService 'squashtest.tm.service.ThreadPoolTaskScheduler'

Quelqu'un aurait une idée ?

Merci
kranf
Messages : 18
Inscription : jeu. janv. 11, 2018 1:07 pm

Massive update

Message par kranf »

Bon .. souci réglé ... Le site ne tapait pas sur la bonne base.

Maintenant que c'est rectifié, ma base est quand même toujours vide ....
kranf
Messages : 18
Inscription : jeu. janv. 11, 2018 1:07 pm

Massive update

Message par kranf »

Bonjour,
Après x import de dump, mes répertoires sont toujours vides. Aucun data à l'intérieur..

Je ne vois pas d'erreur particulière, je ne comprends pas pourquoi c'est vide...
kranf
Messages : 18
Inscription : jeu. janv. 11, 2018 1:07 pm

Massive update

Message par kranf »

Il me manque un seule table .. ET je n'arrive pas à la créer ..

MariaDB [SQUASHDB_TR]> CREATE TABLE `CAMPAIGN_TEST_PLAN_ITEM` (`CTPI_ID` BIGINT AUTO_INCREMENT NOT NULL, `CAMPAIGN_ID` BIGINT NULL, `TEST_CASE_ID` BIGINT NOT NULL, `USER_ID` BIGINT NULL, `TEST_PLAN_ORDER` INT NULL, CONSTRAINT `PK_CAMPAIGN_TEST_PLAN_ITEM` PRIMARY KEY (`CTPI_ID`), CONSTRAINT `fk_camp_tp_user` FOREIGN KEY (`USER_ID`) REFERENCES CORE_USER(ID), CONSTRAINT `fk_camp_tp_testcase` FOREIGN KEY (`TEST_CASE_ID`) REFERENCES TEST_CASE(TCLN_ID), CONSTRAINT `fk_camp_tp_campaign` FOREIGN KEY (`CAMPAIGN_ID`) REFERENCES CAMPAIGN(CLN_ID)) ENGINE = INNODB;
ERROR 1005 (HY000): Can't create table 'SQUASHDB_TR.CAMPAIGN_TEST_PLAN_ITEM' (errno: 150)


Help.
kranf
Messages : 18
Inscription : jeu. janv. 11, 2018 1:07 pm

Massive update

Message par kranf »

Bonjour,

Je continue dans ma galère ...
Je n'arrive pas à me connecter en tant que user toto (qui existe dans la table AUTH_USER).

Le login est bon, le mot de passe aussi. Mais impossible de se logguer.

Et je n'ai rien dans les logs , à part, le 18 dernier :
- - [18/Jan/2018:11:41:27 +0100] "POST /squash/login?error HTTP/1.1" 302 -
- - [18/Jan/2018:11:41:27 +0100] "GET /squash/login?error HTTP/1.1" 200 5186
- - [18/Jan/2018:11:41:27 +0100] "GET /squash/scripts/lib/jquery/jquery-1.8.3.min.js HTTP/1.1" 404 902
- - [18/Jan/2018:11:41:27 +0100] "GET /squash/scripts/lib/underscore/underscore-1.4.4-min.js HTTP/1.1" 404 902

Aujourd'hui , rien dans les logs, et je ne sais pas pourquoi ...

Une idée ?

Merci
kranf
Messages : 18
Inscription : jeu. janv. 11, 2018 1:07 pm

Massive update

Message par kranf »

Bonjour,


Mon update massif fût des plus ... périlleux.
Ceci dit, j'arrive à quelque chose d'a peu prés exploitable.

Une question, dans le groupe des users, j'ai:
??user.account.group.squashtest.tm.group.User.label_fr_FR??

Aurais je oublié une table ? Quelque chose ?

Merci
Répondre

Revenir à « Questions générales / General questions »