[Glass] a InternalError occurred (error 2261), The object with object ID 20 is corrupt. Reason: 'process switch not in critial state'

Dale K. Henrichs dale.henrichs at gemtalksystems.com
Mon Aug 19 19:03:12 PDT 2013


John, 

I believe the problem is that you didn't create a custom load script to reload Seaside and your application code ... by default the ConfigurationOfGLASS is loaded, but not anything else and going with the default you'd definitely end up in a situation where none of the seaside methods would be defined ... 

I believe that needed steps are covered in the install guide on page 36 in the section 'Configure Upgrade' with an example upgrade script for a Seaside application on page 37 ... 

Presumably I should add some logic to the upgradeSeasideImage script that does a sanity check for the BootstrapApplicationLoadSpecs to see if all of the application code has been correctly loaded... we might get false positives from classes that are supposed to have no methods, but perhaps a warning with the number and names of classes with no methods, might be the right solution... 

Dale 

----- Original Message -----

| From: "John McIntosh" <johnmci at smalltalkconsulting.com>
| To: "James Foster" <James.Foster at gemtalksystems.com>
| Cc: glass at lists.gemtalksystems.com
| Sent: Monday, August 19, 2013 6:11:21 PM
| Subject: Re: [Glass] a InternalError occurred (error 2261), The
| object with object ID 20 is corrupt. Reason: 'process switch not in
| critial state'

| Apply a little rm -rf on a test vwware machine

| johnmci at mail:/opt/gemstone/product/seaside/data$ startGemstone
| Starting stone: seaside
| --- 08/19/2013 09:43:21.735 EDT ---
| stopstone[Info]: GemStone version '3.1.0.4'
| stopstone[Info]: Server 'seaside' is not running.
| startstone[Info]: GemStone version '3.1.0.4'
| startstone[Info]: Starting Stone repository monitor 'seaside'.
| startstone[Info]: GEMSTONE is: '/opt/gemstone/product'.
| startstone[Info]:
| GEMSTONE_SYS_CONF=/opt/gemstone/GemStone64Bit3.1.0.4-x86_64.Linux/seaside/data/system.conf
| GEMSTONE_EXE_CONF=/opt/gemstone/GemStone64Bit3.1.0.4-x86_64.Linux/seaside/data/seaside.conf
| startstone[Info]: Log file is '/opt/gemstone/log/seaside.log'.
| startstone[Info]: GemStone server 'seaside' has been started, process
| 3017 .

| 218 upgradeLogDir=~/upgrade
| 219 export upgradeLogDir

| upgradeImage -s seaside

| Starting GemStone/S 64 3.x kernel class filein.

| Note: All user defined changes and additions to kernel classes will
| be
| removed. It is therefore advised that all such changes be filed out
| before
| starting conversion and filed back in after conversion is complete.
| Layered
| products which change the kernel classes, such as GemConnect, will
| also lose
| the changes. All such products must be reinstalled following the
| upgrade.

| Stone name is seaside.

| Press the return key to continue...

| Mon Aug 19 09:43:47 EDT 2013
| Starting upgrade...
| Upgrade completed. No errors detected.

| 311 mkdir ~/upgradeSeaside
| 323 upgradeLogDir=~/upgradeSeaside

| upgradeSeasideImage -s seaside

| Starting GemStone/S 64 3.x Seaside upgrade.

| Note: This script should be run AFTER upgradeImage has been run.
| SessionMethods will be enabled and all code included in the GLASS
| configuration will be reloaded.

| Stone name is seaside.

| Press the return key to continue...

| Mon Aug 19 09:57:20 EDT 2013
| Starting upgrade...
| Seaside Upgrade completed. No errors detected.

| ~/upgrade$ ls -l

| total 6952
| -rw-rw-r-- 1 johnmci johnmci 68 Aug 19 09:43 conversion.conf
| -rw-rw-r-- 1 johnmci johnmci 0 Aug 19 09:43 topazerrors.log
| -rw-rw-r-- 1 johnmci johnmci 7968 Aug 19 09:44 topaz.out
| -rw-rw-r-- 1 johnmci johnmci 7102627 Aug 19 09:44 upgradeImage.out

