Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File logs missing in docker container #1229

Closed
helsonxiao opened this issue Aug 5, 2021 · 0 comments · Fixed by #1286
Closed

File logs missing in docker container #1229

helsonxiao opened this issue Aug 5, 2021 · 0 comments · Fixed by #1286
Labels
bug For confirmed bugs
Milestone

Comments

@helsonxiao
Copy link
Contributor

helsonxiao commented Aug 5, 2021

Describe the bug

File logs can not be created in docker container. Also, ps is not installed in docker image.

Logs

ERROR StatusLogger Reconfiguration failed: No configuration found for '55054057' at 'null' in 'null'

Console logs are very verbose and there is no file log.

15:18:19.381 [I/O dispatcher 1] DEBUG org.apache.http.wire - http-outgoing-0 >> "{"path":{"root":"d41d8cd98f0b24e980998ecf8427e","virtual":"/SPSS","real":"/SPSS"},"file":{"content_type":"text/directory","filename":"SPSS"}}[\n]"
15:18:19.381 [I/O dispatcher 1] DEBUG org.apache.http.wire - http-outgoing-0 >> "{"index":{"_index":"lanfcs_local_ftp_file_folder","_id":"1c678696b96e1db065b2f47984866d26"}}[\n]"
15:18:19.381 [I/O dispatcher 1] DEBUG org.apache.http.wire - http-outgoing-0 >> "{"path":{"root":"a1f2f5364323d82b386db08788f4e087","virtual":"/SPSS/[0xffffffe5][0xffffff85][0xffffffb6][0xffffffe4][0xffffffbb][0xffffff96][0xffffffe4][0xffffffba][0xffffffba][0xffffffe6][0xffffff95][0xffffffb4][0xffffffe7][0xffffff90][0xffffff86][0xffffffe8][0xffffffb5][0xffffff84][0xffffffe6][0xffffff96][0xffffff99]","real":"/SPSS/[0xffffffe5][0xffffff85][0xffffffb6][0xffffffe4][0xffffffbb][0xffffff96][0xffffffe4][0xffffffba][0xffffffba][0xffffffe6][0xffffff95][0xffffffb4][0xffffffe7][0xffffff90][0xffffff86][0xffffffe8][0xffffffb5][0xffffff84][0xffffffe6][0xffffff96][0xffffff99]"},"file":{"content_type":"text/directory","filename":"[0xffffffe5][0xffffff85][0xffffffb6][0xffffffe4][0xffffffbb][0xffffff96][0xffffffe4][0xffffffba][0xffffffba][0xffffffe6][0xffffff95][0xffffffb4][0xffffffe7][0xffffff90][0xffffff86][0xffffffe8][0xffffffb5][0xffffff84][0xffffffe6][0xffffff96][0xffffff99]"}}[\n]"
15:18:19.381 [I/O dispatcher 1] DEBUG org.apache.http.impl.nio.client.InternalIODispatch - http-outgoing-0 [ACTIVE] Request ready
15:18:19.382 [I/O dispatcher 1] DEBUG org.apache.http.impl.nio.conn.ManagedNHttpClientConnectionImpl - http-outgoing-0 127.0.0.1:63648<->127.0.0.1:9200[ACTIVE][r:w]: Event cleared [w]
15:18:19.390 [I/O dispatcher 1] DEBUG org.apache.http.impl.nio.conn.ManagedNHttpClientConnectionImpl - http-outgoing-0 127.0.0.1:63648<->127.0.0.1:9200[ACTIVE][r:r]: 586 bytes read
15:18:19.390 [I/O dispatcher 1] DEBUG org.apache.http.wire - http-outgoing-0 << "HTTP/1.1 200 OK[\r][\n]"
15:18:19.390 [I/O dispatcher 1] DEBUG org.apache.http.wire - http-outgoing-0 << "content-type: application/json; charset=UTF-8[\r][\n]"
15:18:19.390 [I/O dispatcher 1] DEBUG org.apache.http.wire - http-outgoing-0 << "content-length: 499[\r][\n]"
15:18:19.390 [I/O dispatcher 1] DEBUG org.apache.http.wire - http-outgoing-0 << "[\r][\n]"
15:18:19.390 [I/O dispatcher 1] DEBUG org.apache.http.wire - http-outgoing-0 << "{"took":6,"errors":false,"items":[{"index":{"_index":"lanfcs_local_ftp_file_folder","_type":"_doc","_id":"a1f2f5364323d82b386db08788f4e087","_version":8,"result":"updated","_shards":{"total":2,"successful":1,"failed":0},"_seq_no":88,"_primary_term":1,"status":200}},{"index":{"_index":"lanfcs_local_ftp_file_folder","_type":"_doc","_id":"1c678696b96e1db065b2f47984866d26","_version":7,"result":"updated","_shards":{"total":2,"successful":1,"failed":0},"_seq_no":89,"_primary_term":1,"status":200}}]}"
15:18:19.391 [I/O dispatcher 1] DEBUG org.apache.http.headers - http-outgoing-0 << HTTP/1.1 200 OK
15:18:19.391 [I/O dispatcher 1] DEBUG org.apache.http.headers - http-outgoing-0 << content-type: application/json; charset=UTF-8
15:18:19.391 [I/O dispatcher 1] DEBUG org.apache.http.headers - http-outgoing-0 << content-length: 499
15:18:19.391 [I/O dispatcher 1] DEBUG org.apache.http.impl.nio.client.InternalIODispatch - http-outgoing-0 [ACTIVE(499)] Response received
15:18:19.391 [I/O dispatcher 1] DEBUG org.apache.http.impl.nio.client.MainClientExec - [exchange: 15] Response received HTTP/1.1 200 OK
15:18:19.391 [I/O dispatcher 1] DEBUG org.apache.http.impl.nio.client.InternalIODispatch - http-outgoing-0 [ACTIVE(499)] Input ready
15:18:19.391 [I/O dispatcher 1] DEBUG org.apache.http.impl.nio.client.MainClientExec - [exchange: 15] Consume content
15:18:19.391 [I/O dispatcher 1] DEBUG org.apache.http.impl.nio.client.InternalHttpAsyncClient - [exchange: 15] Connection can be kept alive indefinitely
15:18:19.391 [I/O dispatcher 1] DEBUG org.apache.http.impl.nio.client.MainClientExec - [exchange: 15] Response processed
15:18:19.391 [I/O dispatcher 1] DEBUG org.apache.http.impl.nio.client.InternalHttpAsyncClient - [exchange: 15] releasing connection
15:18:19.391 [I/O dispatcher 1] DEBUG org.apache.http.impl.nio.conn.ManagedNHttpClientConnectionImpl - http-outgoing-0 127.0.0.1:63648<->127.0.0.1:9200[ACTIVE][r:r]: Remove attribute http.nio.exchange-handler
15:18:19.391 [I/O dispatcher 1] DEBUG org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionManager - Releasing connection: [id: http-outgoing-0][route: {}->http://127.0.0.1:9200][total kept alive: 0; route allocated: 1 of 10; total allocated: 1 of 30]
15:18:19.392 [I/O dispatcher 1] DEBUG org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionManager - Connection [id: http-outgoing-0][route: {}->http://127.0.0.1:9200] can be kept alive indefinitely
15:18:19.392 [I/O dispatcher 1] DEBUG org.apache.http.impl.nio.conn.ManagedNHttpClientConnectionImpl - http-outgoing-0 127.0.0.1:63648<->127.0.0.1:9200[ACTIVE][r:r]: Set timeout 0

Expected behavior

If I run the following command, I can see file logs and console logs. It works in previous versions but not in 2.7.
docker run -d --restart always --name $job_name -v $PWD/config:/root/.fscrawler -v $PWD/logs/$job_name:/usr/share/fscrawler/logs dadoonet/fscrawler fscrawler $job_name --debug

Versions:

  • OS: [e.g. MacOS] MacOS
  • Version [e.g. 2.5] 2.7
@helsonxiao helsonxiao added the check_for_bug Needs to be reproduced label Aug 5, 2021
@dadoonet dadoonet added bug For confirmed bugs and removed check_for_bug Needs to be reproduced labels Aug 5, 2021
@dadoonet dadoonet added this to the 2.8 milestone Aug 6, 2021
@dadoonet dadoonet linked a pull request Sep 21, 2021 that will close this issue
@dadoonet dadoonet linked a pull request Oct 15, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug For confirmed bugs
Projects
None yet
2 participants