We have setup a new Bartender instance in a new server due to the following BTXML error Web service integration and recently it was upgraded to BT 2019 R2 and it was working fine couple of days and now it showed the BTXML error.
But after the new installation now ACCESS_VIOLATION error is coming as shown below.
Any advises on how to fix it?
Following is the BTXML Script,
<XMLScript Version="2.0" Trusted="true">
<Command Name="Print Document">
<Print SaveAfterPrintCondition="IfModified" ReturnPrintData="false" ReturnSummary="false" ReturnLabelData="false" ReturnChecksum="false" ReturnDataSources="false">
<Format CloseAtEndOfJob="false" SaveAtEndOfJob="false" RegenerateThumbnail="false">C:\BT\CartonLabelMixed_small.btw</Format>
<PrintSetup>
<Printer>Generic_ZPL</Printer>
</PrintSetup>
<QueryPrompt Name="ID">
<Value>1000000008</Value>
</QueryPrompt>
</Print>
</Command>
</XMLScript>
Following is the ACCESS_VIOLATION ERROR,
Print job 'CartonLabelMixed_small.btw' did not complete due to the following error: BarTender Image Dump: Exception ACCESS_VIOLATION occurred at address 0x00000001400B6FFB inside module C:\Program Files\Seagull\BarTender 2019\BarTend.exe loaded with base address 0x0000000140000000. (x64 PID:6424)
Invalid read operation at address 0x0x0000000000000080
0: 00000001407C393D MethodBase:0000000000000000 !
1: 00000001407C3E88 MethodBase:0000000000000000 !
2: 00000001407C4393 MethodBase:0000000000000000 !
3: 000000005EDCF769 MethodBase:000000005EDCF5F4 MSVCR100.dll!_CxxFrameHandler3
4: 000000005EDD0BCC MethodBase:000000005EDD0850 MSVCR100.dll!_CxxExceptionFilter
5: 000000005EDD1235 MethodBase:000000005EDD0850 MSVCR100.dll!_CxxExceptionFilter
6: 000000005EDD144D MethodBase:000000005EDD0850 MSVCR100.dll!_CxxExceptionFilter
7: 000000005EDCF66B MethodBase:000000005EDCF5F4 MSVCR100.dll!_CxxFrameHandler3
8: 00007FFE4F2D992D MethodBase:00007FFE4F2D9810 ntdll.dll!_chkstk
9: 00007FFE4F2786D3 MethodBase:00007FFE4F278250 ntdll.dll!RtlImageNtHeaderEx
10: 00007FFE4F2D8A4A MethodBase:00007FFE4F2D8A10 ntdll.dll!KiUserExceptionDispatcher
11: 00000001400B6FFB MethodBase:00007FFE4F2D8A10 ntdll.dll!KiUserExceptionDispatcher
12: 00000001400B6DCC MethodBase:00007FFE4F2D8A10 ntdll.dll!KiUserExceptionDispatcher
13: 00000001400D4E26 MethodBase:00007FFE4F2D8A10 ntdll.dll!KiUserExceptionDispatcher
14: 00000001401E4066 MethodBase:00007FFE4F2D8A10 ntdll.dll!KiUserExceptionDispatcher
15: 00000001401CBE33 MethodBase:00007FFE4F2D8A10 ntdll.dll!KiUserExceptionDispatcher
16: 00000001400CF0E1 MethodBase:00007FFE4F2D8A10 ntdll.dll!KiUserExceptionDispatcher
17: 00000001400FAE16 MethodBase:00007FFE4F2D8A10 ntdll.dll!KiUserExceptionDispatcher
18: 00000001400CB67D MethodBase:00007FFE4F2D8A10 ntdll.dll!KiUserExceptionDispatcher
19: 00000001404202A4 MethodBase:00007FFE4F2D8A10 ntdll.dll!KiUserExceptionDispatcher
20: 0000000140462B99 MethodBase:00007FFE4F2D8A10 ntdll.dll!KiUserExceptionDispatcher
21: 0000000140452ADE MethodBase:00007FFE4F2D8A10 ntdll.dll!KiUserExceptionDispatcher
22: 00000001404510B6 MethodBase:00007FFE4F2D8A10 ntdll.dll!KiUserExceptionDispatcher
23: 0000000140452D2F MethodBase:00007FFE4F2D8A10 ntdll.dll!KiUserExceptionDispatcher
24: 0000000140450CD4 MethodBase:00007FFE4F2D8A10 ntdll.dll!KiUserExceptionDispatcher
25: 0000000140453B7E MethodBase:00007FFE4F2D8A10 ntdll.dll!KiUserExceptionDispatcher
26: 0000000140415276 MethodBase:00007FFE4F2D8A10 ntdll.dll!KiUserExceptionDispatcher
27: 0000000140415040 MethodBase:00007FFE4F2D8A10 ntdll.dll!KiUserExceptionDispatcher
28: 0000000140414E12 MethodBase:00007FFE4F2D8A10 ntdll.dll!KiUserExceptionDispatcher
29: 0000000140415352 MethodBase:00007FFE4F2D8A10 ntdll.dll!KiUserExceptionDispatcher
30: 00007FFE4E687DE3 MethodBase:00007FFE4E687670 RPCRT4.dll!NdrInterfacePointerMemorySize
31: 00007FFE4E6543EF MethodBase:00007FFE4E654060 RPCRT4.dll!NdrStubCall2
32: 00007FFE4E8E222F MethodBase:00007FFE4E8E21B0 combase.dll!CStdStubBuffer_Invoke
33: 00007FFE4C7E5535 MethodBase:00007FFE4C7E47B0 OLEAUT32.dll!VARIANT_UserMarshal
34: 00007FFE4E92DE3C MethodBase:00007FFE4E927400 combase.dll!Ordinal122
35: 00007FFE4E92E482 MethodBase:00007FFE4E927400 combase.dll!Ordinal122
36: 00007FFE4E945E58 MethodBase:00007FFE4E9431E0 combase.dll!CoGetCallContext
37: 00007FFE4E94450F MethodBase:00007FFE4E9431E0 combase.dll!CoGetCallContext
38: 00007FFE4E942584 MethodBase:00007FFE4E93A2E0 combase.dll!CoMarshalInterface
39: 00007FFE4E949206 MethodBase:00007FFE4E9431E0 combase.dll!CoGetCallContext
40: 00007FFE4E9498CA MethodBase:00007FFE4E9496C0 combase.dll!CoTaskMemFree
41: 00007FFE4CD91C24 MethodBase:00007FFE4CD91730 USER32.dll!CallWindowProcW
42: 00007FFE4CD9156C MethodBase:00007FFE4CD913B0 USER32.dll!DispatchMessageW
43: 000000005E734F5A MethodBase:00007FFE4CD913B0 USER32.dll!DispatchMessageW
44: 000000005E735823 MethodBase:00007FFE4CD913B0 USER32.dll!DispatchMessageW
45: 000000005E7674B0 MethodBase:00007FFE4CD913B0 USER32.dll!DispatchMessageW
46: 000000014083C676 MethodBase:00007FFE4CD913B0 USER32.dll!DispatchMessageW
47: 00007FFE0961BED1 MethodBase:00007FFE4CD913B0 USER32.dll!DispatchMessageW
48: 00007FFE39F56A53 MethodBase:00007FFE39F55E70 clr.dll!DllCanUnloadNowInternal
49: 00007FFE39F56913 MethodBase:00007FFE39F55E70 clr.dll!DllCanUnloadNowInternal
50: 00007FFE39F57165 MethodBase:00007FFE39F55E70 clr.dll!DllCanUnloadNowInternal
51: 00007FFE3A03D5CD MethodBase:00007FFE3A03C1C0 clr.dll!GetCLRFunction
52: 00007FFE3A03D426 MethodBase:00007FFE3A03C1C0 clr.dll!GetCLRFunction
53: 00007FFE3A03D2D6 MethodBase:00007FFE3A03C1C0 clr.dll!GetCLRFunction
54: 00007FFE3A03D784 MethodBase:00007FFE3A03C1C0 clr.dll!GetCLRFunction
55: 00007FFE3A03D702 MethodBase:00007FFE3A03C1C0 clr.dll!GetCLRFunction
56: 00007FFE3A03E154 MethodBase:00007FFE3A03E140 clr.dll!CorExeMain
57: 00007FFE3BD381AD MethodBase:00007FFE3BD38140 mscoreei.dll!CorExeMain
58: 00007FFE3C0C10AB MethodBase:00007FFE3C0C10A0 MSCOREE.DLL!CorExeMain
59: 00007FFE4EDA8364 MethodBase:00007FFE4EDA8350 KERNEL32.dll!BaseThreadInitThunk
60: 00007FFE4F295E91 MethodBase:00007FFE4F295E70 ntdll.dll!RtlUserThreadStart
Did you specify user credentials in the integration builder? In my experience BT is not good with using the " inherit from service" option ( under integration ==> User Account) Make sure that the account you use is one that has rights on the domain and include the domain with the user.
About the print engine, I know it sometimes has troubles when printing in large batches. Since this is not the case I also believe this is an issue with rights. There are other possibilities but I would start with the account.
Also make sure to stop the integration on the old server which had the print engine problem. Having two different integrations tugging on the same data to print can also cause some issues.
Related
I am currently working on an RSS feed that was working for a while but now has an encoding issue. After trying many of the solutions here unsuccessfully, I have deduced that I may be having issues with the feed parser.
The error starts with the index page:
ActionView::Template::Error (incompatible character encodings: ASCII-8BIT and UTF-8):
11:
12: <div class="entry_wrapper">
13: <div class="entry_box">
14: <% feed.entries.each do |entry| %>
15: <p class="entry_title"><%= sanitize link_to entry.title, entry.url %></p>
16:
17:
app/models/feed.rb:6:in `entries'
app/views/feeds/index.html.erb:14:in `block in _app_views_feeds_index_html_erb__2672739530113604393_70126099705280'
app/views/feeds/index.html.erb:5:in `_app_views_feeds_index_html_erb__2672739530113604393_70126099705280'
Here is larger section of the Feed#Index page:
<% #feeds.each do |feed| %> # Line 5 here
<p class="feed_url">
<%= link_to feed.url, feed %>
<%= link_to "Edit", edit_feed_path(feed), class: "blue" %>
<%= link_to "Delete", feed_path(feed), method: :delete, data: { confirm: 'Are you sure you want to delete this feed url?' }, class: "blue" %>
</p>
<div class="entry_wrapper">
<div class="entry_box">
<% feed.entries.each do |entry| %>
<p class="entry_title"><%= sanitize link_to entry.title, entry.url %></p>
I deleted the Feed URL's in the console so the page rendered fine without any urls to pull from. However, as soon as I added one, I got the same error as before.
I tried testing the encoding of the Feed entries in the console and got the following error:
2.1.1 :001 > g = Feed.last
Feed Load (0.1ms) SELECT "feeds".* FROM "feeds" ORDER BY "feeds"."id" DESC LIMIT 1
=> #<Feed id: 9, name: nil, created_at: "2016-01-18 05:01:54", updated_at: "2016-01-18 05:01:54", url: "http://feeds.feedburner.com/MattsTravelSite">
2.1.1 :002 > g.entries
Encoding::CompatibilityError: incompatible character encodings: ASCII-8BIT and UTF-8
from /Users/danieluribe/.rvm/gems/ruby-2.1.1/gems/oga-2.0.0/lib/oga/xml/entities.rb:77:in `gsub'
from /Users/danieluribe/.rvm/gems/ruby-2.1.1/gems/oga-2.0.0/lib/oga/xml/entities.rb:77:in `decode'
from /Users/danieluribe/.rvm/gems/ruby-2.1.1/gems/oga-2.0.0/lib/oga/entity_decoder.rb:14:in `decode'
from /Users/danieluribe/.rvm/gems/ruby-2.1.1/gems/oga-2.0.0/lib/oga/entity_decoder.rb:5:in `try_decode'
from /Users/danieluribe/.rvm/gems/ruby-2.1.1/gems/oga-2.0.0/lib/oga/xml/sax_parser.rb:151:in `on_text'
from /Users/danieluribe/.rvm/gems/ruby-2.1.1/gems/oga-2.0.0/lib/oga/xml/parser.rb:541:in `_rule_33'
from /Users/danieluribe/.rvm/gems/ruby-2.1.1/gems/oga-2.0.0/lib/oga/xml/parser.rb:239:in `block in each_token'
from /Users/danieluribe/.rvm/gems/ruby-2.1.1/gems/oga-2.0.0/lib/oga/xml/lexer.rb:237:in `call'
from /Users/danieluribe/.rvm/gems/ruby-2.1.1/gems/oga-2.0.0/lib/oga/xml/lexer.rb:237:in `add_token'
from /Users/danieluribe/.rvm/gems/ruby-2.1.1/gems/oga-2.0.0/lib/oga/xml/lexer.rb:439:in `on_element_end'
from /Users/danieluribe/.rvm/gems/ruby-2.1.1/gems/oga-2.0.0/lib/oga/xml/lexer.rb:190:in `advance_native'
from /Users/danieluribe/.rvm/gems/ruby-2.1.1/gems/oga-2.0.0/lib/oga/xml/lexer.rb:190:in `block in advance'
from /Users/danieluribe/.rvm/gems/ruby-2.1.1/gems/oga-2.0.0/lib/oga/xml/lexer.rb:137:in `read_data'
from /Users/danieluribe/.rvm/gems/ruby-2.1.1/gems/oga-2.0.0/lib/oga/xml/lexer.rb:189:in `advance'
from /Users/danieluribe/.rvm/gems/ruby-2.1.1/gems/oga-2.0.0/lib/oga/xml/parser.rb:236:in `each_token'
from /Users/danieluribe/.rvm/gems/ruby-2.1.1/gems/oga-2.0.0/lib/oga/xml/parser.rb:269:in `parse'
... 20 levels...
from /Users/danieluribe/.rvm/gems/ruby-2.1.1/gems/activesupport-4.1.7/lib/active_support/dependencies.rb:241:in `load'
from /Users/danieluribe/.rvm/gems/ruby-2.1.1/gems/activesupport-4.1.7/lib/active_support/dependencies.rb:241:in `block in load'
from /Users/danieluribe/.rvm/gems/ruby-2.1.1/gems/activesupport-4.1.7/lib/active_support/dependencies.rb:232:in `load_dependency'
from /Users/danieluribe/.rvm/gems/ruby-2.1.1/gems/activesupport-4.1.7/lib/active_support/dependencies.rb:241:in `load'
from /Users/danieluribe/.rvm/gems/ruby-2.1.1/gems/spring-1.3.6/lib/spring/commands/rails.rb:6:in `call'
from /Users/danieluribe/.rvm/gems/ruby-2.1.1/gems/spring-1.3.6/lib/spring/command_wrapper.rb:38:in `call'
from /Users/danieluribe/.rvm/gems/ruby-2.1.1/gems/spring-1.3.6/lib/spring/application.rb:183:in `block in serve'
from /Users/danieluribe/.rvm/gems/ruby-2.1.1/gems/spring-1.3.6/lib/spring/application.rb:156:in `fork'
from /Users/danieluribe/.rvm/gems/ruby-2.1.1/gems/spring-1.3.6/lib/spring/application.rb:156:in `serve'
from /Users/danieluribe/.rvm/gems/ruby-2.1.1/gems/spring-1.3.6/lib/spring/application.rb:131:in `block in run'
from /Users/danieluribe/.rvm/gems/ruby-2.1.1/gems/spring-1.3.6/lib/spring/application.rb:125:in `loop'
from /Users/danieluribe/.rvm/gems/ruby-2.1.1/gems/spring-1.3.6/lib/spring/application.rb:125:in `run'
from /Users/danieluribe/.rvm/gems/ruby-2.1.1/gems/spring-1.3.6/lib/spring/application/boot.rb:18:in `<top (required)>'
from /Users/danieluribe/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/danieluribe/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
I double-checked to see if the website I am pulling from is in UTF-8 encoding at the W3C-Validator website:
This document was successfully checked as well-formed XML!
Result: Passed, 1 warning(s)
Address:
http://feeds.feedburner.com/MattsTravelSite
Encoding: utf-8
Doctype: XML
Root Element: feed
Root Namespace: http://www.w3.org/2005/Atom
I tried "forcing" the encoding in the model, but I think my coding skills are a little lacking in terms of creating methods. Here is the entries model I created originally for the Feed that is being used in the Feed#Index.
class Feed < ActiveRecord::Base
has_many :items
def entries(num = 3)
Feedjira::Feed.add_common_feed_entry_element("img")
feed = Feedjira::Feed.fetch_and_parse(url)
feed.entries.take(num)
# add_items(feed.entries) # Saving items to database
end
....
Since this model was working before, I'm not sure what happened. I did take a few months from the app so I don't know if anything changed with Feedjirra. Any help would be greatly appreciated.
I am trying to setup code on mac os. it worked perfectly on ubuntu. i installed all the gems and when i hit the url after switching on the server i am getting this error. deeply frustrated
Showing /Users/ayruskrishna/code/krizda/app/views/spree/shared/_header.html.erb where line #13 raised:
FATAL ERROR: CodeRange::GetNextAllocationBlock Allocation failed - process out of memory
(in /Users/ayruskrishna/.rvm/gems/ruby-1.9.3-p385/gems/spree_core-1.2.0/app/assets/javascripts/store/checkout.js.coffee)
Extracted source (around line #13):
10: <%= favicon_link_tag '/assets/favicon1.ico' %>
11: <%= stylesheet_link_tag 'store/all', :media => 'screen' %>
12: <%= csrf_meta_tags %>
13: <%= javascript_include_tag 'store/all' %>
14: </head>
15: <body>
16: <div class="wrap">
Trace of template inclusion: app/views/layouts/spree.html.erb
Rails.root: /Users/ayruskrishna/code/krizda
It appears you're using Spree 1.2.0 I'd suggest trying a newer version (v1.2.4 is available in the same stable line). I'd also checkout the Activity Monitor OS X app.. A spree store for me typically uses less than 200MB of RAM.
You could also look at using an alternative web server... http://puma.io/ claims to have a significantly smaller memory footprint than some of the alternatives.
I was looking into How to use rails-i18n with HAML to find out how i18n works together with haml but ran into an issue I can't figure out.
This works:
en.yml
en:
sitename: "Happy Sunday"
new.haml
%h1= t("sitename")
When I change the yml to
en.yml
en:
home:
sitename: "Happy Sunday"
new.haml
%h1= t("home.sitename")
Then I get the following error:
ArgumentError in Devise/sessions#new
Showing
..../devise/sessions/new.html.haml where line #20 raised:
syntax error on line 4, col 6: ` home:'
Extracted source (around line #20):
17: = flash[:alert]
18: .row
19: .headline.pagination-centered
20: %h1= t("home.sitename")
21: %h2= t("slogan")
22: .row.headline.pagination-centered
23: %a{:href => "/tour"}
The message:
syntax error on line 4, col 6: ` home:'
suggests an error in your Yaml. Check en.yml, especially that you’re not using tabs and that your indentation is consistent.
i am using rails 2.3.4 and i am facing "no method error"
there is possibility to not find method but my question is - is there possibility to error occurred because of empty table? or error in another controller or helper?
error trace:
Processing QuoteRequestsController#create (for 127.0.0.1 at 2012-10-17 16:07:34) [POST]
Parameters: {"controller"=>"quote_requests", "quote_request"=>{"packing_required"=>"", "move_steps_number"=>"", "phone_day"=>"", "pickup_region_id"=>"", "email"=>"", "move_to_street"=>"", "move_from_suburb"=>"", "title"=>"", "quick_estimate"=>"true", "room_counts"=>{"9"=>"0", "8"=>"0", "5"=>"0", "2"=>"0", "3"=>"0", "6"=>"0", "7"=>"0", "1"=>"0", "4"=>"", "11"=>"0"}, "arrive_parking_notes"=>"", "first_name"=>"", "arrive_date_flexible"=>"false", "insurance_value"=>"", "arrive_steps_number"=>"", "move_parking_notes"=>"", "last_name"=>"", "move_region_id"=>"", "move_date_flexible"=>"false", "move_type_id"=>"26", "move_to_city"=>"", "arrive_date"=>"", "move_from_street"=>"", "move_date"=>"", "move_to_suburb"=>"", "move_from_city"=>"", "phone_mobile"=>""}, "authenticity_token"=>"U42qF1c0FJXvnC1SCNNYWzxKN3Pem7dC6L01LbTQD7E=", "commit"=>"Submit", "action"=>"create"}
NoMethodError (undefined method service_options' for nil:NilClass):
vendor/extensions/smartmove/app/controllers/quote_requests_controller.rb:136:inload_regions'
vendor/radiant/vendor/plugins/haml/rails/./lib/sass/plugin/rails.rb:19:in `process'
/home/bacancy/.rvm/rubies/ruby-1.8.7-p370/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
/home/bacancy/.rvm/rubies/ruby-1.8.7-p370/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
/home/bacancy/.rvm/rubies/ruby-1.8.7-p370/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
/home/bacancy/.rvm/rubies/ruby-1.8.7-p370/lib/ruby/1.8/webrick/server.rb:162:in `start'
/home/bacancy/.rvm/rubies/ruby-1.8.7-p370/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
/home/bacancy/.rvm/rubies/ruby-1.8.7-p370/lib/ruby/1.8/webrick/server.rb:95:in `start'
/home/bacancy/.rvm/rubies/ruby-1.8.7-p370/lib/ruby/1.8/webrick/server.rb:92:in `each'
/home/bacancy/.rvm/rubies/ruby-1.8.7-p370/lib/ruby/1.8/webrick/server.rb:92:in `start'
/home/bacancy/.rvm/rubies/ruby-1.8.7-p370/lib/ruby/1.8/webrick/server.rb:23:in `start'
/home/bacancy/.rvm/rubies/ruby-1.8.7-p370/lib/ruby/1.8/webrick/server.rb:82:in `start'
in "vendor/extensions/smartmove/app/controllers/quote_requests_controller.rb" line no:136 is
#regions = ServiceDescription.find_by_name('region').service_options
in my database table is there service_descriptions and service_options. is there related to mysql or controller?
please guide me i am very much confuse. this is existing application i have to configure in local as well as on server
Thank you in advance
Thanking You
Nirav
You are getting error because ServiceDescription.find_by_name('region') returns nil (This simply means you have no data in your service_descriptionstable with name 'region') and then you are calling service_options on it (i.e. nil)
Best way to avoid such case is to check if value is nil or not before applying any method it.
#regions = ServiceDescription.find_by_name('region')
#service_options = #regions ? #regions.service_options : nil
I am trying to use our app to generate screenshots. However, instead I generate the following:
NameError in Step_results#show
Showing app/views/step_results/show.html.haml where line #26 raised:
uninitialized constant StepResult::AWS
Extracted source (around line #26):
23: %p{ :title => #step_result.message }= h #step_result.message
24: = link_to 'close window', '#', :onclick => 'window.close();'
25: = link_to 'Screenshot', html_screen_shot_src(#step_result), :class => 'screenshot', :target => "frame", :id => "screenshot", :onclick => '$("a#screenshot").hide(); $("a#screenscrape").show()' unless html_screen_shot_src(#step_result).nil?
26: = link_to 'Screen Scrape', html_screen_scrape_src(#step_result), :class => 'screenscrape', :target => "frame", :id => "screenscrape", :onclick => '$("a#screenscrape").hide(); $("a#screenshot").show()'
27:
28: #frame
29: %iframe{ :src => html_screen_scrape_src(#step_result), :name => 'frame' }
/Users/jasonbodak/.rvm/gems/ree-1.8.7-2011.03#janova-local_app/gems/activesupport-2.3.11/lib/active_support/dependencies.rb:131:in `const_missing'
/Users/jasonbodak/janova/janova/app/models/step_result.rb:73:in `html_scrape_url'
/Users/jasonbodak/janova/janova/app/helpers/step_results_helper.rb:3:in `html_screen_scrape_src'
/Users/jasonbodak/janova/janova/app/views/step_results/show.html.haml:26:in `_run_haml_app47views47step_results47show46html46haml'
/Users/jasonbodak/.rvm/gems/ree-1.8.7-2011.03#janova-local_app/gems/actionpack-2.3.11/lib/action_view/renderable.rb:34:in `send'
/Users/jasonbodak/.rvm/gems/ree-1.8.7-2011.03#janova-local_app/gems/actionpack-2.3.11/lib/action_view/renderable.rb:34:in `render'
/Users/jasonbodak/.rvm/gems/ree-1.8.7-2011.03#janova-local_app/gems/actionpack-2.3.11/lib/action_view/base.rb:306:in `with_template'
/Users/jasonbodak/.rvm/gems/ree-1.8.7-2011.03#janova-local_app/gems/actionpack-2.3.11/lib/action_view/renderable.rb:30:in `render'
/Users/jasonbodak/.rvm/gems/ree-1.8.7-2011.03#janova-local_app/gems/actionpack-2.3.11/lib/action_view/template.rb:205:in `render_template'
/Users/jasonbodak/.rvm/gems/ree-1.8.7-2011.03#janova-local_app/gems/actionpack-2.3.11/lib/action_view/base.rb:265:in `render_without_haml'
/Users/jasonbodak/.rvm/gems/ree-1.8.7-2011.03#janova-local_app/gems/haml-3.0.22/lib/haml/helpers/action_view_mods.rb:13:in `render'
/Users/jasonbodak/.rvm/gems/ree-1.8.7-2011.03#janova-local_app/gems/actionpack-2.3.11/lib/action_controller/base.rb:1252:in `render_for_file'
/Users/jasonbodak/.rvm/gems/ree-1.8.7-2011.03#janova-local_app/gems/actionpack-2.3.11/lib/action_controller/base.rb:978:in `render_without_benchmark'
/Users/jasonbodak/.rvm/gems/ree-1.8.7-2011.03#janova-local_app/gems/actionpack-2.3.11/lib/action_controller/benchmarking.rb:51:in `render'
/Users/jasonbodak/.rvm/gems/ree-1.8.7-2011.03#janova-local_app/gems/activesupport-2.3.11/lib/active_support/core_ext/benchmark.rb:17:in `ms'
/Users/jasonbodak/.rvm/gems/ree-1.8.7-2011.03#janova-local_app/gems/activesupport-2.3.11/lib/active_support/core_ext/benchmark.rb:17:in `ms'
/Users/jasonbodak/.rvm/gems/ree-1.8.7-2011.03#janova-local_app/gems/actionpack-2.3.11/lib/action_controller/benchmarking.rb:51:in `render'
/Users/jasonbodak/janova/janova/app/controllers/step_results_controller.rb:4:in `show'
/Users/jasonbodak/.rvm/gems/ree-1.8.7-2011.03#janova-local_app/gems/actionpack-2.3.11/lib/action_controller/base.rb:1333:in `send'
/Users/jasonbodak/.rvm/gems/ree-1.8.7-2011.03#janova-local_app/gems/actionpack-2.3.11/lib/action_controller/base.rb:1333:in `perform_action_without_filters'
/Users/jasonbodak/.rvm/gems/ree-1.8.7-2011.03#janova-local_app/gems/actionpack-2.3.11/lib/action_controller/filters.rb:617:in `call_filters'
/Users/jasonbodak/.rvm/gems/ree-1.8.7-2011.03#janova-local_app/gems/actionpack-2.3.11/lib/action_controller/filters.rb:610:in `perform_action_without_benchmark'
/Users/jasonbodak/.rvm/gems/ree-1.8.7-2011.03#janova-local_app/gems/actionpack-2.3.11/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
/Users/jasonbodak/.rvm/gems/ree-1.8.7-2011.03#janova-local_app/gems/activesupport-2.3.11/lib/active_support/core_ext/benchmark.rb:17:in `ms'
/Users/jasonbodak/.rvm/gems/ree-1.8.7-2011.03#janova-local_app/gems/activesupport-2.3.11/lib/active_support/core_ext/benchmark.rb:17:in `ms'
/Users/jasonbodak/.rvm/gems/ree-1.8.7-2011.03#janova-local_app/gems/actionpack-2.3.11/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
/Users/jasonbodak/.rvm/gems/ree-1.8.7-2011.03#janova-local_app/gems/actionpack-2.3.11/lib/action_controller/rescue.rb:160:in `perform_action_without_flash'
/Users/jasonbodak/.rvm/gems/ree-1.8.7-2011.03#janova-local_app/gems/actionpack-2.3.11/lib/action_controller/flash.rb:151:in `perform_action'
/Users/jasonbodak/.rvm/gems/ree-1.8.7-2011.03#janova-local_app/gems/actionpack-2.3.11/lib/action_controller/base.rb:532:in `send'
/Users/jasonbodak/.rvm/gems/ree-1.8.7-2011.03#janova-local_app/gems/actionpack-2.3.11/lib/action_controller/base.rb:532:in `process_without_filters'
/Users/jasonbodak/.rvm/gems/ree-1.8.7-2011.03#janova-local_app/gems/actionpack-2.3.11/lib/action_controller/filters.rb:606:in `process'
/Users/jasonbodak/.rvm/gems/ree-1.8.7-2011.03#janova-local_app/gems/actionpack-2.3.11/lib/action_controller/base.rb:391:in `process'
/Users/jasonbodak/.rvm/gems/ree-1.8.7-2011.03#janova-local_app/gems/actionpack-2.3.11/lib/action_controller/base.rb:386:in `call'
/Users/jasonbodak/.rvm/gems/ree-1.8.7-2011.03#janova-local_app/gems/actionpack-2.3.11/lib/action_controller/routing/route_set.rb:438:in `call'
Any ideas why I am suddenly getting an Amazon Worker Service error now? Thanks.
Edit: Here is the code for the html_scrape_url method:
def html_scrape_url
tries = 0
begin
return nil if html_filename.blank?
AWS::S3::S3Object.url_for(html_filename, s3_bucket)
rescue AWS::S3::NoConnectionEstablished => e
if tries < 1
logger.debug "S3 connection not established. Establishing..."
AWS::S3::Base.establish_connection!(
:access_key_id => APP_CONFIG[:amazon_access_key_id],
:secret_access_key => APP_CONFIG[:amazon_secret_access_key]
)
tries += 1
retry
end
end
end
OK, this is very weird, but adding
require 'aws/s3'
to the top of my model (called step_result.rb, as you can see above) fixed the issue. I must admit that I do not understand how doing that fixed it... I just tried it on a whim, but I'm glad I did.