| ~/upgradeSeaside$ ls -l
| total 468
| -rw-rw-r-- 1 johnmci johnmci 68 Aug 19 09:57 conversion.conf
| -rw-rw-r-- 1 johnmci johnmci 5874 Aug 19 09:58 topaz.out
| -rw-rw-r-- 1 johnmci johnmci 463172 Aug 19 09:58 upgradeTo3x.out

| /opt/gemstone/product/seaside/data$ ls -l

| total 2573740
| drwxrwxr-x 2 johnmci johnmci 4096 Aug 17 13:52 backups
| -rw-r--r-- 1 johnmci johnmci 2577399808 Aug 19 10:02 extent0.dbf
| -rw-r--r-- 1 johnmci johnmci 882 Aug 16 19:51 system.conf
| -rw-rw-r-- 1 johnmci johnmci 0 Aug 19 09:57 topazerrors.log
| -rw-rw-r-- 1 johnmci johnmci 58095104 Aug 19 10:02 tranlog31.dbf

| --------------------

| UserGlobals includesKey: #'WAFastCGIAdaptor' -> true

| WAFastCGIAdaptor selectors -> anArray( )

| The update...Glass gemtools cmd shows * 1.0-beta.9 -Zinc & Metacellow
| Scripting API...

| Let me load that just in case...

| Loading 1.0-beta.9 of ConfigurationOfGLASS...redirecting to
| http://seaside.gemtalksystems.com/ss/metacello/?C=M;O=D
| redirecting to
| http://seaside.gemtalksystems.com/ss/metacello/ConfigurationOfMetacello-dkh.790.mcz

| Fetched -> ConfigurationOfMetacello-dkh.790 ---
| http://seaside.gemstone.com/ss/metacello ---
| http://seaside.gemstone.com/ss/metacelloredirecting to
| http://seaside.gemtalksystems.com/ss/metacello/ConfigurationOfMetacello-dkh.790.mcz

| Loaded -> ConfigurationOfMetacello-dkh.790 ---
| http://seaside.gemstone.com/ss/metacello ---
| http://seaside.gemstone.com/ss/metacelloredirecting to
| http://seaside.gemtalksystems.com/ss/MetacelloRepository/?C=M;O=D
| redirecting to
| http://seaside.gemtalksystems.com/ss/MetacelloRepository/ConfigurationOfGsMonticello-dkh.172.mcz

| Fetched -> ConfigurationOfGsMonticello-dkh.172 ---
| http://seaside.gemstone.com/ss/MetacelloRepository ---
| http://seaside.gemstone.com/ss/MetacelloRepositoryredirecting to
| http://seaside.gemtalksystems.com/ss/MetacelloRepository/ConfigurationOfGsMonticello-dkh.172.mcz

| Loaded -> ConfigurationOfGsMonticello-dkh.172 ---
| http://seaside.gemstone.com/ss/MetacelloRepository ---
| http://seaside.gemstone.com/ss/MetacelloRepositoryredirecting to
| http://seaside.gemtalksystems.com/ss/MetacelloRepository/ConfigurationOfGsSqueakCommon-dkh.24.mcz

| Fetched -> ConfigurationOfGsSqueakCommon-dkh.24 ---
| http://seaside.gemstone.com/ss/MetacelloRepository ---
| http://seaside.gemstone.com/ss/MetacelloRepository
| Loaded -> ConfigurationOfGsSqueakCommon-dkh.24 ---
| http://seaside.gemstone.com/ss/MetacelloRepository --- cache
| Fetched -> (nearest) ConfigurationOfMetacello-dkh.790 ---
| http://seaside.gemstone.com/ss/metacello ---
| http://seaside.gemstone.com/ss/metacelloredirecting to
| http://seaside.gemtalksystems.com/ss/metacello/ConfigurationOfMetacello-dkh.790.mcz

