This is the config/configuration.yml file I use:
production:
email_delivery:
delivery_method: :smtp
smtp_settings:
enable_starttls_auto: true
address: "smtp.office365.com"
port: 587
domain: "smtp.office365.com"
authentication: :login
user_name: "xxx#xxx"
password: "xxx"
when I send test mail in Redmine, it results to this error:
vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.4.2/lib/action_dispatch/middleware/cookies.rb:649:in `commit'
vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.4.2/lib/action_dispatch/middleware/cookies.rb:484:in `[]='
vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.4.2/lib/action_dispatch/middleware/session/cookie_store.rb:116:in `set_cookie'
vendor/bundle/ruby/2.5.0/gems/rack-2.2.2/lib/rack/session/abstract/id.rb:403:in `commit_session'
/usr/local/rvm/gems/ruby-2.5.3/gems/passenger-6.0.4/src/ruby_supportlib/phusion_passenger/rack/thread_handler_extension.rb:97:in `process_request'
/usr/local/rvm/gems/ruby-2.5.3/gems/passenger-6.0.4/src/ruby_supportlib/phusion_passenger/request_handler/thread_handler.rb:157:in `accept_and_process_next_request'
What can I do to prevent this problem?
Related
I'm trying to have the basic example express-gateway running on Heroku
http:
port: ${HTTP_PORT:-8080}
hostname: ${HOST:-localhost}
admin:
port: 9876
host: localhost
apiEndpoints:
api:
host: 'localhost'
paths: '/ip'
serviceEndpoints:
httpbin:
url: 'https://httpbin.org'
...
Looking the logs I got the following error:
2021-02-15T18:53:09.947569+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
Any ideas?
I managed to fix that with the following config:
http:
port: ${PORT:-8080}
https:
port: ${PORT:-8081}
admin:
port: 9876
apiEndpoints:
api:
paths: '/ip'
So the default port variable is called PORT and by removing all references to localhost 🙌
I'm kinda of new in EG. I have followed the documentation about issuing a jwt token instead of opaque but still receiving an opaque access token. Not sure what I'm missing to change.
This is my system.config file
db:
redis:
host: localhost
port: 6379
namespace: EG
crypto:
cipherKey: sensitiveKey
algorithm: aes256
saltRounds: 10
session:
secret: keyboard cat
resave: false
saveUninitialized: false
accessTokens:
timeToExpiry: 7200000
tokenType: 'jwt'
issuer: 'express-gateway'
audience: 'something'
subject: 'test'
secretOrPrivateKey: 'ssssst'
refreshTokens:
timeToExpiry: 7200000
authorizationCodes:
timeToExpiry: 300000
Already added a user and app with their own credentials (oauth2, basic-auth, jwt) without changing anything on the models.
this is my gateway.config file
http:
port: 8080
admin:
port: 9876
hostname: localhost
apiEndpoints:
api:
host: localhost
paths: '/api/*'
serviceEndpoints:
httpbin:
url: 'https://httpbin.org'
policies:
- jwt
- oauth2
- proxy
- rate-limit
pipelines:
default:
apiEndpoints:
- api
policies:
- oauth2:
action:
jwt:
issuer: express-gateway
audience: something
subject: test
secretOrPublicKey: ssssst
checkCredentialExistence: false
- proxy:
- action:
serviceEndpoint: httpbin
changeOrigin: true
the request for login is like this and secret is the keySecret generated with jwt credential of the app.
http://localhost:8080/oauth2/authorize?response_type=token&client_id=ae921ba9-7b4b-4c53-aaba-354bd6398e52&redirect_uri=http://localhost:3002/explorer&client_secret=0qOpBZkwO2ayQ8dO18yRuh
and the token response looks like this.
14070f7c4ffc49efb1fc1709cc4a7267|90c6efd2cf8342859756d8e3705417a3
Thanks for anyone who can help me.
The configuration looks correct. I've also personally tried the configuration you provided and I got back a JWT
Maybe you can try to set up a test project on Glitch.me so it's going to be easier to replicate locally.
I am using redmine 2.5 version, last one week email notification are not working. It's worked before. Now getting error " An error occurred while sending mail (getaddrinfo: Temporary failure in name resolution) ".
This is my email configuration
email_delivery:
delivery_method: :smtp
smtp_settings:
address: smtp.rediffmail.com
port: 25
# ssl: true
# enable_starttls_auto: true
domain: rediffmail.com
authentication: :login
user_name: "XXXXXX#rediffmail.com"
password: "XXXX"
This is not a Redime problem, but a DNS problem. Check if you can send the mail to the problematic address from your standard email client.
My configuration.yml looks like this
default:
configuration
email_delivery:
delivery_method: :smtp
smtp_settings:
address: "mail.example.com"
port: 25
domain: "example.com"
authentication: :login
user_name: "redmine#example.com"
password: "xxxxxxxx"
I am getting the message An error occurred while sending mail (530 5.7.0 Authentication required ) while treying to send a test mail.
I have tried out different options with starttls, removing.adding quotes. It does not work. The configuration details work fine with Thunderbird. Somehow it does not work here.
Please note my redmine setup is on AWS and my mail server is on another shared hosting. Does it has anything to do with the security groups?
Please guide me fix the issue. Thanks in adavance.
You need to change default to production or development, and configuration line is too much so your config would look like this:
production:
email_delivery:
delivery_method: :smtp
smtp_settings:
address: "mail.example.com"
port: 25
domain: "example.com"
authentication: :login
user_name: "redmine#example.com"
password: "xxxxxxxx"
I setup redmine on Ubuntu 10.04.2
here is my email.yml:
# Outgoing email settings
production:
delivery_method: :smtp
smtp_settings:
tls:true
enable_starttls_auto: true
address: "smtp.gmail.com"
port: "587"
domain: "smtp.gmail.com"
authentication: :plain
user_name: "******#gmail.com"
password: "*****"
development:
delivery_method: :smtp
smtp_settings:
tls:true
address: "smtp.gmail.com"
port: "587"
domain: "smtp.gmail.com"
authentication: :plain
user_name: "******#gmail.com"
password: "*****"
I start the redmine server as root,login redmine with admin
then Administration>Settings>Email notifications
and then I send the test mail by clicking the link at bottom
But i got this:
An error occurred while sending mail (getaddrinfo: Name or service not known)
is there anyone who send email successfully via gmail?and please give me some suggestion
thanks advance!
-----------append1----------------
I copy the "production:" in the config/email.yml to "# ==== SMTP server at using TLS (GMail)production:" in the /etc/redmine/default/configuration.yml
and also modify the "# default configuration options for all environments" in buttom of configuration.yml
It works!
[CLOSED]