From damm at yazzy.org Sat May 2 18:03:26 2009 From: damm at yazzy.org (Scott M. Likens) Date: Sat, 2 May 2009 15:03:26 -0700 Subject: [typo] Cross-thread violation & how I fixed the problem In-Reply-To: <49F80661.1080508@gmail.com> References: <49F6942B.5040207@gmail.com> <008C427F-FD82-4425-A88D-FEE03FFCFC24@yazzy.org> <49F7F445.1050805@gmail.com> <48BBB647-5DDC-430F-8F36-48F68D65B37B@yazzy.org> <49F80661.1080508@gmail.com> Message-ID: <0AAB9118-8B57-4B8D-84DC-B8A149F908E2@yazzy.org> Glad to hear it. It's amazing the kind of things you can find in the weirdest places, I ran into this and was able to reproduce it on Tiger quite well as it's a bit easier to escape that problem on Leopard it's just not as 100% :( On Apr 29, 2009, at 12:48 AM, Thomas Gallaway wrote: > Scott M. Likens wrote: >> Ahh, >> >> Then you need to remove any other offending ruby libraries that do >> not reside in /opt/local/lib >> >> Next time try not to find ancient arcane bugs that make me think >> your running panther... :) >> >> FYI, it's usually just in /usr/lib (libruby??.dylib??) > yeah okay I guess your right (just they where hiding in /usr/lib). > > libruby.1.dylib: > /usr/lib/libruby.1.dylib (compatibility version 1.8.0, current > version 1.8.2) > /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current > version 88.1.11) > lhc:/usr/lib atom$ otool -L libruby.dylib > libruby.dylib: > /usr/lib/libruby.1.dylib (compatibility version 1.8.0, current > version 1.8.2) > /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current > version 88.1.11) > > cause I looked in /opt/local/lib > lhc:/opt/local/lib atom$ otool -L libruby.1.8.dylib > libruby.1.8.dylib: > /opt/local/lib/libruby.dylib (compatibility version 1.8.0, > current version 1.8.7) > /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current > version 1.0.0) > /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current > version 88.1.11) > > so I just removed the 2 in /usr/lib and put the original gems back > and the json > gem did not produce the violation anymore. > > > Sometimes the all mighty google is just not as mighty when > researching this. ;-) > I wonder if the daley lama gives coding advice now? >> >> On Apr 28, 2009, at 11:31 PM, Thomas Gallaway wrote: >> >>> Scott M. Likens wrote: >>>> Hi, >>>> >>>> Using Macports or system Ruby? >>> lhc:/var/www/atomlab atom$ gem env >>> RubyGems Environment: >>> - RUBYGEMS VERSION: 1.3.2 >>> - RUBY VERSION: 1.8.7 (2009-04-08 patchlevel 160) [powerpc-darwin8] >>> - INSTALLATION DIRECTORY: /opt/local/lib/ruby/gems/1.8 >>> - RUBY EXECUTABLE: /opt/local/bin/ruby >>> - EXECUTABLE DIRECTORY: /opt/local/bin >>> - RUBYGEMS PLATFORMS: >>> - ruby >>> - powerpc-darwin-8 >>> - GEM PATHS: >>> - /opt/local/lib/ruby/gems/1.8 >>> - /Users/atom/.gem/ruby/1.8 >>> - GEM CONFIGURATION: >>> - :update_sources => true >>> - :verbose => true >>> - :benchmark => false >>> - :backtrace => false >>> - :bulk_threshold => 1000 >>> - :sources => ["http://gems.rubyforge.org/", "http://gems.github.com >>> "] >>> - REMOTE SOURCES: >>> - http://gems.rubyforge.org/ >>> - http://gems.github.com >>> lhc:/var/www/atomlab atom$ port version >>> Version: 1.710 >>> >>> >>>> On Apr 27, 2009, at 10:29 PM, Thomas Gallaway wrote: >>>> >>>>> I just spent 2 days figuring this out but it seems the issue is >>>>> one of the gems in the vendor/gems directory. >>>>> >>>>> Machine is a Mac Mini G4 1.25ghzisch with 10.4.6isch? (Anybody >>>>> else dislike the new intel mac's? ;-) ) >>>>> >>>>> I completely removed ruby & made sure it was using the macports >>>>> version and after pretty much nuking every single gem and gem >>>>> install typo on a empty directory stll got this: >>>>> >>>>> lhc:/var/www/atomlab root# rake db:create RAILS_ENV='production' >>>>> (in /private/var/www/atomlab) >>>>> config.gem: Unpacked gem calendar_date_select-1.15 in vendor/ >>>>> gems has no specification file. Run 'rake gems:refresh_specs' to >>>>> fix this. >>>>> config.gem: Unpacked gem coderay-0.8.260 in vendor/gems has no >>>>> specification file. Run 'rake gems:refresh_specs' to fix this. >>>>> config.gem: Unpacked gem htmlentities-4.0.0 in vendor/gems has >>>>> no specification file. Run 'rake gems:refresh_specs' to fix this. >>>>> config.gem: Unpacked gem json-1.1.3 in vendor/gems has no >>>>> specification file. Run 'rake gems:refresh_specs' to fix this. >>>>> [BUG] cross-thread violation on rb_gc() >>>>> ruby 1.8.2 (2004-12-25) [powerpc-darwin8.0] >>>>> >>>>> So I went ahead and mv vendor/gems/* /tmp/gems/ >>>>> >>>>> Of course now I was getting: >>>>> lhc:/var/www/atomlab root# rake db:create >>>>> (in /private/var/www/atomlab) >>>>> rake aborted! >>>>> no such file to load -- coderay >>>>> >>>>> After >>>>> gem install coderay htmlentities json calendar_date_select >>>>> >>>>> *drumroll* >>>>> lhc:/var/www/atomlab atom$ rake db:migrate RAILS_ENV='production' >>>>> (in /private/var/www/atomlab) >>>>> == InitialSchema: migrating >>>>> ================================================== >>>>> -- create_table(:users) >>>>> -> 0.0712s >>>>> -- create_table(:articles) >>>>> -> 0.1310s >>>>> -- add_index(:articles, :permalink) >>>>> >>>>> We have migrationage! >>>>> >>>>> Oh I then ran >>>>> lhc:/var/www/atomlab atom$ sudo rake gems:unpack >>>>> Password: >>>>> (in /private/var/www/atomlab) >>>>> Unpacked gem: '/private/var/www/atomlab/vendor/gems/ >>>>> coderay-0.8.312' >>>>> Unpacked gem: '/private/var/www/atomlab/vendor/gems/ >>>>> htmlentities-4.0.0' >>>>> Unpacked gem: '/private/var/www/atomlab/vendor/gems/json-1.1.4' >>>>> Unpacked gem: '/private/var/www/atomlab/vendor/gems/ >>>>> calendar_date_select-1.15' >>>>> >>>>> -- Atom >>>>> >>>>> _______________________________________________ >>>>> Typo-list mailing list >>>>> Typo-list at rubyforge.org >>>>> http://rubyforge.org/mailman/listinfo/typo-list >>>> >>>> _______________________________________________ >>>> Typo-list mailing list >>>> Typo-list at rubyforge.org >>>> http://rubyforge.org/mailman/listinfo/typo-list >>> _______________________________________________ >>> Typo-list mailing list >>> Typo-list at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/typo-list >>> >>> >>> >> >> _______________________________________________ >> Typo-list mailing list >> Typo-list at rubyforge.org >> http://rubyforge.org/mailman/listinfo/typo-list > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > > > !DSPAM:49f80b36272161502169540! > > From rick.denatale at gmail.com Tue May 26 07:26:44 2009 From: rick.denatale at gmail.com (Rick DeNatale) Date: Tue, 26 May 2009 07:26:44 -0400 Subject: [typo] Strange caching? problem Message-ID: I got up this morning to discover a strange occurrence on my blog server. My blog http://talklikeaduck.denhaven2.com/ seems to be serving up a blank page for JUST the landing page. The admin pages are fine, if I enter the url of an article page it comes back fine. But the base url comes back blank. Tailing the production log indicates that requests to that url aren't even hitting the rails app. I've swept the page cache using the typo admin ui, I've restarted the blog using cap. The same thing happens with Safari 4, Firefox, and Curl, so it's not a browser caching issue. I suspect that Apache and Passenger are not sending the request through, I restarted apache on the server and still the same thing. Ideas anyone? -- Rick DeNatale Blog: http://talklikeaduck.denhaven2.com/ Twitter: http://twitter.com/RickDeNatale WWR: http://www.workingwithrails.com/person/9021-rick-denatale LinkedIn: http://www.linkedin.com/in/rickdenatale From rick.denatale at gmail.com Tue May 26 08:45:21 2009 From: rick.denatale at gmail.com (Rick DeNatale) Date: Tue, 26 May 2009 08:45:21 -0400 Subject: [typo] Strange caching? problem In-Reply-To: References: Message-ID: On Tue, May 26, 2009 at 7:26 AM, Rick DeNatale wrote: > I got up this morning to discover a strange occurrence on my blog server. > > My blog http://talklikeaduck.denhaven2.com/ seems to be serving up a > blank page for JUST the landing page. > > The admin pages are fine, if I enter the url of an article page it > comes back fine. But the base url comes back blank. > > Tailing the production log indicates that requests to that url aren't > even hitting the rails app. ?I've swept the page cache using the typo > admin ui, I've restarted the blog using cap. > > The same thing happens with Safari 4, Firefox, and Curl, so it's not a > browser caching issue. > > I suspect that Apache and Passenger are not sending the request > through, I restarted apache on the server and still the same thing. Okay, I discovered that there was an empty file in public/index.html, I renamed it and now the root page is back. Not sure how it got blank. Looks like a bug in typo. -- Rick DeNatale Blog: http://talklikeaduck.denhaven2.com/ Twitter: http://twitter.com/RickDeNatale WWR: http://www.workingwithrails.com/person/9021-rick-denatale LinkedIn: http://www.linkedin.com/in/rickdenatale From michel at jkl5group.com Tue May 26 10:51:57 2009 From: michel at jkl5group.com (Michel R Vaillancourt) Date: Tue, 26 May 2009 10:51:57 -0400 Subject: [typo] Can't Change Themes Message-ID: <4A1C020D.6000008@jkl5group.com> http://blog.jkl5group.com/ "You're running Typo 5.3" Any theme I choose -other- than "Standard issue" and "Scribbish" result in: Status: 500 Internal Server Error Content-Type: text/html 500 Internal Server Error ... even if I General settings->Cache->Sweep cache . Permissions/ Owners look the same for all themes. Any suggestions? -- --Michel R Vaillancourt JKL-5 Groupe Inc.: "The center of your telephony service needs" V: 514-907-9429 F: 514-369-1562 michel at jkl5group.com From cyril.mougel at gmail.com Tue May 26 11:15:33 2009 From: cyril.mougel at gmail.com (Cyril Mougel) Date: Tue, 26 May 2009 17:15:33 +0200 Subject: [typo] Strange caching? problem In-Reply-To: References: Message-ID: <1B9314E5-1A39-4141-93A8-0879673FBCDA@gmail.com> Le 26 mai 09 ? 14:45, Rick DeNatale a ?crit : > On Tue, May 26, 2009 at 7:26 AM, Rick DeNatale > wrote: >> I got up this morning to discover a strange occurrence on my blog >> server. >> >> My blog http://talklikeaduck.denhaven2.com/ seems to be serving up a >> blank page for JUST the landing page. >> >> The admin pages are fine, if I enter the url of an article page it >> comes back fine. But the base url comes back blank. >> >> Tailing the production log indicates that requests to that url aren't >> even hitting the rails app. I've swept the page cache using the typo >> admin ui, I've restarted the blog using cap. >> >> The same thing happens with Safari 4, Firefox, and Curl, so it's >> not a >> browser caching issue. >> >> I suspect that Apache and Passenger are not sending the request >> through, I restarted apache on the server and still the same thing. > > Okay, I discovered that there was an empty file in public/index.html, > I renamed it and now the root page is back. > > Not sure how it got blank. Looks like a bug in typo. It's not a Typo issue. We generate the index.html. We delete it only if it's Typo to create it. If you create it manually, Typo can't delete it. We can't assume, all page generate if you don't generate it. -- Cyril Mougel http://blog.shingara.fr From cyril.mougel at gmail.com Tue May 26 11:38:41 2009 From: cyril.mougel at gmail.com (Cyril Mougel) Date: Tue, 26 May 2009 17:38:41 +0200 Subject: [typo] Can't Change Themes In-Reply-To: <4A1C020D.6000008@jkl5group.com> References: <4A1C020D.6000008@jkl5group.com> Message-ID: Le 26 mai 09 ? 16:51, Michel R Vaillancourt a ?crit : > http://blog.jkl5group.com/ > "You're running Typo 5.3" > > Any theme I choose -other- than "Standard issue" and "Scribbish" > result in: > > Status: 500 Internal Server Error Content-Type: text/html > 500 Internal Server Error > > ... even if I General settings->Cache->Sweep cache . Permissions/ > Owners look the same for all themes. Any suggestions? Can you paste the error log from production.log when you have 500 error ? -- Cyril Mougel http://blog.shingara.fr From cyril.mougel at gmail.com Wed May 27 04:29:22 2009 From: cyril.mougel at gmail.com (Cyril Mougel) Date: Wed, 27 May 2009 10:29:22 +0200 Subject: [typo] Can't Change Themes In-Reply-To: <4A1C1159.2010105@jkl5group.com> References: <4A1C020D.6000008@jkl5group.com> <4A1C1159.2010105@jkl5group.com> Message-ID: Le 26 mai 09 ? 17:57, Michel R Vaillancourt a ?crit : > Cyril Mougel wrote: >> >> Le 26 mai 09 ? 16:51, Michel R Vaillancourt a ?crit : >> >>> http://blog.jkl5group.com/ >>> "You're running Typo 5.3" >>> >>> Any theme I choose -other- than "Standard issue" and "Scribbish" >>> result in: >>> >>> Status: 500 Internal Server Error Content-Type: text/html >>> 500 Internal Server Error >>> >>> ... even if I General settings->Cache->Sweep cache . Permissions/ >>> Owners look the same for all themes. Any suggestions? >> >> Can you paste the error log from production.log when you have 500 >> error ? >> > Done! See the attached text file of "Log Soup". :) It's miss the file app/views/shared/_search.html.erb. You can copy this file (http://github.com/fdv/typo/tree/ede85f5658455f040dd704425149378f21a3fb65/app/views/shared ). We reintegrate it after. You can delete block I extract this to include it in sidebar. but some theme has no upgrade :( A wiki page explain what change in theme : http://wiki.github.com/fdv/typo/upgrading-to-typo-53 -- Cyril Mougel http://blog.shingara.fr From michel at jkl5group.com Wed May 27 11:06:58 2009 From: michel at jkl5group.com (Michel R Vaillancourt) Date: Wed, 27 May 2009 11:06:58 -0400 Subject: [typo] Can't Change Themes In-Reply-To: <4A1C5C54.2060304@matijs.net> References: <4A1C020D.6000008@jkl5group.com> <4A1C1159.2010105@jkl5group.com> <4A1C5C54.2060304@matijs.net> Message-ID: <4A1D5712.8040308@jkl5group.com> Matijs van Zuijlen wrote: > Interesting. Looks like many typo themes out in the wild may not work with typo > 5.3, due to differences in the supplied base layout files. > > Typo's standard set should work, though. Does the problem occur with Typographic > and Dirtilicious? > Good day, Matijs ! I just checked ... those two -do- work as expected. I didn't realize they were part of the default set. Dirtilicious looks pretty good so I'll run on that for now. :) But yes, it looks like just about everything else at the Typo theme park is broken. -- --Michel R Vaillancourt JKL-5 Groupe Inc.: "The center of your telephony service needs" V: 514-907-9429 F: 514-369-1562 michel at jkl5group.com