Giter Site home page Giter Site logo

Comments (13)

glynhudson avatar glynhudson commented on September 17, 2024 1

Thanks for testing, I've added to the quick start readme guide the requirement to clone the files using 'setup_dev_repositories'

2a5b9c1

from emoncms-docker.

glynhudson avatar glynhudson commented on September 17, 2024

Ah, you already have some process running on port 8080 on your machine?

Check listening processes using

sudo netstat -plnt

I will add a note to the readme

from emoncms-docker.

skabashnyuk avatar skabashnyuk commented on September 17, 2024

yes your are right. Looks like this is my issue

pi@pi3:~/emoncms-docker $ sudo netstat -plnt
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 127.0.0.1:8080          0.0.0.0:*               LISTEN      585/motion
tcp        0      0 127.0.0.1:8081          0.0.0.0:*               LISTEN      585/motion
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      695/sshd
tcp6       0      0 :::22                   :::*                    LISTEN      695/sshd

thx

from emoncms-docker.

skabashnyuk avatar skabashnyuk commented on September 17, 2024

I know this is silly, I was trying to run it on my raspberry 3 and it surprisingly not working. Probably it have to be add in doc too..
This is output from my MacOS

[22:50:50]sj:emoncms-docker[master]#: docker-compose up
Creating volume "emoncmsdocker_emon-redis-data" with local driver
Creating volume "emoncmsdocker_emon-phptimeseries" with local driver
Creating volume "emoncmsdocker_emon-phpfiwa" with local driver
Creating volume "emoncmsdocker_emon-phpfina" with local driver
Creating volume "emoncmsdocker_emon-db-data" with local driver
Creating emoncmsdocker_redis_1
Creating emoncmsdocker_db_1
Creating emoncmsdocker_web_1
Attaching to emoncmsdocker_db_1, emoncmsdocker_redis_1, emoncmsdocker_web_1
redis_1  | 1:C 06 Nov 20:51:04.076 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
redis_1  |                 _._
redis_1  |            _.-``__ ''-._
redis_1  |       _.-``    `.  `_.  ''-._           Redis 3.0.7 (00000000/0) 64 bit
redis_1  |   .-`` .-```.  ```\/    _.,_ ''-._
redis_1  |  (    '      ,       .-`  | `,    )     Running in standalone mode
redis_1  |  |`-._`-...-` __...-.``-._|'` _.-'|     Port: 6379
db_1     | Initializing database
redis_1  |  |    `-._   `._    /     _.-'    |     PID: 1
redis_1  |   `-._    `-._  `-./  _.-'    _.-'
db_1     | 2016-11-06 20:51:04 0 [Note] Ignoring --secure-file-priv value as server is running with --bootstrap.
web_1    | AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.18.0.4. Set the 'ServerName' directive globally to suppress this message
redis_1  |  |`-._`-._    `-.__.-'    _.-'_.-'|
db_1     | 2016-11-06 20:51:04 0 [Note] /usr/sbin/mysqld (mysqld 5.6.34) starting as process 33 ...
web_1    | AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.18.0.4. Set the 'ServerName' directive globally to suppress this message
redis_1  |  |    `-._`-._        _.-'_.-'    |           http://redis.io
web_1    | [Sun Nov 06 20:51:07.320631 2016] [mpm_prefork:notice] [pid 1] AH00163: Apache/2.4.10 (Debian) PHP/5.6.23 configured -- resuming normal operations
redis_1  |   `-._    `-._`-.__.-'_.-'    _.-'
web_1    | [Sun Nov 06 20:51:07.320698 2016] [core:notice] [pid 1] AH00094: Command line: 'apache2 -D FOREGROUND'
db_1     | 2016-11-06 20:51:04 33 [Note] InnoDB: Using atomics to ref count buffer pool pages
redis_1  |  |`-._`-._    `-.__.-'    _.-'_.-'|
db_1     | 2016-11-06 20:51:04 33 [Note] InnoDB: The InnoDB memory heap is disabled
db_1     | 2016-11-06 20:51:04 33 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
redis_1  |  |    `-._`-._        _.-'_.-'    |
db_1     | 2016-11-06 20:51:04 33 [Note] InnoDB: Memory barrier is not used
redis_1  |   `-._    `-._`-.__.-'_.-'    _.-'
db_1     | 2016-11-06 20:51:04 33 [Note] InnoDB: Compressed tables use zlib 1.2.8
redis_1  |       `-._    `-.__.-'    _.-'
db_1     | 2016-11-06 20:51:04 33 [Note] InnoDB: Using Linux native AIO
redis_1  |           `-._        _.-'
redis_1  |               `-.__.-'
redis_1  |
redis_1  | 1:M 06 Nov 20:51:04.080 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
redis_1  | 1:M 06 Nov 20:51:04.080 # Server started, Redis version 3.0.7
db_1     | 2016-11-06 20:51:04 33 [Note] InnoDB: Using CPU crc32 instructions
redis_1  | 1:M 06 Nov 20:51:04.080 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
db_1     | 2016-11-06 20:51:04 33 [Note] InnoDB: Initializing buffer pool, size = 128.0M
db_1     | 2016-11-06 20:51:04 33 [Note] InnoDB: Completed initialization of buffer pool
redis_1  | 1:M 06 Nov 20:51:04.080 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
redis_1  | 1:M 06 Nov 20:51:04.080 * The server is now ready to accept connections on port 6379
db_1     | 2016-11-06 20:51:04 33 [Note] InnoDB: The first specified data file ./ibdata1 did not exist: a new database to be created!
db_1     | 2016-11-06 20:51:04 33 [Note] InnoDB: Setting file ./ibdata1 size to 12 MB
db_1     | 2016-11-06 20:51:04 33 [Note] InnoDB: Database physically writes the file full: wait...
db_1     | 2016-11-06 20:51:05 33 [Note] InnoDB: Setting log file ./ib_logfile101 size to 48 MB
db_1     | 2016-11-06 20:51:06 33 [Note] InnoDB: Setting log file ./ib_logfile1 size to 48 MB
db_1     | 2016-11-06 20:51:07 33 [Note] InnoDB: Renaming log file ./ib_logfile101 to ./ib_logfile0
db_1     | 2016-11-06 20:51:07 33 [Warning] InnoDB: New log files created, LSN=45781
db_1     | 2016-11-06 20:51:07 33 [Note] InnoDB: Doublewrite buffer not found: creating new
db_1     | 2016-11-06 20:51:07 33 [Note] InnoDB: Doublewrite buffer created
db_1     | 2016-11-06 20:51:07 33 [Note] InnoDB: 128 rollback segment(s) are active.
db_1     | 2016-11-06 20:51:07 33 [Warning] InnoDB: Creating foreign key constraint system tables.
db_1     | 2016-11-06 20:51:07 33 [Note] InnoDB: Foreign key constraint system tables created
db_1     | 2016-11-06 20:51:07 33 [Note] InnoDB: Creating tablespace and datafile system tables.
db_1     | 2016-11-06 20:51:07 33 [Note] InnoDB: Tablespace and datafile system tables created.
db_1     | 2016-11-06 20:51:07 33 [Note] InnoDB: Waiting for purge to start
db_1     | 2016-11-06 20:51:07 33 [Note] InnoDB: 5.6.34 started; log sequence number 0
db_1     | 2016-11-06 20:51:10 33 [Note] Binlog end
db_1     | 2016-11-06 20:51:10 33 [Note] InnoDB: FTS optimize thread exiting.
db_1     | 2016-11-06 20:51:10 33 [Note] InnoDB: Starting shutdown...
db_1     | 2016-11-06 20:51:12 33 [Note] InnoDB: Shutdown completed; log sequence number 1625977
db_1     |
db_1     |
db_1     | 2016-11-06 20:51:12 0 [Note] Ignoring --secure-file-priv value as server is running with --bootstrap.
db_1     | 2016-11-06 20:51:12 0 [Note] /usr/sbin/mysqld (mysqld 5.6.34) starting as process 56 ...
db_1     | 2016-11-06 20:51:12 56 [Note] InnoDB: Using atomics to ref count buffer pool pages
db_1     | 2016-11-06 20:51:12 56 [Note] InnoDB: The InnoDB memory heap is disabled
db_1     | 2016-11-06 20:51:12 56 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
db_1     | 2016-11-06 20:51:12 56 [Note] InnoDB: Memory barrier is not used
db_1     | 2016-11-06 20:51:12 56 [Note] InnoDB: Compressed tables use zlib 1.2.8
db_1     | 2016-11-06 20:51:12 56 [Note] InnoDB: Using Linux native AIO
db_1     | 2016-11-06 20:51:12 56 [Note] InnoDB: Using CPU crc32 instructions
db_1     | 2016-11-06 20:51:12 56 [Note] InnoDB: Initializing buffer pool, size = 128.0M
db_1     | 2016-11-06 20:51:12 56 [Note] InnoDB: Completed initialization of buffer pool
db_1     | 2016-11-06 20:51:12 56 [Note] InnoDB: Highest supported file format is Barracuda.
db_1     | 2016-11-06 20:51:12 56 [Note] InnoDB: 128 rollback segment(s) are active.
db_1     | 2016-11-06 20:51:12 56 [Note] InnoDB: Waiting for purge to start
db_1     | 2016-11-06 20:51:12 56 [Note] InnoDB: 5.6.34 started; log sequence number 1625977
db_1     | 2016-11-06 20:51:13 56 [Note] Binlog end
db_1     | 2016-11-06 20:51:13 56 [Note] InnoDB: FTS optimize thread exiting.
db_1     | 2016-11-06 20:51:13 56 [Note] InnoDB: Starting shutdown...
db_1     | 2016-11-06 20:51:14 56 [Note] InnoDB: Shutdown completed; log sequence number 1625987
db_1     |
db_1     |
db_1     |
db_1     |
db_1     | PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
db_1     | To do so, start the server, then issue the following commands:
db_1     |
db_1     |   /usr/bin/mysqladmin -u root password 'new-password'
db_1     |   /usr/bin/mysqladmin -u root -h 2c35cb2ca02c password 'new-password'
db_1     |
db_1     | Alternatively you can run:
db_1     |
db_1     |   /usr/bin/mysql_secure_installation
db_1     |
db_1     | which will also give you the option of removing the test
db_1     | databases and anonymous user created by default.  This is
db_1     | strongly recommended for production servers.
db_1     |
db_1     | See the manual for more instructions.
db_1     |
db_1     | Please report any problems at http://bugs.mysql.com/
db_1     |
db_1     | The latest information about MySQL is available on the web at
db_1     |
db_1     |   http://www.mysql.com
db_1     |
db_1     | Support MySQL by buying support/licenses at http://shop.mysql.com
db_1     |
db_1     | Note: new default config file not created.
db_1     | Please make sure your config file is current
db_1     |
db_1     | WARNING: Default config file /etc/mysql/my.cnf exists on the system
db_1     | This file will be read by default by the MySQL server
db_1     | If you do not want to use this, either remove it, or use the
db_1     | --defaults-file argument to mysqld_safe when starting the server
db_1     |
db_1     | Database initialized
db_1     | MySQL init process in progress...
db_1     | 2016-11-06 20:51:15 0 [Note] mysqld (mysqld 5.6.34) starting as process 79 ...
db_1     | 2016-11-06 20:51:15 79 [Note] Plugin 'FEDERATED' is disabled.
db_1     | 2016-11-06 20:51:15 79 [Note] InnoDB: Using atomics to ref count buffer pool pages
db_1     | 2016-11-06 20:51:15 79 [Note] InnoDB: The InnoDB memory heap is disabled
db_1     | 2016-11-06 20:51:15 79 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
db_1     | 2016-11-06 20:51:15 79 [Note] InnoDB: Memory barrier is not used
db_1     | 2016-11-06 20:51:15 79 [Note] InnoDB: Compressed tables use zlib 1.2.8
db_1     | 2016-11-06 20:51:15 79 [Note] InnoDB: Using Linux native AIO
db_1     | 2016-11-06 20:51:15 79 [Note] InnoDB: Using CPU crc32 instructions
db_1     | 2016-11-06 20:51:15 79 [Note] InnoDB: Initializing buffer pool, size = 128.0M
db_1     | 2016-11-06 20:51:15 79 [Note] InnoDB: Completed initialization of buffer pool
db_1     | 2016-11-06 20:51:15 79 [Note] InnoDB: Highest supported file format is Barracuda.
db_1     | 2016-11-06 20:51:15 79 [Note] InnoDB: 128 rollback segment(s) are active.
db_1     | 2016-11-06 20:51:15 79 [Note] InnoDB: Waiting for purge to start
db_1     | MySQL init process in progress...
db_1     | 2016-11-06 20:51:15 79 [Note] InnoDB: 5.6.34 started; log sequence number 1625987
db_1     | 2016-11-06 20:51:15 79 [Warning] No existing UUID has been found, so we assume that this is the first time that this server has been started. Generating a new UUID: c28d3386-a462-11e6-82ca-0242ac120003.
db_1     | 2016-11-06 20:51:15 79 [Warning] 'user' entry 'root@2c35cb2ca02c' ignored in --skip-name-resolve mode.
db_1     | 2016-11-06 20:51:15 79 [Warning] 'user' entry '@2c35cb2ca02c' ignored in --skip-name-resolve mode.
db_1     | 2016-11-06 20:51:15 79 [Warning] 'proxies_priv' entry '@ root@2c35cb2ca02c' ignored in --skip-name-resolve mode.
db_1     | 2016-11-06 20:51:15 79 [Note] Event Scheduler: Loaded 0 events
db_1     | 2016-11-06 20:51:15 79 [Note] mysqld: ready for connections.
db_1     | Version: '5.6.34'  socket: '/var/run/mysqld/mysqld.sock'  port: 0  MySQL Community Server (GPL)
db_1     | Warning: Unable to load '/usr/share/zoneinfo/iso3166.tab' as time zone. Skipping it.
db_1     | Warning: Unable to load '/usr/share/zoneinfo/leap-seconds.list' as time zone. Skipping it.
db_1     | Warning: Unable to load '/usr/share/zoneinfo/zone.tab' as time zone. Skipping it.
db_1     | GENERATED ROOT PASSWORD: thahXixahth6exu8queen4waiphi6Ees
db_1     | 2016-11-06 20:51:19 79 [Warning] 'proxies_priv' entry '@ root@2c35cb2ca02c' ignored in --skip-name-resolve mode.
db_1     | Warning: Using a password on the command line interface can be insecure.
db_1     | Warning: Using a password on the command line interface can be insecure.
db_1     | Warning: Using a password on the command line interface can be insecure.
db_1     | Warning: Using a password on the command line interface can be insecure.
db_1     | 2016-11-06 20:51:19 79 [Warning] 'proxies_priv' entry '@ root@2c35cb2ca02c' ignored in --skip-name-resolve mode.
db_1     | 2016-11-06 20:51:19 79 [Note] mysqld: Normal shutdown
db_1     |
db_1     | 2016-11-06 20:51:19 79 [Note] Giving 0 client threads a chance to die gracefully
db_1     | 2016-11-06 20:51:19 79 [Note] Event Scheduler: Purging the queue. 0 events
db_1     | 2016-11-06 20:51:19 79 [Note] Shutting down slave threads
db_1     | 2016-11-06 20:51:19 79 [Note] Forcefully disconnecting 0 remaining clients
db_1     | 2016-11-06 20:51:19 79 [Note] Binlog end
db_1     | 2016-11-06 20:51:19 79 [Note] Shutting down plugin 'partition'
db_1     | 2016-11-06 20:51:19 79 [Note] Shutting down plugin 'INNODB_SYS_DATAFILES'
db_1     | 2016-11-06 20:51:19 79 [Note] Shutting down plugin 'INNODB_SYS_TABLESPACES'
db_1     | 2016-11-06 20:51:19 79 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN_COLS'
db_1     | 2016-11-06 20:51:19 79 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN'
db_1     | 2016-11-06 20:51:19 79 [Note] Shutting down plugin 'INNODB_SYS_FIELDS'
db_1     | 2016-11-06 20:51:19 79 [Note] Shutting down plugin 'INNODB_SYS_COLUMNS'
db_1     | 2016-11-06 20:51:19 79 [Note] Shutting down plugin 'INNODB_SYS_INDEXES'
db_1     | 2016-11-06 20:51:19 79 [Note] Shutting down plugin 'INNODB_SYS_TABLESTATS'
db_1     | 2016-11-06 20:51:19 79 [Note] Shutting down plugin 'INNODB_SYS_TABLES'
db_1     | 2016-11-06 20:51:19 79 [Note] Shutting down plugin 'INNODB_FT_INDEX_TABLE'
db_1     | 2016-11-06 20:51:19 79 [Note] Shutting down plugin 'INNODB_FT_INDEX_CACHE'
db_1     | 2016-11-06 20:51:19 79 [Note] Shutting down plugin 'INNODB_FT_CONFIG'
db_1     | 2016-11-06 20:51:19 79 [Note] Shutting down plugin 'INNODB_FT_BEING_DELETED'
db_1     | 2016-11-06 20:51:19 79 [Note] Shutting down plugin 'INNODB_FT_DELETED'
db_1     | 2016-11-06 20:51:19 79 [Note] Shutting down plugin 'INNODB_FT_DEFAULT_STOPWORD'
db_1     | 2016-11-06 20:51:19 79 [Note] Shutting down plugin 'INNODB_METRICS'
db_1     | 2016-11-06 20:51:19 79 [Note] Shutting down plugin 'INNODB_BUFFER_POOL_STATS'
db_1     | 2016-11-06 20:51:19 79 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE_LRU'
db_1     | 2016-11-06 20:51:19 79 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE'
db_1     | 2016-11-06 20:51:19 79 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX_RESET'
db_1     | 2016-11-06 20:51:19 79 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX'
db_1     | 2016-11-06 20:51:19 79 [Note] Shutting down plugin 'INNODB_CMPMEM_RESET'
db_1     | 2016-11-06 20:51:19 79 [Note] Shutting down plugin 'INNODB_CMPMEM'
db_1     | 2016-11-06 20:51:19 79 [Note] Shutting down plugin 'INNODB_CMP_RESET'
db_1     | 2016-11-06 20:51:19 79 [Note] Shutting down plugin 'INNODB_CMP'
db_1     | 2016-11-06 20:51:19 79 [Note] Shutting down plugin 'INNODB_LOCK_WAITS'
db_1     | 2016-11-06 20:51:19 79 [Note] Shutting down plugin 'INNODB_LOCKS'
db_1     | 2016-11-06 20:51:19 79 [Note] Shutting down plugin 'INNODB_TRX'
db_1     | 2016-11-06 20:51:19 79 [Note] Shutting down plugin 'InnoDB'
db_1     | 2016-11-06 20:51:19 79 [Note] InnoDB: FTS optimize thread exiting.
db_1     | 2016-11-06 20:51:19 79 [Note] InnoDB: Starting shutdown...
db_1     |
db_1     | 2016-11-06 20:51:20 79 [Note] InnoDB: Shutdown completed; log sequence number 1625997
db_1     | 2016-11-06 20:51:20 79 [Note] Shutting down plugin 'ARCHIVE'
db_1     | 2016-11-06 20:51:20 79 [Note] Shutting down plugin 'BLACKHOLE'
db_1     | 2016-11-06 20:51:20 79 [Note] Shutting down plugin 'PERFORMANCE_SCHEMA'
db_1     | 2016-11-06 20:51:20 79 [Note] Shutting down plugin 'MyISAM'
db_1     | 2016-11-06 20:51:20 79 [Note] Shutting down plugin 'MRG_MYISAM'
db_1     | 2016-11-06 20:51:20 79 [Note] Shutting down plugin 'CSV'
db_1     | 2016-11-06 20:51:20 79 [Note] Shutting down plugin 'MEMORY'
db_1     | 2016-11-06 20:51:20 79 [Note] Shutting down plugin 'sha256_password'
db_1     | 2016-11-06 20:51:20 79 [Note] Shutting down plugin 'mysql_old_password'
db_1     | 2016-11-06 20:51:20 79 [Note] Shutting down plugin 'mysql_native_password'
db_1     | 2016-11-06 20:51:20 79 [Note] Shutting down plugin 'binlog'
db_1     | 2016-11-06 20:51:20 79 [Note] mysqld: Shutdown complete
db_1     |
db_1     |
db_1     | MySQL init process done. Ready for start up.
db_1     |
db_1     | 2016-11-06 20:51:21 0 [Note] mysqld (mysqld 5.6.34) starting as process 1 ...
db_1     | 2016-11-06 20:51:21 1 [Note] Plugin 'FEDERATED' is disabled.
db_1     | 2016-11-06 20:51:21 1 [Note] InnoDB: Using atomics to ref count buffer pool pages
db_1     | 2016-11-06 20:51:21 1 [Note] InnoDB: The InnoDB memory heap is disabled
db_1     | 2016-11-06 20:51:21 1 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
db_1     | 2016-11-06 20:51:21 1 [Note] InnoDB: Memory barrier is not used
db_1     | 2016-11-06 20:51:21 1 [Note] InnoDB: Compressed tables use zlib 1.2.8
db_1     | 2016-11-06 20:51:21 1 [Note] InnoDB: Using Linux native AIO
db_1     | 2016-11-06 20:51:21 1 [Note] InnoDB: Using CPU crc32 instructions
db_1     | 2016-11-06 20:51:21 1 [Note] InnoDB: Initializing buffer pool, size = 128.0M
db_1     | 2016-11-06 20:51:21 1 [Note] InnoDB: Completed initialization of buffer pool
db_1     | 2016-11-06 20:51:21 1 [Note] InnoDB: Highest supported file format is Barracuda.
db_1     | 2016-11-06 20:51:21 1 [Note] InnoDB: 128 rollback segment(s) are active.
db_1     | 2016-11-06 20:51:21 1 [Note] InnoDB: Waiting for purge to start
db_1     | 2016-11-06 20:51:21 1 [Note] InnoDB: 5.6.34 started; log sequence number 1625997
db_1     | 2016-11-06 20:51:21 1 [Note] Server hostname (bind-address): '*'; port: 3306
db_1     | 2016-11-06 20:51:21 1 [Note] IPv6 is available.
db_1     | 2016-11-06 20:51:21 1 [Note]   - '::' resolves to '::';
db_1     | 2016-11-06 20:51:21 1 [Note] Server socket created on IP: '::'.
db_1     | 2016-11-06 20:51:21 1 [Warning] 'proxies_priv' entry '@ root@2c35cb2ca02c' ignored in --skip-name-resolve mode.
db_1     | 2016-11-06 20:51:21 1 [Note] Event Scheduler: Loaded 0 events
db_1     | 2016-11-06 20:51:21 1 [Note] mysqld: ready for connections.
db_1     | Version: '5.6.34'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  MySQL Community Server (GPL)
web_1    | [Sun Nov 06 20:52:12.814542 2016] [autoindex:error] [pid 6] [client 172.18.0.1:52704] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.php,index.html) found, and server-generated directory index forbidden by Options directive
web_1    | 172.18.0.1 - - [06/Nov/2016:20:52:12 +0000] "GET / HTTP/1.1" 403 503 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.87 Safari/537.36"
web_1    | 172.18.0.1 - - [06/Nov/2016:20:52:13 +0000] "GET /favicon.ico HTTP/1.1" 404 502 "http://localhost:8080/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.87 Safari/537.36"




web_1    | [Sun Nov 06 20:53:50.627211 2016] [autoindex:error] [pid 7] [client 172.18.0.1:52728] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.php,index.html) found, and server-generated directory index forbidden by Options directive
web_1    | 172.18.0.1 - - [06/Nov/2016:20:53:50 +0000] "GET / HTTP/1.1" 403 503 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.87 Safari/537.36"

And it's not working too. I have Forbidden page.

from emoncms-docker.

skabashnyuk avatar skabashnyuk commented on September 17, 2024

Intersting part from

[23:31:35]sj:emoncms-docker[master]#: docker ps
CONTAINER ID        IMAGE                       COMMAND                  CREATED             STATUS              PORTS                  NAMES
8ebeb4932ec4        openenergymonitor/emoncms   "apache2-foreground"     20 minutes ago      Up About a minute   0.0.0.0:8080->80/tcp   emoncmsdocker_web_1
b355ab4fea2f        redis:3.0.7                 "docker-entrypoint.sh"   40 minutes ago      Up About a minute   6379/tcp               emoncmsdocker_redis_1
2c35cb2ca02c        mysql:5.6                   "docker-entrypoint.sh"   40 minutes ago      Up About a minute   3306/tcp               emoncmsdocker_db_1
[23:31:40]sj:emoncms-docker[master]#:
[23:32:02]sj:emoncms-docker[master]#:
[23:32:02]sj:emoncms-docker[master]#: docker inspect 8ebeb4932ec4
            {
                "Source": "/Users/sj/dev/tmp/5/emoncms-docker/emoncms",
                "Destination": "/var/www/html",
                "Mode": "rw",
                "RW": true,
                "Propagation": "rprivate"
            },

After clone https://github.com/emoncms/emoncms-docker this folder emoncms is empty

from emoncms-docker.

glynhudson avatar glynhudson commented on September 17, 2024

If your running on a pi, checked the raspi branch of this repo. It should run fine on your mac, if docker is running ok. The logoutput looks correct it should be running on port 8080. Do you have a firewall on port 8080? What do you see when you browse to http://localhost ?


Just to be sure the docker image is working I've just tested the quick start on a fresh ubuntu system (sorry i don't have access to a mac) and it's working fine for me. Here is the successful log output:

~/dev/emoncms-docker$ docker-compose pull


Pulling redis (redis:3.0.7)...
3.0.7: Pulling from library/redis
43c265008fae: Pull complete
2738f760012a: Pull complete
a3b2771d56b8: Pull complete
5d98f21a4432: Pull complete
06376fd0ad3d: Pull complete
4f715a1f3cb0: Pull complete
68799fbd77ec: Pull complete
45e1acfdaf80: Pull complete
Digest: sha256:cbd22741646ccc98634b46e67b47167f4c908da283ea015028d54d63afe040c5
Status: Downloaded newer image for redis:3.0.7
Pulling db (mysql:5.6)...
5.6: Pulling from library/mysql
43c265008fae: Already exists
d7abd54d3b34: Pull complete
92b527830a1b: Pull complete
44839710d611: Pull complete
3828a16bed5c: Pull complete
fb91763f6b4e: Pull complete
892bfb27c685: Pull complete
02874ec7a2dc: Pull complete
78b7332e5e87: Pull complete
f69963f226ab: Pull complete
2ac021a23e0a: Pull complete
Digest: sha256:9da93305efb430b97c8ef7cd9846f142bae56ff0da3351f18e3ed5fc0c7ed16a
Status: Downloaded newer image for mysql:5.6
Pulling web (openenergymonitor/emoncms:latest)...
latest: Pulling from openenergymonitor/emoncms
5c90d4a2d1a8: Pull complete
9e955ea56615: Pull complete
217d5abb6c11: Pull complete
a8b194f25221: Pull complete
77d63b449539: Pull complete
353f320abe10: Pull complete
b1210519e861: Pull complete
a03ec06b8116: Pull complete
da1bf36b5989: Pull complete
25d6bd56810d: Pull complete
5105bccce1ca: Pull complete
5e209572cc0e: Pull complete
676b5f75c828: Pull complete
dd8122d4c953: Pull complete
4ceed8370111: Pull complete
20008dcb1494: Pull complete
09adbaa2be16: Pull complete
ec587fee3ac7: Pull complete
1b3ffcaa3cb6: Pull complete
c78d56ee5101: Pull complete
def23165a4b3: Pull complete
c7a479881b4b: Pull complete
0b3dbdae609a: Pull complete
2aacae6ca408: Pull complete
fc13f722f8d1: Pull complete
dc00d7c3f937: Pull complete
f5577cb0974e: Pull complete
2469f1297a99: Pull complete
1d89c64ced58: Pull complete
1e74cd39f7da: Pull complete
Digest: sha256:8fee7e94e842ad46fd4878cfdc001acef7c1069442066f38699411eddbc39069
Status: Downloaded newer image for openenergymonitor/emoncms:latest

~/dev/emoncms-docker$ docker-compose up

Creating emoncmsdocker_redis_1
Creating emoncmsdocker_db_1
Creating emoncmsdocker_web_1
Attaching to emoncmsdocker_redis_1, emoncmsdocker_db_1, emoncmsdocker_web_1
redis_1  | 1:C 06 Nov 21:41:16.185 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
redis_1  |                 _._                                                  
redis_1  |            _.-``__ ''-._                                             
redis_1  |       _.-``    `.  `_.  ''-._           Redis 3.0.7 (00000000/0) 64 bit
redis_1  |   .-`` .-```.  ```\/    _.,_ ''-._                                   
redis_1  |  (    '      ,       .-`  | `,    )     Running in standalone mode
redis_1  |  |`-._`-...-` __...-.``-._|'` _.-'|     Port: 6379
redis_1  |  |    `-._   `._    /     _.-'    |     PID: 1
redis_1  |   `-._    `-._  `-./  _.-'    _.-'                                   
redis_1  |  |`-._`-._    `-.__.-'    _.-'_.-'|                                  
redis_1  |  |    `-._`-._        _.-'_.-'    |           http://redis.io        
redis_1  |   `-._    `-._`-.__.-'_.-'    _.-'                                   
redis_1  |  |`-._`-._    `-.__.-'    _.-'_.-'|                                  
redis_1  |  |    `-._`-._        _.-'_.-'    |                                  
redis_1  |   `-._    `-._`-.__.-'_.-'    _.-'                                   
redis_1  |       `-._    `-.__.-'    _.-'                                       
redis_1  |           `-._        _.-'                                           
redis_1  |               `-.__.-'                                               
redis_1  | 
redis_1  | 1:M 06 Nov 21:41:16.187 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
redis_1  | 1:M 06 Nov 21:41:16.187 # Server started, Redis version 3.0.7
redis_1  | 1:M 06 Nov 21:41:16.187 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
redis_1  | 1:M 06 Nov 21:41:16.188 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
redis_1  | 1:M 06 Nov 21:41:16.228 * DB loaded from disk: 0.040 seconds
redis_1  | 1:M 06 Nov 21:41:16.228 * The server is now ready to accept connections on port 6379
db_1     | Initializing database
db_1     | 2016-11-06 21:41:17 0 [Note] Ignoring --secure-file-priv value as server is running with --bootstrap.
db_1     | 2016-11-06 21:41:17 0 [Note] /usr/sbin/mysqld (mysqld 5.6.34) starting as process 34 ...
db_1     | 2016-11-06 21:41:17 34 [Note] InnoDB: Using atomics to ref count buffer pool pages
db_1     | 2016-11-06 21:41:17 34 [Note] InnoDB: The InnoDB memory heap is disabled
db_1     | 2016-11-06 21:41:17 34 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
db_1     | 2016-11-06 21:41:17 34 [Note] InnoDB: Memory barrier is not used
db_1     | 2016-11-06 21:41:17 34 [Note] InnoDB: Compressed tables use zlib 1.2.8
db_1     | 2016-11-06 21:41:17 34 [Note] InnoDB: Using Linux native AIO
db_1     | 2016-11-06 21:41:17 34 [Note] InnoDB: Using CPU crc32 instructions
db_1     | 2016-11-06 21:41:17 34 [Note] InnoDB: Initializing buffer pool, size = 128.0M
db_1     | 2016-11-06 21:41:17 34 [Note] InnoDB: Completed initialization of buffer pool
db_1     | 2016-11-06 21:41:17 34 [Note] InnoDB: The first specified data file ./ibdata1 did not exist: a new database to be created!
db_1     | 2016-11-06 21:41:17 34 [Note] InnoDB: Setting file ./ibdata1 size to 12 MB
db_1     | 2016-11-06 21:41:17 34 [Note] InnoDB: Database physically writes the file full: wait...
db_1     | 2016-11-06 21:41:17 34 [Note] InnoDB: Setting log file ./ib_logfile101 size to 48 MB
db_1     | 2016-11-06 21:41:19 34 [Note] InnoDB: Setting log file ./ib_logfile1 size to 48 MB
web_1    | AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.20.0.4. Set the 'ServerName' directive globally to suppress this message
web_1    | AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.20.0.4. Set the 'ServerName' directive globally to suppress this message
web_1    | [Sun Nov 06 21:41:20.941775 2016] [mpm_prefork:notice] [pid 1] AH00163: Apache/2.4.10 (Debian) PHP/5.6.23 configured -- resuming normal operations
web_1    | [Sun Nov 06 21:41:20.941835 2016] [core:notice] [pid 1] AH00094: Command line: 'apache2 -D FOREGROUND'
db_1     | 2016-11-06 21:41:21 34 [Note] InnoDB: Renaming log file ./ib_logfile101 to ./ib_logfile0
db_1     | 2016-11-06 21:41:21 34 [Warning] InnoDB: New log files created, LSN=45781
db_1     | 2016-11-06 21:41:21 34 [Note] InnoDB: Doublewrite buffer not found: creating new
db_1     | 2016-11-06 21:41:21 34 [Note] InnoDB: Doublewrite buffer created
db_1     | 2016-11-06 21:41:21 34 [Note] InnoDB: 128 rollback segment(s) are active.
db_1     | 2016-11-06 21:41:21 34 [Warning] InnoDB: Creating foreign key constraint system tables.
db_1     | 2016-11-06 21:41:21 34 [Note] InnoDB: Foreign key constraint system tables created
db_1     | 2016-11-06 21:41:21 34 [Note] InnoDB: Creating tablespace and datafile system tables.
db_1     | 2016-11-06 21:41:21 34 [Note] InnoDB: Tablespace and datafile system tables created.
db_1     | 2016-11-06 21:41:21 34 [Note] InnoDB: Waiting for purge to start
db_1     | 2016-11-06 21:41:21 34 [Note] InnoDB: 5.6.34 started; log sequence number 0
db_1     | 2016-11-06 21:41:26 34 [Note] Binlog end
db_1     | 2016-11-06 21:41:26 34 [Note] InnoDB: FTS optimize thread exiting.
db_1     | 2016-11-06 21:41:26 34 [Note] InnoDB: Starting shutdown...
db_1     | 2016-11-06 21:41:28 34 [Note] InnoDB: Shutdown completed; log sequence number 1625977
db_1     | 
db_1     | 
db_1     | 2016-11-06 21:41:28 0 [Note] Ignoring --secure-file-priv value as server is running with --bootstrap.
db_1     | 2016-11-06 21:41:28 0 [Note] /usr/sbin/mysqld (mysqld 5.6.34) starting as process 57 ...
db_1     | 2016-11-06 21:41:28 57 [Note] InnoDB: Using atomics to ref count buffer pool pages
db_1     | 2016-11-06 21:41:28 57 [Note] InnoDB: The InnoDB memory heap is disabled
db_1     | 2016-11-06 21:41:28 57 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
db_1     | 2016-11-06 21:41:28 57 [Note] InnoDB: Memory barrier is not used
db_1     | 2016-11-06 21:41:28 57 [Note] InnoDB: Compressed tables use zlib 1.2.8
db_1     | 2016-11-06 21:41:28 57 [Note] InnoDB: Using Linux native AIO
db_1     | 2016-11-06 21:41:28 57 [Note] InnoDB: Using CPU crc32 instructions
db_1     | 2016-11-06 21:41:28 57 [Note] InnoDB: Initializing buffer pool, size = 128.0M
db_1     | 2016-11-06 21:41:28 57 [Note] InnoDB: Completed initialization of buffer pool
db_1     | 2016-11-06 21:41:28 57 [Note] InnoDB: Highest supported file format is Barracuda.
db_1     | 2016-11-06 21:41:28 57 [Note] InnoDB: 128 rollback segment(s) are active.
db_1     | 2016-11-06 21:41:28 57 [Note] InnoDB: Waiting for purge to start
db_1     | 2016-11-06 21:41:28 57 [Note] InnoDB: 5.6.34 started; log sequence number 1625977
db_1     | 2016-11-06 21:41:28 57 [Note] Binlog end
db_1     | 2016-11-06 21:41:28 57 [Note] InnoDB: FTS optimize thread exiting.
db_1     | 2016-11-06 21:41:28 57 [Note] InnoDB: Starting shutdown...
db_1     | 2016-11-06 21:41:30 57 [Note] InnoDB: Shutdown completed; log sequence number 1625987
db_1     | 
db_1     | 
db_1     | 
db_1     | 
db_1     | PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
db_1     | To do so, start the server, then issue the following commands:
db_1     | 
db_1     |   /usr/bin/mysqladmin -u root password 'new-password'
db_1     |   /usr/bin/mysqladmin -u root -h e00948576c74 password 'new-password'
db_1     | 
db_1     | Alternatively you can run:
db_1     | 
db_1     |   /usr/bin/mysql_secure_installation
db_1     | 
db_1     | which will also give you the option of removing the test
db_1     | databases and anonymous user created by default.  This is
db_1     | strongly recommended for production servers.
db_1     | 
db_1     | See the manual for more instructions.
db_1     | 
db_1     | Please report any problems at http://bugs.mysql.com/
db_1     | 
db_1     | The latest information about MySQL is available on the web at
db_1     | 
db_1     |   http://www.mysql.com
db_1     | 
db_1     | Support MySQL by buying support/licenses at http://shop.mysql.com
db_1     | 
db_1     | Note: new default config file not created.
db_1     | Please make sure your config file is current
db_1     | 
db_1     | WARNING: Default config file /etc/mysql/my.cnf exists on the system
db_1     | This file will be read by default by the MySQL server
db_1     | If you do not want to use this, either remove it, or use the
db_1     | --defaults-file argument to mysqld_safe when starting the server
db_1     | 
db_1     | Database initialized
db_1     | MySQL init process in progress...
db_1     | 2016-11-06 21:41:31 0 [Note] mysqld (mysqld 5.6.34) starting as process 80 ...
db_1     | 2016-11-06 21:41:31 80 [Note] Plugin 'FEDERATED' is disabled.
db_1     | 2016-11-06 21:41:31 80 [Note] InnoDB: Using atomics to ref count buffer pool pages
db_1     | 2016-11-06 21:41:31 80 [Note] InnoDB: The InnoDB memory heap is disabled
db_1     | 2016-11-06 21:41:31 80 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
db_1     | 2016-11-06 21:41:31 80 [Note] InnoDB: Memory barrier is not used
db_1     | 2016-11-06 21:41:31 80 [Note] InnoDB: Compressed tables use zlib 1.2.8
db_1     | 2016-11-06 21:41:31 80 [Note] InnoDB: Using Linux native AIO
db_1     | 2016-11-06 21:41:31 80 [Note] InnoDB: Using CPU crc32 instructions
db_1     | 2016-11-06 21:41:31 80 [Note] InnoDB: Initializing buffer pool, size = 128.0M
db_1     | 2016-11-06 21:41:31 80 [Note] InnoDB: Completed initialization of buffer pool
db_1     | 2016-11-06 21:41:31 80 [Note] InnoDB: Highest supported file format is Barracuda.
db_1     | 2016-11-06 21:41:31 80 [Note] InnoDB: 128 rollback segment(s) are active.
db_1     | 2016-11-06 21:41:31 80 [Note] InnoDB: Waiting for purge to start
db_1     | 2016-11-06 21:41:31 80 [Note] InnoDB: 5.6.34 started; log sequence number 1625987
db_1     | 2016-11-06 21:41:31 80 [Warning] No existing UUID has been found, so we assume that this is the first time that this server has been started. Generating a new UUID: c7c774fb-a469-11e6-82f8-0242ac140003.
db_1     | 2016-11-06 21:41:31 80 [Warning] 'user' entry 'root@e00948576c74' ignored in --skip-name-resolve mode.
db_1     | 2016-11-06 21:41:31 80 [Warning] 'user' entry '@e00948576c74' ignored in --skip-name-resolve mode.
db_1     | 2016-11-06 21:41:31 80 [Warning] 'proxies_priv' entry '@ root@e00948576c74' ignored in --skip-name-resolve mode.
db_1     | 2016-11-06 21:41:31 80 [Note] Event Scheduler: Loaded 0 events
db_1     | 2016-11-06 21:41:31 80 [Note] mysqld: ready for connections.
db_1     | Version: '5.6.34'  socket: '/var/run/mysqld/mysqld.sock'  port: 0  MySQL Community Server (GPL)
db_1     | Warning: Unable to load '/usr/share/zoneinfo/iso3166.tab' as time zone. Skipping it.
db_1     | Warning: Unable to load '/usr/share/zoneinfo/leap-seconds.list' as time zone. Skipping it.
db_1     | Warning: Unable to load '/usr/share/zoneinfo/zone.tab' as time zone. Skipping it.
db_1     | GENERATED ROOT PASSWORD: ha0xoh6reojainahpiorooxahdaeV5ee
db_1     | 2016-11-06 21:41:34 80 [Warning] 'proxies_priv' entry '@ root@e00948576c74' ignored in --skip-name-resolve mode.
db_1     | Warning: Using a password on the command line interface can be insecure.
db_1     | Warning: Using a password on the command line interface can be insecure.
db_1     | Warning: Using a password on the command line interface can be insecure.
db_1     | Warning: Using a password on the command line interface can be insecure.
db_1     | 2016-11-06 21:41:34 80 [Warning] 'proxies_priv' entry '@ root@e00948576c74' ignored in --skip-name-resolve mode.
db_1     | 
db_1     | 2016-11-06 21:41:34 80 [Note] mysqld: Normal shutdown
db_1     | 
db_1     | 2016-11-06 21:41:34 80 [Note] Giving 0 client threads a chance to die gracefully
db_1     | 2016-11-06 21:41:34 80 [Note] Event Scheduler: Purging the queue. 0 events
db_1     | 2016-11-06 21:41:34 80 [Note] Shutting down slave threads
db_1     | 2016-11-06 21:41:34 80 [Note] Forcefully disconnecting 0 remaining clients
db_1     | 2016-11-06 21:41:34 80 [Note] Binlog end
db_1     | 2016-11-06 21:41:34 80 [Note] Shutting down plugin 'partition'
db_1     | 2016-11-06 21:41:34 80 [Note] Shutting down plugin 'INNODB_SYS_DATAFILES'
db_1     | 2016-11-06 21:41:34 80 [Note] Shutting down plugin 'INNODB_SYS_TABLESPACES'
db_1     | 2016-11-06 21:41:34 80 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN_COLS'
db_1     | 2016-11-06 21:41:34 80 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN'
db_1     | 2016-11-06 21:41:34 80 [Note] Shutting down plugin 'INNODB_SYS_FIELDS'
db_1     | 2016-11-06 21:41:34 80 [Note] Shutting down plugin 'INNODB_SYS_COLUMNS'
db_1     | 2016-11-06 21:41:34 80 [Note] Shutting down plugin 'INNODB_SYS_INDEXES'
db_1     | 2016-11-06 21:41:34 80 [Note] Shutting down plugin 'INNODB_SYS_TABLESTATS'
db_1     | 2016-11-06 21:41:34 80 [Note] Shutting down plugin 'INNODB_SYS_TABLES'
db_1     | 2016-11-06 21:41:34 80 [Note] Shutting down plugin 'INNODB_FT_INDEX_TABLE'
db_1     | 2016-11-06 21:41:34 80 [Note] Shutting down plugin 'INNODB_FT_INDEX_CACHE'
db_1     | 2016-11-06 21:41:34 80 [Note] Shutting down plugin 'INNODB_FT_CONFIG'
db_1     | 2016-11-06 21:41:34 80 [Note] Shutting down plugin 'INNODB_FT_BEING_DELETED'
db_1     | 2016-11-06 21:41:34 80 [Note] Shutting down plugin 'INNODB_FT_DELETED'
db_1     | 2016-11-06 21:41:34 80 [Note] Shutting down plugin 'INNODB_FT_DEFAULT_STOPWORD'
db_1     | 2016-11-06 21:41:34 80 [Note] Shutting down plugin 'INNODB_METRICS'
db_1     | 2016-11-06 21:41:34 80 [Note] Shutting down plugin 'INNODB_BUFFER_POOL_STATS'
db_1     | 2016-11-06 21:41:34 80 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE_LRU'
db_1     | 2016-11-06 21:41:34 80 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE'
db_1     | 2016-11-06 21:41:34 80 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX_RESET'
db_1     | 2016-11-06 21:41:34 80 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX'
db_1     | 2016-11-06 21:41:34 80 [Note] Shutting down plugin 'INNODB_CMPMEM_RESET'
db_1     | 2016-11-06 21:41:34 80 [Note] Shutting down plugin 'INNODB_CMPMEM'
db_1     | 2016-11-06 21:41:34 80 [Note] Shutting down plugin 'INNODB_CMP_RESET'
db_1     | 2016-11-06 21:41:34 80 [Note] Shutting down plugin 'INNODB_CMP'
db_1     | 2016-11-06 21:41:34 80 [Note] Shutting down plugin 'INNODB_LOCK_WAITS'
db_1     | 2016-11-06 21:41:34 80 [Note] Shutting down plugin 'INNODB_LOCKS'
db_1     | 2016-11-06 21:41:34 80 [Note] Shutting down plugin 'INNODB_TRX'
db_1     | 2016-11-06 21:41:34 80 [Note] Shutting down plugin 'InnoDB'
db_1     | 2016-11-06 21:41:34 80 [Note] InnoDB: FTS optimize thread exiting.
db_1     | 2016-11-06 21:41:34 80 [Note] InnoDB: Starting shutdown...
db_1     | 2016-11-06 21:41:36 80 [Note] InnoDB: Shutdown completed; log sequence number 1625997
db_1     | 2016-11-06 21:41:36 80 [Note] Shutting down plugin 'ARCHIVE'
db_1     | 2016-11-06 21:41:36 80 [Note] Shutting down plugin 'BLACKHOLE'
db_1     | 2016-11-06 21:41:36 80 [Note] Shutting down plugin 'PERFORMANCE_SCHEMA'
db_1     | 2016-11-06 21:41:36 80 [Note] Shutting down plugin 'MyISAM'
db_1     | 2016-11-06 21:41:36 80 [Note] Shutting down plugin 'MRG_MYISAM'
db_1     | 2016-11-06 21:41:36 80 [Note] Shutting down plugin 'CSV'
db_1     | 2016-11-06 21:41:36 80 [Note] Shutting down plugin 'MEMORY'
db_1     | 2016-11-06 21:41:36 80 [Note] Shutting down plugin 'sha256_password'
db_1     | 2016-11-06 21:41:36 80 [Note] Shutting down plugin 'mysql_old_password'
db_1     | 2016-11-06 21:41:36 80 [Note] Shutting down plugin 'mysql_native_password'
db_1     | 2016-11-06 21:41:36 80 [Note] Shutting down plugin 'binlog'
db_1     | 2016-11-06 21:41:36 80 [Note] mysqld: Shutdown complete
db_1     | 
db_1     | 
db_1     | MySQL init process done. Ready for start up.
db_1     | 
db_1     | 2016-11-06 21:41:36 0 [Note] mysqld (mysqld 5.6.34) starting as process 1 ...
db_1     | 2016-11-06 21:41:36 1 [Note] Plugin 'FEDERATED' is disabled.
db_1     | 2016-11-06 21:41:36 1 [Note] InnoDB: Using atomics to ref count buffer pool pages
db_1     | 2016-11-06 21:41:36 1 [Note] InnoDB: The InnoDB memory heap is disabled
db_1     | 2016-11-06 21:41:36 1 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
db_1     | 2016-11-06 21:41:36 1 [Note] InnoDB: Memory barrier is not used
db_1     | 2016-11-06 21:41:36 1 [Note] InnoDB: Compressed tables use zlib 1.2.8
db_1     | 2016-11-06 21:41:36 1 [Note] InnoDB: Using Linux native AIO
db_1     | 2016-11-06 21:41:36 1 [Note] InnoDB: Using CPU crc32 instructions
db_1     | 2016-11-06 21:41:36 1 [Note] InnoDB: Initializing buffer pool, size = 128.0M
db_1     | 2016-11-06 21:41:36 1 [Note] InnoDB: Completed initialization of buffer pool
db_1     | 2016-11-06 21:41:36 1 [Note] InnoDB: Highest supported file format is Barracuda.
db_1     | 2016-11-06 21:41:36 1 [Note] InnoDB: 128 rollback segment(s) are active.
db_1     | 2016-11-06 21:41:36 1 [Note] InnoDB: Waiting for purge to start
db_1     | 2016-11-06 21:41:36 1 [Note] InnoDB: 5.6.34 started; log sequence number 1625997
db_1     | 2016-11-06 21:41:36 1 [Note] Server hostname (bind-address): '*'; port: 3306
db_1     | 2016-11-06 21:41:36 1 [Note] IPv6 is available.
db_1     | 2016-11-06 21:41:36 1 [Note]   - '::' resolves to '::';
db_1     | 2016-11-06 21:41:36 1 [Note] Server socket created on IP: '::'.
db_1     | 2016-11-06 21:41:36 1 [Warning] 'proxies_priv' entry '@ root@e00948576c74' ignored in --skip-name-resolve mode.
db_1     | 2016-11-06 21:41:36 1 [Note] Event Scheduler: Loaded 0 events
db_1     | 2016-11-06 21:41:36 1 [Note] mysqld: ready for connections.
db_1     | Version: '5.6.34'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  MySQL Community Server (GPL)

from emoncms-docker.

glynhudson avatar glynhudson commented on September 17, 2024

I'm running docker

Docker version 1.11.2, build b9f10c9

from emoncms-docker.

skabashnyuk avatar skabashnyuk commented on September 17, 2024

Hello @glynhudson
I have Docker version 1.12.3, build 6b644ec

Can you show me what do you have for docker inspect emoncmsdocker_web_1 ?

from emoncms-docker.

skabashnyuk avatar skabashnyuk commented on September 17, 2024

@glynhudson quick question. Do I need to call setup_dev_repositories script before doing Quick start? That can explain why I have 403 from apache and strange empty folder emoncms after I call docker-compose up without calling setup_dev_repositories. If I call that script emoncms start perfectly.

from emoncms-docker.

glynhudson avatar glynhudson commented on September 17, 2024

If you don't run setup_dev_repositories docker will clone in the emoncms repos from GH directly into the containers if you have pulled the pre build emoncms image from docker hub.

To attach a shell to emon_web:

$ docker exec -it emoncms_web_1 /bin/bash

from emoncms-docker.

skabashnyuk avatar skabashnyuk commented on September 17, 2024

The good news is that image contains emoncms files

[23:00:29]sj:~#: docker run -it openenergymonitor/emoncms ls /var/www/html
COPYRIGHT.txt  core.php             locale.php        route.php
LICENSE.txt    default.emonpi.settings.php  logconfig.xml     scripts
Lib        default.settings.php     php-info.php      settings.php
Modules        docs             process_settings.php  test.php
Theme          index.php            readme.md

But the bad news is that running container don't

[23:13:05]sj:~#: docker exec -it emoncmsdocker_web_1 ls /var/www/html
[23:13:14]sj:~#:

I think it caused by
this mount

            {
                "Source": "/Users/sj/dev/src/pi2/emoncms-docker/emoncms",
                "Destination": "/var/www/html",
                "Mode": "rw",
                "RW": true,
                "Propagation": "rprivate"
            }

[23:13:47]sj:~#: docker inspect emoncmsdocker_web_1
[
    {
        "Id": "c3fb7003f2f7c15afdc7bb8e7b4fe7258971be3ecdb7e60bb348fb1904808a1e",
        "Created": "2016-11-15T21:12:11.156568832Z",
        "Path": "apache2-foreground",
        "Args": [],
        "State": {
            "Status": "running",
            "Running": true,
            "Paused": false,
            "Restarting": false,
            "OOMKilled": false,
            "Dead": false,
            "Pid": 3283,
            "ExitCode": 0,
            "Error": "",
            "StartedAt": "2016-11-15T21:12:12.562554975Z",
            "FinishedAt": "0001-01-01T00:00:00Z"
        },
        "Image": "sha256:8ad53b353c0d656e8ff8eb3b1ff664d314a5e5c08400302ffa09655c2dcfa595",
        "ResolvConfPath": "/var/lib/docker/containers/c3fb7003f2f7c15afdc7bb8e7b4fe7258971be3ecdb7e60bb348fb1904808a1e/resolv.conf",
        "HostnamePath": "/var/lib/docker/containers/c3fb7003f2f7c15afdc7bb8e7b4fe7258971be3ecdb7e60bb348fb1904808a1e/hostname",
        "HostsPath": "/var/lib/docker/containers/c3fb7003f2f7c15afdc7bb8e7b4fe7258971be3ecdb7e60bb348fb1904808a1e/hosts",
        "LogPath": "/var/lib/docker/containers/c3fb7003f2f7c15afdc7bb8e7b4fe7258971be3ecdb7e60bb348fb1904808a1e/c3fb7003f2f7c15afdc7bb8e7b4fe7258971be3ecdb7e60bb348fb1904808a1e-json.log",
        "Name": "/emoncmsdocker_web_1",
        "RestartCount": 0,
        "Driver": "aufs",
        "MountLabel": "",
        "ProcessLabel": "",
        "AppArmorProfile": "",
        "ExecIDs": null,
        "HostConfig": {
            "Binds": [
                "emoncmsdocker_emon-phpfina:/var/lib/phpfina:rw",
                "emoncmsdocker_emon-phpfiwa:/var/lib/phpfiwa:rw",
                "emoncmsdocker_emon-phptimeseries:/var/lib/phptimeseries:rw",
                "/Users/sj/dev/src/pi2/emoncms-docker/emoncms:/var/www/html:rw"
            ],
            "ContainerIDFile": "",
            "LogConfig": {
                "Type": "json-file",
                "Config": {}
            },
            "NetworkMode": "emoncmsdocker_default",
            "PortBindings": {
                "80/tcp": [
                    {
                        "HostIp": "",
                        "HostPort": "8080"
                    }
                ]
            },
            "RestartPolicy": {
                "Name": "",
                "MaximumRetryCount": 0
            },
            "AutoRemove": false,
            "VolumeDriver": "",
            "VolumesFrom": [],
            "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": "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": "aufs",
            "Data": null
        },
        "Mounts": [
            {
                "Name": "emoncmsdocker_emon-phpfina",
                "Source": "/var/lib/docker/volumes/emoncmsdocker_emon-phpfina/_data",
                "Destination": "/var/lib/phpfina",
                "Driver": "local",
                "Mode": "rw",
                "RW": true,
                "Propagation": "rprivate"
            },
            {
                "Name": "emoncmsdocker_emon-phpfiwa",
                "Source": "/var/lib/docker/volumes/emoncmsdocker_emon-phpfiwa/_data",
                "Destination": "/var/lib/phpfiwa",
                "Driver": "local",
                "Mode": "rw",
                "RW": true,
                "Propagation": "rprivate"
            },
            {
                "Name": "emoncmsdocker_emon-phptimeseries",
                "Source": "/var/lib/docker/volumes/emoncmsdocker_emon-phptimeseries/_data",
                "Destination": "/var/lib/phptimeseries",
                "Driver": "local",
                "Mode": "rw",
                "RW": true,
                "Propagation": "rprivate"
            },
            {
                "Source": "/Users/sj/dev/src/pi2/emoncms-docker/emoncms",
                "Destination": "/var/www/html",
                "Mode": "rw",
                "RW": true,
                "Propagation": "rprivate"
            }
        ],
        "Config": {
            "Hostname": "c3fb7003f2f7",
            "Domainname": "",
            "User": "",
            "AttachStdin": false,
            "AttachStdout": false,
            "AttachStderr": false,
            "ExposedPorts": {
                "80/tcp": {}
            },
            "Tty": false,
            "OpenStdin": false,
            "StdinOnce": false,
            "Env": [
                "MYSQL_PASSWORD=YOUR_SECURE_PASSWORD",
                "MYSQL_RANDOM_ROOT_PASSWORD=yes",
                "MYSQL_HOST=db",
                "REDIS_HOST=redis",
                "REDIS_ENABLED=true",
                "MYSQL_DATABASE=emoncms",
                "MYSQL_PORT=3306",
                "REDIS_PORT=6379",
                "REDIS_PREFIX='emoncms'",
                "MYSQL_USER=emoncms",
                "no_proxy=*.local, 169.254/16",
                "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
                "PHPIZE_DEPS=autoconf \t\tfile \t\tg++ \t\tgcc \t\tlibc-dev \t\tmake \t\tpkg-config \t\tre2c",
                "PHP_INI_DIR=/usr/local/etc/php",
                "APACHE_CONFDIR=/etc/apache2",
                "APACHE_ENVVARS=/etc/apache2/envvars",
                "PHP_EXTRA_BUILD_DEPS=apache2-dev",
                "PHP_EXTRA_CONFIGURE_ARGS=--with-apxs2",
                "GPG_KEYS=0BD78B5F97500D450838F95DFE857D9A90D90EC1 6E4F6AB321FDC07F2C332E3AC2BF0BC433CFC8B3",
                "PHP_VERSION=5.6.23",
                "PHP_FILENAME=php-5.6.23.tar.xz",
                "PHP_SHA256=39141e9a617af172aedbbacee7a63eb15502850f7cea20d759a9cffa7cfb0a1a"
            ],
            "Cmd": [
                "apache2-foreground"
            ],
            "Image": "openenergymonitor/emoncms",
            "Volumes": {
                "/var/lib/phpfina": {},
                "/var/lib/phpfiwa": {},
                "/var/lib/phptimeseries": {},
                "/var/www/html": {}
            },
            "WorkingDir": "/var/www/html",
            "Entrypoint": null,
            "OnBuild": null,
            "Labels": {
                "com.docker.compose.config-hash": "36fc7315a69c7dda22ac0e3397c88ebfb8850d792a8169c1258b9b8a34519544",
                "com.docker.compose.container-number": "1",
                "com.docker.compose.oneoff": "False",
                "com.docker.compose.project": "emoncmsdocker",
                "com.docker.compose.service": "web",
                "com.docker.compose.version": "1.8.1"
            }
        },
        "NetworkSettings": {
            "Bridge": "",
            "SandboxID": "d74b005ed33bef9f3bd4bdd0e5f42aa369f86f12a3f731f289d5046d52231ea4",
            "HairpinMode": false,
            "LinkLocalIPv6Address": "",
            "LinkLocalIPv6PrefixLen": 0,
            "Ports": {
                "80/tcp": [
                    {
                        "HostIp": "0.0.0.0",
                        "HostPort": "8080"
                    }
                ]
            },
            "SandboxKey": "/var/run/docker/netns/d74b005ed33b",
            "SecondaryIPAddresses": null,
            "SecondaryIPv6Addresses": null,
            "EndpointID": "",
            "Gateway": "",
            "GlobalIPv6Address": "",
            "GlobalIPv6PrefixLen": 0,
            "IPAddress": "",
            "IPPrefixLen": 0,
            "IPv6Gateway": "",
            "MacAddress": "",
            "Networks": {
                "emoncmsdocker_default": {
                    "IPAMConfig": null,
                    "Links": [
                        "emoncmsdocker_db_1:db",
                        "emoncmsdocker_db_1:db_1",
                        "emoncmsdocker_db_1:emoncmsdocker_db_1",
                        "emoncmsdocker_redis_1:emoncmsdocker_redis_1",
                        "emoncmsdocker_redis_1:redis",
                        "emoncmsdocker_redis_1:redis_1"
                    ],
                    "Aliases": [
                        "web",
                        "c3fb7003f2f7"
                    ],
                    "NetworkID": "b1d3f3a3b3af5ae7dd537005940effc8b5d0ac8ba244a80d79964073766774c2",
                    "EndpointID": "55f9472b76728fdc9e333bb4e246ea88b6f8afde934426743219ab7906061c91",
                    "Gateway": "172.20.0.1",
                    "IPAddress": "172.20.0.4",
                    "IPPrefixLen": 16,
                    "IPv6Gateway": "",
                    "GlobalIPv6Address": "",
                    "GlobalIPv6PrefixLen": 0,
                    "MacAddress": "02:42:ac:14:00:04"
                }
            }
        }
    }
]

My be this is somehow OSX specific.

from emoncms-docker.

skabashnyuk avatar skabashnyuk commented on September 17, 2024

@glynhudson I've checked on Linux. Behaviour the same as I saw on OSX, you do have to call setup_dev_repositories before running docker-compose up otherwise /var/www/html folder will be empty because it mounted from the host no matter what

            {
                "Source": "/home/sj/dev/src/iot/emoncms-docker/emoncms",
                "Destination": "/var/www/html",
                "Mode": "rw",
                "RW": true,
                "Propagation": "rprivate"
            }

from emoncms-docker.

CostaRich avatar CostaRich commented on September 17, 2024

Late to the party but this happened to me because I'd forgotten that I had enabled an HTTP web interface for VLC to be controlled by a browser. On OSX the command is something like:

lsof -i 4tcp:8080 -sTCP:LISTEN

to see if there is something attached to that port.

from emoncms-docker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.