Skip to content
Advertisement

Problems with launch spring boot jar on ubuntu server. Error starting ApplicationContext

I have configured nginx to fit my code. My code works well on Windows and now I’m trying to deploy it to Ubuntu. I run jar and it fail. Logs:

JavaScript

My propeties:

JavaScript

continues code:

upload.path=home/kirill/uploads

#properties for MailSender

#smptps – Not secure connection

spring.mail.host=smtp.yandex.ru

#test

spring.mail.username= HIDED EMAIL

spring.mail.password=password

spring.mail.port=465

spring.mail.protocol=smtps

mail.debug=false

recaptcha.secret=hided secret

spring.session.jdbc.initialize-schema=always

spring.session.jdbc.table-name=SPRING_SESSION

hostname= HIDED HOST

server.port=80

Everywhere I looked for solutions, I did not find anything. I don’t understand this error

Advertisement

Answer

You are trying to run the application on port 80.

JavaScript

Ports < 1024 are only allowed to run as root.

Either run it as root (not recommended) or use another port.

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement