wwitzel3 / awx Goto Github PK
View Code? Open in Web Editor NEWThis project forked from ansible/awx
AWX Project
License: Other
This project forked from ansible/awx
AWX Project
License: Other
Stuff
AWX Web Container activation fails
cd installer && ansible-playbook -i inventory install.yml
An installation with no errors
TASK [local_docker : Activate AWX Web Container] *******************************************************************************************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "failed": true, "msg": "Error starting container 775e238d2b00e262520977de5fcb20235c8db6df238d5b0c46f7a1197f3cd335: 500 Server Error: Internal Server Error (\"{\"message\":\"Cannot link to a non running container: /postgres AS /awx_web/postgres\"}\")"}
to retry, use: --limit @/tmp/awx/installer/install.retry
Postgres was unable to run because the proper permissions had not been granted on the local filesystem to {{ postgres_data_dir }}
. In this case it was /tmp/pgdocker.
[root@localhost installer]# docker logs postgres
chown: cannot read directory β/var/lib/postgresql/dataβ: Permission denied
[root@localhost installer]# docker inspect postgres
[
{
"Id": "988d71f0834e6911b3ed2b22af71fc1f1b9bb458b3004b5592bd13d9fadbde18",
"Created": "2017-09-12T12:22:53.733164627Z",
"Path": "docker-entrypoint.sh",
"Args": [
"postgres"
],
"State": {
"Status": "exited",
"Running": false,
"Paused": false,
"Restarting": false,
"OOMKilled": false,
"Dead": false,
"Pid": 0,
"ExitCode": 1,
"Error": "",
"StartedAt": "2017-09-12T12:22:54.129824374Z",
"FinishedAt": "2017-09-12T12:22:54.226815764Z"
},
"Image": "sha256:2e1182956e3ab20ab9f01bc30bf83d2562c87e9974078eefc6010b9933295cac",
"ResolvConfPath": "/var/lib/docker/containers/988d71f0834e6911b3ed2b22af71fc1f1b9bb458b3004b5592bd13d9fadbde18/resolv.conf",
"HostnamePath": "/var/lib/docker/containers/988d71f0834e6911b3ed2b22af71fc1f1b9bb458b3004b5592bd13d9fadbde18/hostname",
"HostsPath": "/var/lib/docker/containers/988d71f0834e6911b3ed2b22af71fc1f1b9bb458b3004b5592bd13d9fadbde18/hosts",
"LogPath": "",
"Name": "/postgres",
"RestartCount": 0,
"Driver": "devicemapper",
"MountLabel": "system_u:object_r:svirt_sandbox_file_t:s0:c1,c96",
"ProcessLabel": "system_u:system_r:svirt_lxc_net_t:s0:c1,c96",
"AppArmorProfile": "",
"ExecIDs": null,
"HostConfig": {
"Binds": [
"/tmp/pgdocker:/var/lib/postgresql/data:rw"
],
"ContainerIDFile": "",
"LogConfig": {
"Type": "journald",
"Config": {}
},
"NetworkMode": "default",
"PortBindings": null,
"RestartPolicy": {
"Name": "",
"MaximumRetryCount": 0
},
"AutoRemove": false,
"VolumeDriver": "",
"VolumesFrom": null,
"CapAdd": null,
"CapDrop": null,
"Dns": null,
"DnsOptions": null,
"DnsSearch": null,
"ExtraHosts": null,
"GroupAdd": null,
"IpcMode": "",
"Cgroup": "",
"Links": null,
"OomScoreAdj": 0,
"PidMode": "",
"Privileged": false,
"PublishAllPorts": false,
"ReadonlyRootfs": false,
"SecurityOpt": null,
"UTSMode": "",
"UsernsMode": "",
"ShmSize": 67108864,
"Runtime": "docker-runc",
"ConsoleSize": [
0,
0
],
"Isolation": "",
"CpuShares": 0,
"Memory": 0,
"CgroupParent": "",
"BlkioWeight": 0,
"BlkioWeightDevice": null,
"BlkioDeviceReadBps": null,
"BlkioDeviceWriteBps": null,
"BlkioDeviceReadIOps": null,
"BlkioDeviceWriteIOps": null,
"CpuPeriod": 0,
"CpuQuota": 0,
"CpusetCpus": "",
"CpusetMems": "",
"Devices": null,
"DiskQuota": 0,
"KernelMemory": 0,
"MemoryReservation": 0,
"MemorySwap": 0,
"MemorySwappiness": -1,
"OomKillDisable": false,
"PidsLimit": 0,
"Ulimits": null,
"CpuCount": 0,
"CpuPercent": 0,
"IOMaximumIOps": 0,
"IOMaximumBandwidth": 0
},
"GraphDriver": {
"Name": "devicemapper",
"Data": {
"DeviceId": "163",
"DeviceName": "docker-253:0-34381204-0cf64ece32af15f765a2b739930f19dd96ab7dfe54fe120fa0908b7a99e65aa4",
"DeviceSize": "10737418240"
}
},
"Mounts": [
{
"Source": "/tmp/pgdocker",
"Destination": "/var/lib/postgresql/data",
"Mode": "rw",
"RW": true,
"Propagation": "rprivate"
}
],
"Config": {
"Hostname": "988d71f0834e",
"Domainname": "",
"User": "",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"ExposedPorts": {
"5432/tcp": {}
},
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": [
"POSTGRES_PASSWORD=awxpass",
"POSTGRES_USER=awx",
"POSTGRES_DB=awx",
"PATH=/usr/lib/postgresql/9.6/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"GOSU_VERSION=1.10",
"LANG=en_US.utf8",
"PG_MAJOR=9.6",
"PG_VERSION=9.6.5-1.pgdg80+1",
"PGDATA=/var/lib/postgresql/data"
],
"Cmd": [
"postgres"
],
"Image": "postgres:9.6",
"Volumes": {
"/var/lib/postgresql/data": {}
},
"WorkingDir": "",
"Entrypoint": [
"docker-entrypoint.sh"
],
"OnBuild": null,
"Labels": {}
},
"NetworkSettings": {
"Bridge": "",
"SandboxID": "20afcaa0176d01f365dc2cf73d757104cc56477b6f3713ccb4c995b2be489b49",
"HairpinMode": false,
"LinkLocalIPv6Address": "",
"LinkLocalIPv6PrefixLen": 0,
"Ports": null,
"SandboxKey": "/var/run/docker/netns/20afcaa0176d",
"SecondaryIPAddresses": null,
"SecondaryIPv6Addresses": null,
"EndpointID": "",
"Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"IPAddress": "",
"IPPrefixLen": 0,
"IPv6Gateway": "",
"MacAddress": "",
"Networks": {
"bridge": {
"IPAMConfig": null,
"Links": null,
"Aliases": null,
"NetworkID": "57d7f110351571b14ae8c1ebb9e599cf528b61c896034c9e1e93b3be7d5362e1",
"EndpointID": "",
"Gateway": "",
"IPAddress": "",
"IPPrefixLen": 0,
"IPv6Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"MacAddress": ""
}
}
}
}
]
Setting the context manually with sudo chcon -t svirt_sandbox_file_t /tmp/pgdocker
resolved this as well.
Something bad happened.
Sample Issue
Big problem
Big problem
Bad things
Bleh
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.