Sign In Help
Schneider Electric
HelpSign In
Schneider Electric Exchange
  • Home
  • Collaborate
  • Develop
  • Shop
Home Collaborate Develop Shop Log in or Register Help

Invite a Co-worker

Send a co-worker an invite to the Exchange portal.Just enter their email address and we’ll connect them to register. After joining, they will belong to the same company.
You have entered an invalid email address. Please re-enter the email address.
This co-worker has already been invited to the Exchange portal. Please invite another co-worker.
Please enter email address
Send Invite Cancel

Invitation Sent

Your invitation was sent.Thanks for sharing Exchange with your co-worker.
Send New Invite Close
  • Home
  • Collaborate
  • Exchange Community
  • :
  • EcoStruxure IT
  • :
  • EcoStruxure IT forum
  • :
  • dco after upgrade password_change_required column missing in db
Community Menu
  • Forums
    • By Topic
        • EcoStruxure IT
          • EcoStruxure IT forum
        • Industrial Automation
          • Industry Automation and Control Forum
          • Alliance System Integrators Forum
          • Machine Solutions in the Digital Transformation
          • EcoStruxure Automation Expert / IEC 61499 Forum
          • Industrial Edge Computing Forum
          • Level and Pressure Instrumentation Forum
          • Modicon User Group
          • PLC Club Indonesia
          • SEE Automation Club Forum
          • Fabrika ve Makina Otomasyonu Çözümleri
          • Форум по промышленной автоматизации СНГ
        • SCADA & Telemetry Solutions
          • Geo SCADA Expert Forum
          • SCADA and Telemetry Devices Forum
        • Power Distribution IEC
          • Power Distribution and Digital
          • Power Standards & Regulations
          • Paneelbouw & Energie Distributie
        • Power Distribution Softwares
          • EcoStruxure Power Design Forum
          • SEE Electrical Building+ Forum
          • LayoutFAST User Group Forum
        • Solutions for your Business
          • Solutions for Food & Beverage Forum
          • Solutions for Healthcare Forum
    • By Segment
        • Food & Beverage
          • Solutions for Food & Beverage Forum
        • Healthcare
          • Solutions for Healthcare Forum
      • EcoStruxure IT
        • EcoStruxure IT forum
      • Industrial Automation
        • Industry Automation and Control Forum
        • Alliance System Integrators Forum
        • Machine Solutions in the Digital Transformation
        • EcoStruxure Automation Expert / IEC 61499 Forum
        • Industrial Edge Computing Forum
        • Level and Pressure Instrumentation Forum
        • Modicon User Group
        • PLC Club Indonesia
        • SEE Automation Club Forum
        • Fabrika ve Makina Otomasyonu Çözümleri
        • Форум по промышленной автоматизации СНГ
      • SCADA & Telemetry Solutions
        • Geo SCADA Expert Forum
        • SCADA and Telemetry Devices Forum
      • Power Distribution IEC
        • Power Distribution and Digital
        • Power Standards & Regulations
        • Paneelbouw & Energie Distributie
      • Power Distribution Softwares
        • EcoStruxure Power Design Forum
        • SEE Electrical Building+ Forum
        • LayoutFAST User Group Forum
      • Solutions for your Business
        • Solutions for Food & Beverage Forum
        • Solutions for Healthcare Forum
      • Food & Beverage
        • Solutions for Food & Beverage Forum
      • Healthcare
        • Solutions for Healthcare Forum
  • Blogs
    • By Topic
        • Industrial Automation
          • Industrial Edge Computing Blog
          • Industry 4.0 Blog
          • Industrie du Futur France
        • SCADA & Telemetry Solutions
          • SCADA and Telemetry Blog
        • Power Distribution IEC
          • Power Events & Webinars
          • Power Foundations Blog
        • Power Distribution NEMA
          • NEMA Power Foundations Blog
        • Power Distribution Softwares
          • EcoStruxure Power Design Blog
          • SEE Electrical Building+ Blog
        • Solutions for your Business
          • Solutions for Food & Beverage Blog
          • Solutions for Healthcare Blog
          • Solutions for Retail Blog
    • By Segment
        • Food & Beverage
          • Solutions for Food & Beverage Blog
        • Healthcare
          • Solutions for Healthcare Blog
        • Retail
          • Solutions for Retail Blog
      • Industrial Automation
        • Industrial Edge Computing Blog
        • Industry 4.0 Blog
        • Industrie du Futur France
      • SCADA & Telemetry Solutions
        • SCADA and Telemetry Blog
      • Power Distribution IEC
        • Power Events & Webinars
        • Power Foundations Blog
      • Power Distribution NEMA
        • NEMA Power Foundations Blog
      • Power Distribution Softwares
        • EcoStruxure Power Design Blog
        • SEE Electrical Building+ Blog
      • Solutions for your Business
        • Solutions for Food & Beverage Blog
        • Solutions for Healthcare Blog
        • Solutions for Retail Blog
      • Food & Beverage
        • Solutions for Food & Beverage Blog
      • Healthcare
        • Solutions for Healthcare Blog
      • Retail
        • Solutions for Retail Blog
  • Ideas
        • Industrial Automation
          • Modicon Ideas & new features
        • SCADA & Telemetry Solutions
          • Geo SCADA Expert Ideas
          • SCADA and Telemetry Devices Ideas
  • Knowledge Center
    • Building Automation Knowledge Base
    • Industrial Automation How-to videos
    • Ask Exchange
    • Digital E-books
    • Success Stories Corner
    • Power Talks
  • Events & Webinars
  • Support
    • User Guide
    • Leaderboard
    • Releases Notes