| Loaded -> ConfigurationOfMetacello-dkh.790 ---
| http://seaside.gemstone.com/ss/metacello ---
| http://seaside.gemstone.com/ss/metacello
| Project: Monticello 0.244 [0.244.2]
| Project: Metacello 1.0-beta.32
| Fetched -> ConfigurationOfFileTree-dkh.62 ---
| http://ss3.gemstone.com/ss/FileTree ---
| http://ss3.gemstone.com/ss/FileTree
| Loaded -> ConfigurationOfFileTree-dkh.62 ---
| http://ss3.gemstone.com/ss/FileTree ---
| http://ss3.gemstone.com/ss/FileTree
| Project: FileTree 1.0.1
| Project: Gofer 1.0.5.1
| Project: OmniBrowser stable [0.242.1]
| Project: Announcements 0.240.1 [0.242]
| Project: Metacello Tools 1.0-beta.32
| Project: FileTree 1.0.1
| Project: Gofer 1.0.5.1
| Project: OmniBrowser stable
| Project: Gofer Project Loader 1.0-alpha2.2
| Project: Gofer Core 1.0.2.1
| Project: OB 0.242.1
| Project: Release Support 0.242
| Project: Grease 1.0.7.2
| Project: System-Digital-Signatures 0.241.1
| Project: SMTPMail 0.241.1
| Project: UTF8 0.241.1
| Project: SqueakCommon 0.9.4
| Project: Grease 1.0.7.1
| Evaluated -> 1.0-beta.32 [ConfigurationOfMetacello] >>
| metacelloPrimeRegistry
| Evaluated -> 1.0-beta.32 [ConfigurationOfMetacello] >>
| metacelloPrimeRegistry
| Evaluated -> 1.0-alpha2.2 [ConfigurationOfGoferProjectLoader] >>
| postLoadLoader
| ...finished 1.0-beta.9
| Loading 1.0-beta.9 of ConfigurationOfGLASS...redirecting to
| http://seaside.gemtalksystems.com/ss/metacello/?C=M;O=D
| redirecting to
| http://seaside.gemtalksystems.com/ss/MetacelloRepository/?C=M;O=D

| Project: Monticello 0.244 [0.244.2]
| Project: Metacello 1.0-beta.32
| Project: FileTree 1.0.1
| Project: Gofer 1.0.5.1
| Project: OmniBrowser stable [0.242.1]
| Project: Announcements 0.240.1 [0.242]
| Project: Metacello Tools 1.0-beta.32
| Project: FileTree 1.0.1
| Project: Gofer 1.0.5.1
| Project: OmniBrowser stable
| Project: Gofer Project Loader 1.0-alpha2.2
| Project: Gofer Core 1.0.2.1
| Project: OB 0.242.1
| Project: Release Support 0.242
| Project: Grease 1.0.7.2
| Project: System-Digital-Signatures 0.241.1
| Project: SMTPMail 0.241.1
| Project: UTF8 0.241.1
| Project: SqueakCommon 0.9.4
| Project: Grease 1.0.7.1
| Evaluated -> 1.0-beta.32 [ConfigurationOfMetacello] >>
| metacelloPrimeRegistry
| Evaluated -> 1.0-beta.32 [ConfigurationOfMetacello] >>
| metacelloPrimeRegistry
| Evaluated -> 1.0-alpha2.2 [ConfigurationOfGoferProjectLoader] >>
| postLoadLoader
| ...finished 1.0-beta.9redirecting to
| http://seaside.gemtalksystems.com/ss/MetacelloRepository/?C=M;O=D

| -----------------
| WAFastCGIAdaptor selectors -> anArray( )

| WAObject selectors -> anArray( )

| On Mon, Aug 19, 2013 at 8:30 PM, John McIntosh <
| johnmci at smalltalkconsulting.com > wrote:

| | Ok WAFastCGIAdaptor selectors -> anArray( )
| 
| | Let me go back to the start and redo the migration on my test
| | machine
| | so I properly document what happens.
| 

| | On Mon, Aug 19, 2013 at 10:07 AM, James Foster <
| | James.Foster at gemtalksystems.com > wrote:
| 

| | | What do you get from (WAFastCGIAdaptor selectors) in a Workspace?
| | | This will help us figure out if the methods are actually missing
| | | or
| | | if the tools you are using for browsing are failing to see them.
| | 
| 

| | | ~ James
| | 
| 

| | | On Aug 19, 2013, at 6:24 AM, John McIntosh <
| | | johnmci at smalltalkconsulting.com > wrote:
| | 
| 

| | | | James had asked
| | | 
| | 
| 

