Welcome, Guest
Username: Password: Remember me

TOPIC: Moving a ProView 4.6 project to a 4.7 installation

Re:Moving a ProView 4.6 project to a 4.7 installation 13 years 11 months ago #719

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 3176
  • Thank you received: 502
  • Karma: 133
Hi Ondrej,

1. You don't seem to have a readable directory volume. Is there a $pwrp_db/directory.wb_load file and if there is what is the content of it ?

2. Make the changes in volbruciatore and then compile all PlcPgm's and build the node. If you set Build/Force in Options/Setting in the configurator menu, everything will be compiled and built automatically when you build tne node.

/Claes
The administrator has disabled public write access.

Re:Moving a ProView 4.6 project to a 4.7 installation 13 years 11 months ago #720

  • Maden
  • Maden's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 86
  • Karma: 0
I now deleted the lines from the wb_dmp file that caused the errors during upgrade (shouldn't the upgrade procedure deal with the errors itself, since my project was working in 4.6?). Running the upgrade script again, the directory.wb_load is created now after the loaddb pass. This is its content:
[code:1]Volume directory $DirectoryVolume 254.254.254.253
Body SysBody 22-APR-1974 10:31:01.15
Attr NextOix = \"_X10\"
EndBody
Object System $System 1 10-NOV-2009 17:27:56.96
Body SysBody 10-NOV-2009 17:27:57.11
Attr SystemName = \"bruciatore\"
Attr SystemGroup = \"Common\"
EndBody
EndObject
Object VolBruciatore RootVolumeConfig 2 10-NOV-2009 17:27:57.11
Body RtBody 10-NOV-2009 17:27:57.11
EndBody
EndObject
Object Prd1 BusConfig 3 10-NOV-2009 17:27:57.12
Body RtBody 10-NOV-2009 17:27:57.13
Attr BusNumber = 1
EndBody
Object bruciatore NodeConfig 5 10-NOV-2009 17:27:57.15
Body RtBody 19-NOV-2009 12:42:33.58
Attr NodeName = \"localhost\"
Attr OperatingSystem = 64
Attr BootNode = \"localhost\"
Attr Address = \"127.0.0.1\"
EndBody
Object VolBruciatore RootVolumeLoad 6 10-NOV-2009 17:27:57.15
Body RtBody 10-NOV-2009 17:27:57.15
EndBody
EndObject
Object Distribute Distribute 7 10-NOV-2009 17:27:57.15
Body DevBody 10-NOV-2009 17:27:57.24
EndBody
EndObject
EndObject
EndObject
Object Sim999 BusConfig 4 10-NOV-2009 17:27:57.13
Body RtBody 10-NOV-2009 17:27:57.14
Attr BusNumber = 999
EndBody
Object localhost NodeConfig 8 10-NOV-2009 17:27:57.26
Body RtBody 10-NOV-2009 17:27:57.37
Attr NodeName = \"localhost\"
Attr OperatingSystem = 64
Attr BootNode = \"localhost\"
Attr Address = \"127.0.0.1\"
EndBody
Object VolBruciatore RootVolumeLoad 9 10-NOV-2009 17:27:57.27
Body RtBody 10-NOV-2009 17:27:57.27
EndBody
EndObject
Object Distribute Distribute 10 10-NOV-2009 17:27:57.27
Body DevBody 10-NOV-2009 17:27:57.38
EndBody
EndObject
EndObject
EndObject
EndVolume[/code:1]

I still cannot open the project.
But opening the volume with pwrs I could sucessfully run \"Build node\". Back to the upgrade procedure I execute the createload pass and get tons of errors like these:
[code:1]error dbody size 84 0.1.1.1:4350
error dbody size 1124 0.1.1.1:4606
error dbody size 112 0.1.1.1:4862[/code:1]

But (surprisingly) in the end it says:
[code:1]-- Successfully created load file for volume 'VolBruciatore'
-- 3913 objects with a total body size of 1587112 bytes were written to new file.

Before this pass you should compile the modules included by ra_plc_user.[/code:1]

It is still not possible to open the project.

Could you please explain what is causing all these difficulties? Why is it so difficult to use a project from the previous version in 4.7? I think I followed the upgrade procedure exactly. Am I trying to do something that has not been dealt with before?

Anyway I really appreciate your effort of supporting me, thanks.
Ondrej
The administrator has disabled public write access.

Re:Moving a ProView 4.6 project to a 4.7 installation 13 years 11 months ago #721

  • Maden
  • Maden's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 86
  • Karma: 0
I now deleted the lines from the wb_dmp file that caused the errors during upgrade (shouldn't the upgrade procedure deal with the errors itself, since my project was working in 4.6?). Running the upgrade script again, the directory.wb_load is created now after the loaddb pass. This is its content:
[code:1]Volume directory $DirectoryVolume 254.254.254.253
Body SysBody 22-APR-1974 10:31:01.15
Attr NextOix = \"_X10\"
EndBody
Object System $System 1 10-NOV-2009 17:27:56.96
Body SysBody 10-NOV-2009 17:27:57.11
Attr SystemName = \"bruciatore\"
Attr SystemGroup = \"Common\"
EndBody
EndObject
Object VolBruciatore RootVolumeConfig 2 10-NOV-2009 17:27:57.11
Body RtBody 10-NOV-2009 17:27:57.11
EndBody
EndObject
Object Prd1 BusConfig 3 10-NOV-2009 17:27:57.12
Body RtBody 10-NOV-2009 17:27:57.13
Attr BusNumber = 1
EndBody
Object bruciatore NodeConfig 5 10-NOV-2009 17:27:57.15
Body RtBody 19-NOV-2009 12:42:33.58
Attr NodeName = \"localhost\"
Attr OperatingSystem = 64
Attr BootNode = \"localhost\"
Attr Address = \"127.0.0.1\"
EndBody
Object VolBruciatore RootVolumeLoad 6 10-NOV-2009 17:27:57.15
Body RtBody 10-NOV-2009 17:27:57.15
EndBody
EndObject
Object Distribute Distribute 7 10-NOV-2009 17:27:57.15
Body DevBody 10-NOV-2009 17:27:57.24
EndBody
EndObject
EndObject
EndObject
Object Sim999 BusConfig 4 10-NOV-2009 17:27:57.13
Body RtBody 10-NOV-2009 17:27:57.14
Attr BusNumber = 999
EndBody
Object localhost NodeConfig 8 10-NOV-2009 17:27:57.26
Body RtBody 10-NOV-2009 17:27:57.37
Attr NodeName = \"localhost\"
Attr OperatingSystem = 64
Attr BootNode = \"localhost\"
Attr Address = \"127.0.0.1\"
EndBody
Object VolBruciatore RootVolumeLoad 9 10-NOV-2009 17:27:57.27
Body RtBody 10-NOV-2009 17:27:57.27
EndBody
EndObject
Object Distribute Distribute 10 10-NOV-2009 17:27:57.27
Body DevBody 10-NOV-2009 17:27:57.38
EndBody
EndObject
EndObject
EndObject
EndVolume[/code:1]

I still cannot open the project.
But opening the volume with pwrs I could sucessfully run \"Build node\". Back to the upgrade procedure I execute the createload pass and get tons of errors like these:
[code:1]error dbody size 84 0.1.1.1:4350
error dbody size 1124 0.1.1.1:4606
error dbody size 112 0.1.1.1:4862[/code:1]

But (surprisingly) in the end it says:
[code:1]-- Successfully created load file for volume 'VolBruciatore'
-- 3913 objects with a total body size of 1587112 bytes were written to new file.

Before this pass you should compile the modules included by ra_plc_user.[/code:1]

It is still not possible to open the project.

Could you please explain what is causing all these difficulties? Why is it so difficult to use a project from the previous version in 4.7? I think I followed the upgrade procedure exactly. Am I trying to do something that has not been dealt with before?

Anyway I really appreciate your effort of supporting me, thanks.
Ondrej
The administrator has disabled public write access.

Re:Moving a ProView 4.6 project to a 4.7 installation 13 years 11 months ago #722

  • robert
  • robert's Avatar
  • OFFLINE
  • Gold Boarder
  • Posts: 178
  • Karma: 7
I'm really sorry for this. I'm quite confused on this one. Need to think a bit on this one. Make som testing. You might have to wait til monday for an answer. Claes might come back with some bright ideas sooner.

Directory-volume looks ok to me. dbody-size error indicates to me objects in database doesn't have correct size.

/Robert
The administrator has disabled public write access.

Re:Moving a ProView 4.6 project to a 4.7 installation 13 years 11 months ago #723

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 3176
  • Thank you received: 502
  • Karma: 133
Hi Ondrej,

I've found a bug in the upgrade script. You have to exit upgrade.sh after the directorystructure pass and start it again to continue with the other passes.
That's what I use to do, to check that everythings all right, so I haven't discovered this bug before.

If you copy the wb_dmp files to $pwrp_db, and run upgrade.sh from the 'classvolumes' pass i hope it will work.

You don't have to remove any lines in the wb_dmp-file. You just have to notice which references are missing and correct them later in the database. My guess is that they were present already in the 4.6 version and has nothing to do with the upgrade itself.

/Claes
The administrator has disabled public write access.

Re:Moving a ProView 4.6 project to a 4.7 installation 13 years 11 months ago #724

  • Maden
  • Maden's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 86
  • Karma: 0
claes wrote:
I've found a bug in the upgrade script. You have to exit upgrade.sh after the directorystructure pass and start it again to continue with the other passes.

That was it! Just doing as you wrote did the job. I can now open the converted project and edit it in 4.7

Thanks for your help.

Ondrej
The administrator has disabled public write access.
Time to create page: 8.575 seconds