How can we help?
cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
49248members
Join Now
242460posts
Join Now

dco after upgrade password_change_required column missing in db

Options
  • Subscribe to RSS Feed
  • Mark Topic as New
  • Mark Topic as Read
  • Float this Topic for Current User
  • Bookmark
  • Subscribe
  • Mute
  • Printer Friendly Page
Back to EcoStruxure IT forum
DCIM_Support
Picard DCIM_Support
Picard
‎2020-07-05 09:05 PM
0 Likes
6
73
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2020-07-05 09:05 PM

dco after upgrade password_change_required column missing in db

This question was originally posted on DCIM Support by Lukas Jegerlehner on 2019-07-30


Dear Team,

the upgrade from a DCO 8.2.12 --> to 8.3.2 did run through perfectly fine. All services are running fine. After the reboot I waited the required time and did not disrupt the process.

Problem:

on the web no user can login due to the missing column "password_change_required" in the public.users table.

I am suspecting that all the java which should be running after the reboot of the system, did not get startet and therefore the databases did not get updated. 

 

this printscreen is from a server, which is running perfectly on 8.3.2

 

How can this issue be fixed? 

The server has a DR node running. Before the upgrade i disconnected the DRs, by promoting the server.

A clean dco installation is not the solution for this customer.

 

Best Regards

Lukas

(CID:147199829)

Labels
  • Data Center Operation
Share
  • All forum topics
  • Previous Topic
  • Next Topic
6 Replies 6
DCIM_Support
Picard DCIM_Support
Picard
‎2020-07-05 09:06 PM
0 Likes
0
73
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2020-07-05 09:06 PM

Re: dco after upgrade password_change_required column missing in db

This comment was originally posted on DCIM Support by Paweł Kozioł on 2019-07-30


Hello Lukas,

Do you have specific error message or log regarding logging in issue? password_change_required column was added in version 8.0.0, so you should already have it for a long time.

I see on you screenshot that you have SchemaUpgradePowerMeasurementsData in your sma_database_schema table. Is it ture? If so, then you are right - database was not upgraded.

Would you be able to share log files from the DCO server? Specifically, from the /opt/jboss-as/standalone/log directory you should have a server.log, operations.log files, and you may have a dco-installer.log file in the same folder or in /var/log

Did the DCO server have access to the internet when the update was run?

Best Regards
Paweł

(CID:147199868)

Share
DCIM_Support
Picard DCIM_Support
Picard
‎2020-07-05 09:06 PM
0 Likes
0
73
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2020-07-05 09:06 PM

Re: dco after upgrade password_change_required column missing in db

This comment was originally posted on DCIM Support by Lukas Jegerlehner on 2019-07-30


Hello Pawel,

 

thank you for your quick answer. 

Yes it is true. But the print screen is from a successfully working 8.3.2 DCO. Not from the "problem" machine. 

I will email you a link with the log files. 

Yes the internet was accessible through the upgrade. 

The upgrade went through well. 

On the DCO web there is an error when trying to login. "password change required" not available. 

(CID:147200123)

Share
DCIM_Support
Picard DCIM_Support
Picard
‎2020-07-05 09:06 PM
0 Likes
1
73
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2020-07-05 09:06 PM

Re: dco after upgrade password_change_required column missing in db

This answer was originally posted on DCIM Support by Paweł Kozioł on 2019-07-31


Thanks for the logs. I looked into them and I can see in errors in server.log that saying that column force_single_sign_on does not exist in users table. We added it in 8.2.13, so it means that database wasn't upgraded.

