NameError: uninitialized constant Mail::TestMailer on Elastic Beanstalk - ruby

I'm getting this error
NameError: uninitialized constant Mail::TestMailer
on my Ruby on Rails project on Elastic Beanstalk.
Other sources told me to install 3 gems.
gem 'net-smtp', '>= 0.3.3'
gem 'net-imap', '>= 0.1.2'
gem 'net-pop', '>= 0.1.2'
I have already installed them, but it still does not work.
eb deploy fails every time.
Ruby version 3.0.5, rails 6.1.7
Code from application mailer, not sure if this helps but just in case.
class ApplicationMailer < ActionMailer::Base
default from: 'from#example.com'
layout 'mailer'
end
Please see the error log below
eb deploy Creating application version archive "app-4523-230109_233425301397". Uploading: [##################################################] 100% Done... 2023-01-09 14:38:30 INFO Environment update is starting. 2023-01-09 14:38:36 INFO Deploying new version to instance(s). 2023-01-09 14:40:51 ERROR Instance deployment failed. For details, see 'eb-engine.log'. 2023-01-09 14:40:53 ERROR [Instance: i-0e263523f982bac43] Command failed on instance. Return code: 1 Output: Engine execution has encountered an error.. 2023-01-09 14:40:53 INFO Command execution completed on all instances. Summary: [Successful: 0, Failed: 1]. 2023-01-09 14:40:53 ERROR Unsuccessful command execution on instance id(s) 'i-0e263523f982bac43'. Aborting the operation. 2023-01-09 14:40:54 ERROR Failed to deploy application.
I hope this helps.
Let me know if you need more information.

Related

OSGI bundle status grace period

I am trying to install two bundles on Karaf. For one of the bundle i am getting error and when I see the bundle:diag i got below message. It is the same thing compaining in logs also. Similar kind of bundle already deploy and it has the same dependencies. first one is working but the for second bundle i am getting below error. any thoughts?
opendaylight-user#root>bundle:diag
videoweb (421)
Status: GracePeriod
Blueprint
2/10/16 6:07 PM
Missing dependencies:
(objectClass=org.osgi.service.http.HttpService)
2016-02-10 23:54:07.113 GMT+00:00 [Blueprint Extender: 3] ERROR o.a.a.b.c.BlueprintContainerImpl - Unable to start blueprint container for bundle com.xyz.videosdn.tesweb due to unresolved dependencies [(objectClass=org.osgi.service.http.HttpService)]
java.util.concurrent.TimeoutException: null
at org.apache.aries.blueprint.container.BlueprintContainerImpl$1.run(BlueprintContainerImpl.java:336) [org.apache.aries.blueprint.core:1.4.0]
at org.apache.aries.blueprint.utils.threading.impl.DiscardableRunnable.run(DiscardableRunnable.java:48) [org.apache.aries.blueprint.core:1.4.0]
The error means that your bundle has a mandatory reference to a service with the interface org.osgi.service.http.HttpService.
So you need to install a bundle that provides this service. In karaf this service is normally provided by pax-web. It can be installed using:
feature:install http

Error using Poseidon: Poseidon::Errors::UnableToFetchMetadata

I am attempting to use the Poseidon gem with a Kafka container. However, I keep receiving the following error:
Poseidon::Errors::UnableToFetchMetadata
Any idea how I could troubleshoot this error?

Capistrano: The deploy has failed with an error: #<Errno::EPROTO: Protocol error # rb_file_s_stat

I am working to upgrade an app to Rails 4/Ruby 2/Cap 3. I feel as if I am 80% there. When running the following capistrano deploy task:
task :copy_shared_db_config do
on roles(:app) do
execute "mkdir -p #{shared_path}/config"
example_config_contents = File.read('config/database.example.yml')
upload!(example_config_contents, "#{shared_path}/config/database.yml", :via => :scp)
end
end
I receive the following error:
The deploy has failed with an error: #<Errno::EPROTO: Protocol error # rb_file_s_stat -
The deploy works fine when I am not using this task. The error mystifies me on where to start debugging.
Update:
I am almost positive that the error has to do with my usage of the update! method, which I believe puts this error into the realm of SSHKit.

New Relic, Heroku error: ERROR : [New Relic] Error running task in worker loop, likely a server error

I am using Papertrail to monitor my heroku app and it seems that I am getting this same error repeatedly:
app/web.2: ** [NewRelic][12/13/13 17:14:17 +0000 f00d3735-79e0-4b0a-9e0d-9315444e2641 (2)] ERROR : Error running task in worker loop, likely a server error:
I read in the ruby docs here that this is probably:
This is probably a server error which has been logged in the server along
# with your account name. Check and see if the agent listener is in the
# stack trace and log it quietly if it is.
I am not quite sure how to debug it and would love some help. Thanks!
Please let me know if my source code would be helpful

Unable to start the Passenger - 'analytics_log_dir' is missing

I'm trying to run Passenger on Ruby 1.9.3-p392, nginx 1.2.7 and rvm 1.19.6. I'm getting this strange error:
Unable to start the Phusion Passenger watchdog because it encountered
the following error during startup: Unable to start the Phusion Passenger
logging agent: it seems to have crashed during startup for an unknown reason,
with exit code 1 (-1: Unknown error)
terminate called after throwing an instance of
'Passenger::VariantMap::MissingKeyException'
what(): Required key 'analytics_log_dir' is missing
[ pid=17372, timestamp=1366554425 ] Process aborted! signo=SIGABRT(6),
reason=SI_TKILL, signal sent by PID 17372 with UID 0, backtrace available.
--------------------------------------
[ pid=17372 ] Backtrace with 12 frames:
PassengerLoggingAgent[0x4d7f5c]
/lib/x86_64-linux-gnu/libpthread.so.0(+0xfcb0)[0x7f3aa684bcb0]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0x35)[0x7f3aa5c9e425]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x17b)[0x7f3aa5ca1b8b]
/usr/lib/x86_64-linux-gnu/libstdc++.so.6(_ZN9__gnu_cxx27__verbose_terminate_handlerEv+0x11d)[0x7f3aa6599e2d]
/usr/lib/x86_64-linux-gnu/libstdc++.so.6(+0x5ef26)[0x7f3aa6597f26]
/usr/lib/x86_64-linux-gnu/libstdc++.so.6(+0x5ef53)[0x7f3aa6597f53]
/usr/lib/x86_64-linux-gnu/libstdc++.so.6(+0x5f17e)[0x7f3aa659817e]
PassengerLoggingAgent(_ZNK9Passenger10VariantMap3getERKSsb+0x8a)[0x4a0d92]
PassengerLoggingAgent(main+0x112)[0x499a43]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed)[0x7f3aa5c8976d]
PassengerLoggingAgent[0x498919]
here's a backtrace: http://pastie.org/7682098
any idea what's wrong?

Resources