| | | | " What do you get from (UserGlobals includesKey: #'<some
| | | | Seaside
| | | | class>') in a Workspace? Then do the methods exist?"
| | | 
| | 
| 

| | | | UserGlobals includesKey: #'WAFastCGIAdaptor' -> true
| | | 
| | 
| 

| | | | yet browsing the class it has no categories or methods.
| | | 
| | 
| 

| | | | On Mon, Aug 19, 2013 at 12:07 AM, Lisa Almarode <
| | | | lisa.almarode at gemtalksystems.com > wrote:
| | | 
| | 
| 

| | | | | The -C is only needed for conversion, as from 2.x to 3.x, and
| | | | | you
| | | | | only
| | | | 
| | | 
| | 
| 
| | | | | need to run that once after copying over your 2.x extents.
| | | | 
| | | 
| | 
| 

| | | | | I do apologize that the -C was missing for the 3.1 System
| | | | | Administration
| | | | 
| | | 
| | 
| 
| | | | | Guide; it's not a operational stone parameter so it's easy to
| | | | | miss.
| | | | | You
| | | | 
| | | 
| | 
| 
| | | | | can get some basic information on the arguments for utilities
| | | | | by
| | | | 
| | | 
| | 
| 
| | | | | executing startstone -h.
| | | | 
| | | 
| | 
| 

| | | | | Lisa Almarode
| | | | 
| | | 
| | 
| 
| | | | | GemTalk Technical Support
| | | | 
| | | 
| | 
| 

| | | | | On 8/18/2013 3:03 PM, John McIntosh wrote:
| | | | 
| | | 
| | 
| 
| | | | | > Ok, well missed doing
| | | | 
| | | 
| | 
| 
| | | | | > upgradeSeasideImage -s seaside
| | | | 
| | | 
| | 
| 
| | | | | > then I can connect.
| | | | 
| | | 
| | 
| 
| | | | | > Then I use GemTools to confirm the current server side
| | | | | > gemstone
| | | | | > tools is
| | | | 
| | | 
| | 
| 
| | | | | > loaded,
| | | | 
| | | 
| | 
| 
| | | | | > then add my MC repository and load my app, data seems
| | | | | > there.
| | | | 
| | | 
| | 
| 
| | | | | > But will wait on 3.1.0.5
| | | | 
| | | 
| | 
| 
| | | | | >
| | | | 
| | | 
| | 
| 
| | | | | > Not sure about the need for the '-C' parm, is that for
| | | | | > 2.4.x
| | | | | > to
| | | | | > 3.1.x ?
| | | | 
| | | 
| | 
| 
| | | | | >
| | | | 
| | | 
| | 
| 
| | | | | >
| | | | 
| | | 
| | 
| 

| | | | --
| | | 
| | 
| 
| | | | ===========================================================================
| | | 
| | 
| 
| | | | John M. McIntosh < johnmci at smalltalkconsulting.com >
| | | 
| | 
| 
| | | | Corporate Smalltalk Consulting Ltd. Twitter: squeaker68882
| | | 
| | 
| 
| | | | ===========================================================================
| | | 
| | 
| 

| | | | _______________________________________________
| | | 
| | 
| 
| | | | Glass mailing list
| | | 
| | 
| 
| | | | Glass at lists.gemtalksystems.com
| | | 
| | 
| 
| | | | http://lists.gemtalksystems.com/mailman/listinfo/glass
| | | 
| | 
| 

| | --
| 
| | ===========================================================================
| 
| | John M. McIntosh < johnmci at smalltalkconsulting.com >
| 
| | Corporate Smalltalk Consulting Ltd. Twitter: squeaker68882
| 
| | ===========================================================================
| 

| --
| ===========================================================================
| John M. McIntosh < johnmci at smalltalkconsulting.com >
| Corporate Smalltalk Consulting Ltd. Twitter: squeaker68882
| ===========================================================================

| _______________________________________________
| Glass mailing list
| Glass at lists.gemtalksystems.com
| http://lists.gemtalksystems.com/mailman/listinfo/glass
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gemtalksystems.com/mailman/private/glass/attachments/20130819/67db184d/attachment-0001.html>


More information about the Glass mailing list