In operations.log you can see that upgrade process didn't run them, because it thought that was running on DR node.

Jul 9 11:58:37 dcim-dcoperation01 operations: Not upgrading schema on a DR node.

To me it looks that server wasn't even tried to be promoted. There should be "Promoting this DR node to master" log, but I don't see it anywhere.

Could you check what is the value for ISXO_BACKUP_SITE in /etc/isx-operations/config?

Could you try restarting Operations service? It should run database schema upgrade if it's really master node.

(CID:147201499)

Share
DCIM_Support
Picard DCIM_Support
Picard
‎2020-07-05 09:06 PM
0 Likes
0
73
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2020-07-05 09:06 PM

Re: dco after upgrade password_change_required column missing in db

This comment was originally posted on DCIM Support by Lukas Jegerlehner on 2019-08-05


please see my findings below:
here is a quick description how to provoke the case. Can you and your development team please look into fixing the issue for the next release. Thank you in advance.
  1. Two clean dco installations (version 8.2.12)

  2. Connect DR node.
  3. For dco2 the ISXO_BACKUP_SITE field, within the /etc/isx-operations/config file, will become 1 (slave).
  4. promote dco2 —> ISXO_BACKUP_SITE for dco2 will become 2 (master)
  5. upgrade dco2 to the latest version 8.3.2. Schema will not update due to ISXO_BACKUP_SITE = 2 (wasn’t cleared).  
  6. ExecStartPre=/usr/libexec/dco-platform/schemaUpgrade.sh —> The IF within the schemaUpgrade Shell checks if the field ISXO_BACKUP_SITE is empty.  
  7. In the case of switching the DR back and forth between two servers (this could happen over time), both servers will end up with a field entry ISXO_BACKUP_SITE = 2, once disconnected again. 
  8. —> solution: check the IF statement within schemaUpgrade.sh, which was added after version 8.2.12. For the slave ISXO_BACKUP_SITE = 1 it makes sense to not run a schema update. For 2 and ‘ ‘ schema upgrades may should be performed ?

(CID:147201858)

Share
DCIM_Support
Picard DCIM_Support
Picard
‎2020-07-05 09:06 PM
0 Likes
0
73
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2020-07-05 09:06 PM

Re: dco after upgrade password_change_required column missing in db

This answer was originally posted on DCIM Support by Lukas Jegerlehner on 2019-08-05


Hi Pawel,

thanks a lot for your feedback.

 

before the upgrade and in DR mode:

DCO1: ISXO_BACKUP_SITE = 2

DCO2: ISXO_BACKUP_SITE = 1

 

promoting the DCO2 results in: (the operations.log's shows that both DCOs are no longer in DR mode)

DCO1: ISXO_BACKUP_SITE = 2

DCO2: ISXO_BACKUP_SITE = 2

restarting the operations service . --> schema upgrade possible (operations.log)

 

upgrading from 8.2.12 --> 8.3.2

-upgrade runs through fine.

-restart of the node.

-now suddenly the operations.log shows again "Not upgrading schema on a DR node". This is very strange since 5min ago the schema upgrade was possible.

 

(CID:147201556)

Share
DCIM_Support
Picard DCIM_Support
Picard
‎2020-07-05 09:06 PM
0 Likes
0
73
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2020-07-05 09:06 PM

🔒 Closed

This question is closed for comments. You're welcome to start a new topic if you have further comments on this issue.

Share
Top Experts
User Count
APC_Steve
Lt. Commander APC_Steve Lt. Commander
2
MateFekete
Crewman MateFekete
1
GavanOB
Lieutenant GavanOB Lieutenant
1
lasalle_1
Crewman lasalle_1
1
Jef
Commander Jef Commander
1
See More Top Experts
Find a Service Provider
Find a certified partner to help you address your integration, installation, maintenance and project needs.
View all Providers
Support

Have a question? Please contact us with details, and we will respond.

Contact Us
FAQ

Look through existing questions to find popular answers.

Learn More
About

Want to know more about Exchange and its possibilities?

Learn More

Full access is just steps away!

Join Exchange for FREE and get unlimited access to our global community of experts.

Connect with Peers & Experts

Discuss challenges in energy and automation with 30,000+ experts and peers.

Get Support in Our Knowledge Base

Find answers in 10,000+ support articles to help solve your product and business challenges.

Ask Questions. Give Solutions

Find peer based solutions to your questions. Provide answers for fellow community members!

Register today for FREE

Register Now

Already have an account?Log in

About Us FAQ Terms & Conditions Privacy Notice Change your cookie settings
©2020, Schneider Electric