Container can't be started: Empty Directory
Version number 1.0.0.
Attach logs First start
docker run --rm --name lightmeter -p 2580:8080 -v /srv/lightmeter:/workspace:rw -v /var/log/:/logs:ro lightmeter/controlcenter:1.0.0 -workspace /workspace -watch_dir /logs
2020/11/26 10:49:45
2020/11/26 10:49:45 Database name logs
2020/11/26 10:49:45 Applied At Migration
2020/11/26 10:49:45 =======================================
2020/11/26 10:49:45 Pending -- 1_postfix_payload_smtp.go
2020/11/26 10:49:45 OK 1_postfix_payload_smtp.go
2020/11/26 10:49:45 no migrations to run. current version: 1
2020/11/26 10:49:45
2020/11/26 10:49:45 Database name auth
2020/11/26 10:49:45 Applied At Migration
2020/11/26 10:49:45 =======================================
2020/11/26 10:49:45 Pending -- 1_auth_migration_create_auth_table.go
2020/11/26 10:49:45 Pending -- 2_create_meta_table.go
2020/11/26 10:49:45 Pending -- 3_auth_migration_clear_old_keys.go
2020/11/26 10:49:45 OK 1_auth_migration_create_auth_table.go
2020/11/26 10:49:45 OK 2_create_meta_table.go
2020/11/26 10:49:45 OK 3_auth_migration_clear_old_keys.go
2020/11/26 10:49:45 no migrations to run. current version: 3
2020/11/26 10:49:45
2020/11/26 10:49:45 Database name auth
2020/11/26 10:49:45 Applied At Migration
2020/11/26 10:49:45 =======================================
2020/11/26 10:49:45 Thu Nov 26 10:49:45 2020 -- 1_auth_migration_create_auth_table.go
2020/11/26 10:49:45 Thu Nov 26 10:49:45 2020 -- 2_create_meta_table.go
2020/11/26 10:49:45 Thu Nov 26 10:49:45 2020 -- 3_auth_migration_clear_old_keys.go
2020/11/26 10:49:45 no migrations to run. current version: 3
2020/11/26 10:49:45
2020/11/26 10:49:45 Database name master
2020/11/26 10:49:45 Applied At Migration
2020/11/26 10:49:45 =======================================
2020/11/26 10:49:45 Pending -- 1_create_meta_table.go
2020/11/26 10:49:45 Pending -- 3_rename_localrbl_to_globalsettings.go
2020/11/26 10:49:45 OK 1_create_meta_table.go
2020/11/26 10:49:45 OK 3_rename_localrbl_to_globalsettings.go
2020/11/26 10:49:45 no migrations to run. current version: 3
2020/11/26 10:49:45
2020/11/26 10:49:45 Database name insights
2020/11/26 10:49:45 Applied At Migration
2020/11/26 10:49:45 =======================================
2020/11/26 10:49:45 Pending -- 1_insights.go
2020/11/26 10:49:45 OK 1_insights.go
2020/11/26 10:49:45 no migrations to run. current version: 1
2020/11/26 10:49:45 Generating an insight with the content: {2020-11-26 10:49:45.179958009 +0000 UTC m=+0.113554305 news unrated welcome_content }
2020/11/26 10:49:45 Generating an insight with the content: {2020-11-26 10:49:45.179958009 +0000 UTC m=+0.113554305 news unrated insights_introduction_content }
2020/11/26 10:49:45 Ignoring RBL scan as IP is not configured
2020/11/26 10:49:45 Start importing Postfix logs directory into a new workspace
2020/11/26 10:49:45 Generated Session key with 32 bytes
2020/11/26 10:49:45 Lightmeter ControlCenter is running on http://[::]:8080
2020/11/26 10:49:45 Seeked /logs/mail.log - &{Offset:35434422 Whence:0}
2020/11/26 10:49:45 Seeked /logs/mail.err - &{Offset:0 Whence:0}
2020/11/26 10:49:45 Seeked /logs/mail.warn - &{Offset:692114 Whence:0}
2020/11/26 10:49:45 Changed Year on log queue mail.warn
2020/11/26 10:49:45 Changed Year on log queue mail.log
2020/11/26 10:49:45 Finished importing log file: /logs/mail.err.4.gz
2020/11/26 10:49:45 Finished importing log file: /logs/mail.err.3.gz
2020/11/26 10:49:45 Finished importing log file: /logs/mail.err.2.gz
2020/11/26 10:49:45 Finished importing log file: /logs/mail.err.1
2020/11/26 10:49:45 Finished importing log file: /logs/mail.err
2020/11/26 10:49:46 Inserted 985 rows in a transaction
2020/11/26 10:49:46 Finished importing log file: /logs/mail.warn.4.gz
2020/11/26 10:49:46 Finished importing log file: /logs/mail.log.4.gz
2020/11/26 10:49:47 Inserted 6532 rows in a transaction
2020/11/26 10:49:47 Finished importing log file: /logs/mail.log.3.gz
2020/11/26 10:49:47 Finished importing log file: /logs/mail.warn.3.gz
2020/11/26 10:49:48 Inserted 9202 rows in a transaction
2020/11/26 10:49:48 Finished importing log file: /logs/mail.warn.2.gz
2020/11/26 10:49:48 Finished importing log file: /logs/mail.log.2.gz
2020/11/26 10:49:49 Inserted 8223 rows in a transaction
2020/11/26 10:49:49 Finished importing log file: /logs/mail.warn.1
2020/11/26 10:49:49 Finished importing log file: /logs/mail.log.1
2020/11/26 10:49:50 Inserted 5953 rows in a transaction
2020/11/26 10:49:50 Finished importing log file: /logs/mail.warn
2020/11/26 10:49:50 Finished importing log file: /logs/mail.log
2020/11/26 10:49:50 Finished importing postfix log directory in: 5.282111837s
2020/11/26 10:49:51 Inserted 2118 rows in a transaction
then stop the container, and start it again:
docker run --rm --name lightmeter -p 2580:8080 -v /srv/lightmeter:/workspace:rw -v /var/log/:/logs:ro lightmeter/controlcenter:1.0.0 -workspace /workspace -watch_dir /logs
2020/11/26 10:50:08
2020/11/26 10:50:08 Database name logs
2020/11/26 10:50:08 Applied At Migration
2020/11/26 10:50:08 =======================================
2020/11/26 10:50:08 Thu Nov 26 10:49:45 2020 -- 1_postfix_payload_smtp.go
2020/11/26 10:50:08 no migrations to run. current version: 1
2020/11/26 10:50:08
2020/11/26 10:50:08 Database name auth
2020/11/26 10:50:08 Applied At Migration
2020/11/26 10:50:08 =======================================
2020/11/26 10:50:08 Thu Nov 26 10:49:45 2020 -- 1_auth_migration_create_auth_table.go
2020/11/26 10:50:08 Thu Nov 26 10:49:45 2020 -- 2_create_meta_table.go
2020/11/26 10:50:08 Thu Nov 26 10:49:45 2020 -- 3_auth_migration_clear_old_keys.go
2020/11/26 10:50:08 no migrations to run. current version: 3
2020/11/26 10:50:08
2020/11/26 10:50:08 Database name auth
2020/11/26 10:50:08 Applied At Migration
2020/11/26 10:50:08 =======================================
2020/11/26 10:50:08 Thu Nov 26 10:49:45 2020 -- 1_auth_migration_create_auth_table.go
2020/11/26 10:50:08 Thu Nov 26 10:49:45 2020 -- 2_create_meta_table.go
2020/11/26 10:50:08 Thu Nov 26 10:49:45 2020 -- 3_auth_migration_clear_old_keys.go
2020/11/26 10:50:08 no migrations to run. current version: 3
2020/11/26 10:50:08
2020/11/26 10:50:08 Database name master
2020/11/26 10:50:08 Applied At Migration
2020/11/26 10:50:08 =======================================
2020/11/26 10:50:08 Thu Nov 26 10:49:45 2020 -- 1_create_meta_table.go
2020/11/26 10:50:08 Thu Nov 26 10:49:45 2020 -- 3_rename_localrbl_to_globalsettings.go
2020/11/26 10:50:08 no migrations to run. current version: 3
2020/11/26 10:50:08
2020/11/26 10:50:08 Database name insights
2020/11/26 10:50:08 Applied At Migration
2020/11/26 10:50:08 =======================================
2020/11/26 10:50:08 Thu Nov 26 10:49:45 2020 -- 1_insights.go
2020/11/26 10:50:08 no migrations to run. current version: 1
2020/11/26 10:50:08 Importing Postfix logs directory from time 2020-11-26 11:26:58 +0000 UTC
Empty Directory
2020/11/26 10:50:08 Error watching directory: /logs
I can only start the container again after removing everything from /srv/lighthouse
.