On Tuesday, January 29, 2019 at 9:50:23 AM UTC-8, Mirza Krak wrote:On Tue, Jan 29, 2019 at 2:27 AM Shawn Stevenson
<shawn.e....@gmail.com> wrote:
>
> Hello,
>
> I have followed the instructions for production installation for Mender 1.7 (https://docs.mender.io/1.7/administration/production-installation) and I have a problem with the mender-deployments service. It is restarting about once every minute. There appears to be a problem occurring inside the file migrator_simple.go. Here is a small piece of the log file (the same messages repeat over and over again):
>
>
> ^[[36mmender-deployments_1 |^[[0m WARNING: ca-certificates.crt does not contain exactly one certificate or CRL: skipping
> ^[[36mmender-deployments_1 |^[[0m time="2019-01-29T00:22:16Z" level=info msg="Deployments Service, version unknown starting up" file=main.go func=main.cmdServer line=103
> ^[[36mmender-deployments_1 |^[[0m time="2019-01-29T00:22:16Z" level=info msg="automigrate is ON, will apply migrations" file=migrations.go func=migrations.Migrate line=48
> ^[[36mmender-deployments_1 |^[[0m time="2019-01-29T00:22:16Z" level=info msg="migrating deployment_service" file=migrations.go func=migrations.MigrateSingle line=70
> ^[[36mmender-deployments_1 |^[[0m time="2019-01-29T00:22:16Z" level=info msg="applying migration from version 0.0.0 to 1.2.1" db="deployment_service" file="migrator_simple.go" func="migrate.(*SimpleMigrator).Apply" line=101
> ^[[36mmender-deployments_1 |^[[0m time="2019-01-29T00:22:16Z" level=error msg="migration from 0.0.0 to 1.2.1 failed: index not found with name [deploymentconstructor.name_text_deploymentconstructor.artifactname_text]" db="deployment_service" file="migrator_simple.go" func="migrate.(*SimpleMigrator).Apply" line=106
> ^[[36mmender-deployments_1 |^[[0m failed to run migrations: failed to apply migrations: failed to apply migration from 0.0.0 to 1.2.1: index not found with name [deploymentconstructor.name_text_deploymentconstructor.artifactname_text]
>
> Does anybody have any idea what the problem could be?
I have pinged some people to get some feedback.
Can you also provide the output of "docker ps" and "docker images |
grep mendersoftware"
FWIW, I ran my local Mender 1.7.0 production environment and logs from mender-deployments are the same up to the "migration failed" from your logs. ie:
mender-deployments_1 | WARNING: ca-certificates.crt does not
contain exactly one certificate or CRL: skipping
mender-deployments_1 | time="2019-01-30T13:30:28Z" level=info
msg="Deployments Service, version unknown starting up"
file=main.go func=main.cmdServer line=103
mender-deployments_1 | time="2019-01-30T13:30:28Z" level=info
msg="automigrate is ON, will apply migrations" file=migrations.go
func=migrations.Migrate line=48
mender-deployments_1 | time="2019-01-30T13:30:28Z" level=info
msg="migrating deployment_service" file=migrations.go
func=migrations.MigrateSingle line=70
mender-deployments_1 | time="2019-01-30T13:30:28Z" level=info
msg="applying migration from version 0.0.0 to 1.2.1"
db="deployment_service" file="migrator_simple.go"
func="migrate.(*SimpleMigrator).Apply" line=101
mender-deployments_1 | time="2019-01-30T13:30:28Z" level=info
msg="DB migrated to version 1.2.1" db="deployment_service"
file="migrator_simple.go" func="migrate.(*SimpleMigrator).Apply"
line=140
mender-deployments_1 | time="2019-01-30T13:30:28Z" level=info
msg="Deployments Service, version unknown starting up"
file=main.go func=main.cmdServer line=123
In my case, I started with a completely empty docker environment,
so no existing volumes, containers, etc.
I replicated this on but Ubuntu 16 and 18.
Did you have anything existing in your docker environment?
--
You received this message because you are subscribed to the Google Groups "Mender List mender.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mender+un...@lists.mender.io.
To post to this group, send email to men...@lists.mender.io.
Visit this group at https://groups.google.com/a/lists.mender.io/group/mender/.
On 1/30/19 8:20 PM, Shawn Stevenson wrote:
So my kernel build appears to be a lot older than yours. Perhaps I need to apply some updates...
--
You received this message because you are subscribed to a topic in the Google Groups "Mender List mender.io" group.
To unsubscribe from this topic, visit https://groups.google.com/a/lists.mender.io/d/topic/mender/cjzMdWESh9k/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mender+un...@lists.mender.io.
You received this message because you are subscribed to the Google Groups "Mender List mender.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mender+un...@lists.mender.io.
You received this message because you are subscribed to the Google Groups "Mender List mender.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mender+un...@lists.mender.io.
Hello Shawn,one more thing I need: your prod.yml file and contents of /etc/resolv.conf from the vm. Could you please provide them?yours,peter
On Thu, Jan 31, 2019 at 6:32 PM Shawn Stevenson <shawn.e....@gmail.com> wrote:
Hi Drew,I upgraded the VM to Ubuntu 18.04.1 yesterday. I then removed all containers as Peter had shown and restarted. The problem is still there.
Hi Shawn,Of course. Please check that what you put in prod.yml in:mender-api-gateway.ALLOWED_HOSTSstorage-proxy.networks.mender.aliasesmender-deployments.environment.DEPLOYMENTS_AWS_URIand what you supplied in environment variables for this command:CERT_API_CN=here CERT_STORAGE_CN=and.here ../keygenis resolvable, and reachable from the host you run the containers:ping -c1 here;ping -c1 and.here;nc -z -v and.here 9000;and matches (e.g.: 'ALLOWED_HOSTS: here' and keeping the same example names 'aliases: - and.here', 'DEPLOYMENTS_AWS_URI: https://and.here:9000')Good luck.cheers,peter
On Sat, Feb 2, 2019 at 12:55 AM Shawn Stevenson <shawn.e....@gmail.com> wrote:
Hi Peter,I am not in the office today, so I'll have to get you those files next week.One thing that I noticed yesterday when starting/stopping the Docker containers was a warning about network timeout exceeded. So I suspect I have performance problems to deal with. I will investigate more next week. I may also try my same setup on a different computer running an Ubuntu virtual machine with VMware.