docker-compose bitnami opentcart sendmail not found - opencart

I am running locally the docker file from bitnami open cart, but every time an email is sent a message in the terminal is displayed
opencart_1 | sh: 1: /usr/sbin/sendmail: not found
I am wondering if there is a solution to this.

Bitnami does not ship "sendmail" binary in any of our containers, it is not a good practice for sending emails in a production environment, They recommend to use a SMTP from a thirdparty provider and configure the SMTP settings to send emails from the application.
You can check the configuration https://github.com/bitnami/bitnami-docker-opencart#smtp-configuration

Related

Trying to deploy Django on SiteGround

I am trying to deploy a Django app on Siteground through SSH. I have transferred all the files through Filezilla. Everything is setup.
I have developed several apps on AWS using ubuntu. But in siteground Fedora OS is provided in SSH, I am not familiar with that much. I can't have superuser privileges.
Running my Django server on port 8000:
python manage.py runserver 0.0.0.0:8000
Host name is already added in ALLOWED_HOST of setting.py:
ALLOWED_HOSTS = ["himeshp7.sg-host.com","*"]
The server is running in SSH, but I am unable to open my web app on the browser. In AWS we get the option to enable ports in Security Groups, but I couldn't find anything like that on Siteground, I also talked with customer care but they are telling to upgrade, I still doubt that if it will work or not after that as I couldn't find anything proper for deploying Django on Siteground.
You need to add your server ip address to ALLOWED_HOSTS and do python manage.py runserver <your_server_ip_address>:8000 to simply run your app in Debug mode. (Replace <your_server_ip_address>). You can then access your app over port 8000
To host your app in production you need to do further more than running the app through command like installing WSGI HTTP Server, configuring to run your app on port 80 or some other port, etc.
Amazon AWS has UI for most of the things so that you could easily enable ports and such other things. This is not the case of other hosting providers.
Unless you don't have the sudo privileges there are no options to run Django app in shared hosting. Hosting providers that gives SSH/terminal access for shared hosting will not give sudo privileges for security reasons. You should be having a VPS/Dedicated account for that which costs higher to have higher control over your server.
Why do I need sudo privileges ?
You may need to install additional packages/dependencies.
To add additional apache/nginx config for your domain. etc
Otherwise you can go for hosting providers where they provide additonal "Setup Python App" in "Software" section in CPanel for their Shared Hosting Plans. You don't need to worry about server configuration.
There are many providers that gives this option in their Shared Hosting. Two of such providers that I know of:
namecheap refer
a2hosting refer
Based on the exp that I had on deploying python app on Hostgator VPS link.

Heroku/sendgrid can't install this addon

I've created an django project on heroku which can send emails using sendgrid, this app worked as a charm. I created this app to study a bit about how sendgrid, django and heroku works together.
Using the same heroku account, I've created another project after this first project,
which would be definitive, and in this project I change the sender email many times, but it is my emails with a custom domain. Unfortunately I had my heroku/sendgrid (I don't have a sendgrid account, I only needed heroku to install sendgrid:starter addon in my project) account banned. When I try to install sendgrid addon in a project which I've deployed, this message is returned(in this case, I am using a custom domain to my email: victor.s.silva#unesp.br):
› Warning: heroku update available from 7.42.4 to 7.42.6.
Creating sendgrid:starter on ⬢ myproject... !
▸ An error was encountered when contacting the add-on partner to create
▸ sendgrid:starter. Please try again later.
#sometimes this message inform that I have my sendgrid account banned.
When I try to install this addon in a deployed project in another account(#gmail.com), I get this message:
▸ The account "victor.santos.cd#gmail.com" is not permitted to install the
▸ sendgrid add-on at this time. Your account may require additional
▸ verification. Please visit
▸ https://tools.heroku.support/addons-verification to complete this process.
The page crashs when I send my cell number.
I have no idea what I have to do to solve this. As I have a free heroku account, I can't create a ticket, once I haven't sendgrid addon installed in my project. So, I need some help to reactive my sendgrid permission.
Thank you so much.

AWS EC2 default password

I'm following this tutorial to host a website with an apache server. The thing is that the last step tells my to do
service apache2 reload
But it asks me for a password. I don't remember inserting a password for this VM, just the .pem I used to log in.
Is there a default password? Or how can I solve this? Sorry if this is basic, but the most complex thing I've done with servers is with wamp and xamp
Thanks!
Based on the comments, the solution was to use sudo:
sudo service apache2 reload

Send file to Jenkins from web server

I have a web server is running in Ubuntu (AWS EC2) and I would like to send a file on it. To do that I would like to use Jenkins but I didn't find a plugin or a good configuration to do it.
The problem when I configure a plugin or something else in Jenkins they ask a password, so my password to the server is encrypted by ssh and they cannot read it.
I tried with :
FTP repository hosts
Publish over FTP
Publish over SSH
Is there someone can help me please ?
Thank you in advance.
I found the solution. In fact it was a problem with the access. I used this command : sudo chown -R ubuntu:ubuntu [Directory] where I have my files. Then when I launched the build it was succeed.
Hope this help.
Thank you

Rails Net::SMTPAuthenticationError in production but not in development

I try to send Devise email through Gmail. From Rails console in development mode on localhost it sends OK, but in production from other machine in a cloud it raises the error. I've enabled in Google not trusted application access. I use the same account for both envs with right the same smtp parameters.
> ActionMailer::Base.smtp_settings
=> {:address=>"smtp.gmail.com", :port=>587, :domain=>"example.com", :authentication=>"plain", :enable_starttls_auto=>true, :user_name=>"xxxx#gmail.com", :password=>"yyyy"}
> user.send_reset_password_instructions
PS
I also tried this link from my localhost https://accounts.google.com/DisplayUnlockCaptcha but it doesn't resolve this issue. Perhaps I should use it from my production machine? But how? My production box is headless Ubuntu server.