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

No log files found in the logging directory of docker container running on Apple M1 #1326

Closed
subhod-i opened this issue Nov 15, 2021 · 6 comments
Labels
bug Something isn't working

Comments

@subhod-i
Copy link
Collaborator

subhod-i commented Nov 15, 2021

Describe the bug
While debugging on why node fails to start up, wanted to have a look at the debug logs but the /home/aeternity/node/log directory is empty.

To Reproduce

  1. Set the logging to debug
logging:
    # Controls the overload protection in the logs.
    hwm: 50
    # Sets the level of logging.
    level: debug
  1. docker-compose up -d
  2. docker exec -it *** bash
  3. ls log

Expected behavior
Logging directory with different logging files

Please tell us about your environment:

  • docker version : v20.10.10
  • docker-compose verison: v2.1.1
  • branch: develop
  • OS: M1 Pro Apple Silicon running docker on rosetta 2
@subhod-i subhod-i added the bug Something isn't working label Nov 15, 2021
@marc0olo
Copy link
Contributor

not sure if there is a problem. but I guess the js-sdk repo is the wrong place to discuss that

@subhod-i
Copy link
Collaborator Author

I am using the docker-compose files from this repo so that if someones encounter this while working on SDK can also refer to this issue. The Major problem is that why Node fails to start but to submit that issue I need more logs.

@marc0olo
Copy link
Contributor

marc0olo commented Nov 15, 2021

I see you have an Apple M1. I guess this is the problem. we aren't compatible right now. see aeternity/aeternity#3632 - as far as I know this is being addressed by the foundation in the near future

@subhod-i subhod-i changed the title No log files found in the logging directory of docker container No log files found in the logging directory of docker container running on Apple M1 Nov 15, 2021
@davidyuk
Copy link
Member

I've enabled logging as in the example above in docker/aeternity_node_mean16.yaml, executed docker-compose up
and I see much more debug output, like:

aepp-sdk-js-node-1      | 07:57:43.207 [debug] Worker <0.2670.0> created

also, I found logs in log folder of container:

$ docker exec -it aepp-sdk-js-node-1 bash
aeternity@node:~/node$ ls -lah log/*
-rw-r--r-- 1 aeternity aeternity    0 Nov 23 07:51 log/aestratum.log
-rw-r--r-- 1 aeternity aeternity 882K Nov 23 07:58 log/aeternity.log
-rw-r--r-- 1 aeternity aeternity 665K Nov 23 07:58 log/aeternity_metrics.log
-rw-r--r-- 1 aeternity aeternity 1.1M Nov 23 07:58 log/aeternity_mining.log
-rw-r--r-- 1 aeternity aeternity 4.1M Nov 23 07:58 log/aeternity_mining.log.0
-rw-r--r-- 1 aeternity aeternity 4.1M Nov 23 07:57 log/aeternity_mining.log.1
-rw-r--r-- 1 aeternity aeternity 4.1M Nov 23 07:55 log/aeternity_mining.log.2
-rw-r--r-- 1 aeternity aeternity 1.7M Nov 23 07:58 log/aeternity_pow_cuckoo.log
-rw-r--r-- 1 aeternity aeternity 4.1M Nov 23 07:58 log/aeternity_pow_cuckoo.log.0
-rw-r--r-- 1 aeternity aeternity 4.2M Nov 23 07:57 log/aeternity_pow_cuckoo.log.1
-rw-r--r-- 1 aeternity aeternity 4.1M Nov 23 07:55 log/aeternity_pow_cuckoo.log.2
-rw-r--r-- 1 aeternity aeternity  212 Nov 23 07:57 log/aeternity_sync.log
-rw-r--r-- 1 aeternity aeternity    0 Nov 23 07:51 log/crash.log

So, I can't reproduce this issue on an Intel CPU, I don't think that this logging should be enabled by default

@subhod-i
Copy link
Collaborator Author

It's the same problem even without enabling logging. We know it's failing to run on the M1 chip but sure what the error is. Terminal logs are none and this is where I wanted to look at the logger files. Unfortunately even those are not found. Anyway, the issue has been identified here aeternity/aeternity#3632

@davidyuk
Copy link
Member

Let's reopen this after the upstream issue will be solved and if we have something not working after that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants