[Solved] Problem attempting to start AEProject

Hey guys,

I have been following this tutorial in attempting to run the Aeproject framework (overall goal is to design an fungible token meeting Aex-9 standards)

I am at the point of calling “aeproject node” but the proxy seems to be failing and complaining that I am trying to mount a directory onto a file.
The error is as follows:

.Creating placeholder-aepp_node1_1 …
Creating placeholder-aepp_proxy_1 … error
ERROR: for placeholder-aepp_proxy_1 Cannot start service proxy: OCI runtime create failed: continer_linux.go:346: starting container process caused “process_linux.go:449: container init caused “rootfs \”/mnt/sda1/var/lib/docker/overlay2/(key)/merged\“at \”/mnt/sda1/var/lib/docker/overlay2/(key)/merged/ect/nginx/conf.d/default.conf\” caused \\ “not a directory\”"":unknown: Are you trying to mount directory onto a file(or vice-versa)? Check if the specified host path exists and is the expected type

This error sounds it could be because I setup my project incorrectly, or because I am running windows and not linux.

Any advice? Thank you so much.

Hey @doubletree Welcome to the AE Forum :slight_smile:

@martingrigorov.chain or @milenradkov.chain should be able to help you here.

Best,
Albena

1 Like

Can you share more information on the version of aeproject taht you use and also the OS version, do you have docker installed, nodejs version?

Best,
Martin

1 Like

Absolutely, Thank you in advance.

Aeproject --version == 2.2.0

docker --version == 1.0.0

docker-compose --version == 1.24.1, build 4667896b

node --version == v12.16.1

my OS: windows 8.1 x64

Additionally:
I didn’t install docker before my first run of the hack.bg tutorial linked above, so I installed it globally. It didn’t come with docker-compose so I installed docker toolbox for windows.

After this it stopped complaining about docker-compose, but I got an out of memory error so I cleared the doc file(it had copies of itself inside).

Out of memory error was fixed and I was left with only the post-topic"mounting a directory to a file" error.
@martingrigorov.chain

Thank you! Seems like a friendly place, glad to be here.

1 Like

It seems like a docker issue, not related with aeproject. Please check the documentation for working on windows.

Best,
Martin

1 Like

I am generally recommending all developers NOT to use windows. Why don’t you try Ubuntu?

1 Like

Currently downloading ubuntu on a different PC, will update when/if everything goes well.

1 Like

The above link tells me to Start Docker. Should I use the docker start command to do so?

Any tips on using the docker start command, or am I misinterpreting this?

Here is an image of what happens when I run aeproject compatibility, and aeproject node
![aeproject compatiblity|690x392]
(upload://j9Sv8xjmjBEi0mly5HrZ1OZ7gTr.png)

sudo aeproject node
===== Starting Node =====
.Creating network “staekaepp_default” with the default driver

.Creating staekaepp_proxy_1 …
Creating staekaepp_node1_1 …
Creating staekaepp_proxy_1
Creating staekaepp_node1_1

.The NODE_TAG variable is not set. Defaulting to a blank string.
No such container: f9f51ef52a623c733801eb518a0c21beb310e844bb60750047440791993cb477

Error: Command failed: export COLUMNS=1000 && docker-compose -f /home/doubletree/aepp-cli-js/staek-aepp/docker-compose.yml ps
The NODE_TAG variable is not set. Defaulting to a blank string.
No such container: f9f51ef52a623c733801eb518a0c21beb310e844bb60750047440791993cb477
Creating staekaepp_node1_1 … done
Creating staekaepp_proxy_1 … done

Would really appreciate some information.

Again I am attempting to follow this tutorial: hack.bg/blog/tutorials/build-your-first-decentralized-application-aepp-on-aeternity-blockchain-sophia-smart-contract-address-book/

My versions are:
aeproject : 2.2.0
Docker: 19.03.8
docker-compose: 1.17.1
node: v10.19.0
os: ubuntu 18.04

I believe my issue is with running docker. The tutorial prompts me to start docker before running aeproject node.
How should I start docker?

I tried listing off containers in the file, and doing docker run on the available container.

Thank you.

Can you check the status via:

$ sudo systemctl status docker
1 Like

Here is the result of that command:

[email protected]:~$ sudo systemctl status docker

● docker.service - Docker Application Container Engine
Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: e
Active: active (running) since Mon 2020-03-30 12:23:26 EDT; 4min 24s ago
Docs: https://docs.docker.com
Main PID: 1524 (dockerd)
Tasks: 12
CGroup: /system.slice/docker.service
└─1524 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/contain

Mar 30 12:23:22 doubletree-All-Series dockerd[1524]: time="2020-03-30T12:23:22.5
Mar 30 12:23:22 doubletree-All-Series dockerd[1524]: time="2020-03-30T12:23:22.5
Mar 30 12:23:22 doubletree-All-Series dockerd[1524]: time="2020-03-30T12:23:22.5
Mar 30 12:23:22 doubletree-All-Series dockerd[1524]: time="2020-03-30T12:23:22.5
Mar 30 12:23:24 doubletree-All-Series dockerd[1524]: time="2020-03-30T12:23:24.0
Mar 30 12:23:24 doubletree-All-Series dockerd[1524]: time="2020-03-30T12:23:24.2
Mar 30 12:23:25 doubletree-All-Series dockerd[1524]: time="2020-03-30T12:23:25.6
Mar 30 12:23:25 doubletree-All-Series dockerd[1524]: time="2020-03-30T12:23:25.6
Mar 30 12:23:26 doubletree-All-Series dockerd[1524]: time="2020-03-30T12:23:26.0
Mar 30 12:23:26 doubletree-All-Series systemd[1]: Started Docker Application Con
lines 1-19/19 (END)…skipping…
● docker.service - Docker Application Container Engine
Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2020-03-30 12:23:26 EDT; 4min 24s ago
Docs: https://docs.docker.com
Main PID: 1524 (dockerd)
Tasks: 12
CGroup: /system.slice/docker.service
└─1524 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock

Mar 30 12:23:22 doubletree-All-Series dockerd[1524]: time=“2020-03-30T12:23:22.584786657-04:00” level=warning msg=“Your kernel does not support cgroup rt runtime”
Mar 30 12:23:22 doubletree-All-Series dockerd[1524]: time=“2020-03-30T12:23:22.584806141-04:00” level=warning msg=“Your kernel does not support cgroup blkio weight”
Mar 30 12:23:22 doubletree-All-Series dockerd[1524]: time=“2020-03-30T12:23:22.584825160-04:00” level=warning msg=“Your kernel does not support cgroup blkio weight_device”
Mar 30 12:23:22 doubletree-All-Series dockerd[1524]: time=“2020-03-30T12:23:22.585206099-04:00” level=info msg=“Loading containers: start.”
Mar 30 12:23:24 doubletree-All-Series dockerd[1524]: time=“2020-03-30T12:23:24.008835945-04:00” level=info msg="Default bridge (docker0) is assigned with an IP address 172.17.0.0/16. Daemon option --bip c
Mar 30 12:23:24 doubletree-All-Series dockerd[1524]: time=“2020-03-30T12:23:24.278116000-04:00” level=info msg=“Loading containers: done.”
Mar 30 12:23:25 doubletree-All-Series dockerd[1524]: time=“2020-03-30T12:23:25.632971388-04:00” level=info msg=“Docker daemon” commit=afacb8b7f0 graphdriver(s)=overlay2 version=19.03.8
Mar 30 12:23:25 doubletree-All-Series dockerd[1524]: time=“2020-03-30T12:23:25.642176313-04:00” level=info msg=“Daemon has completed initialization”
Mar 30 12:23:26 doubletree-All-Series dockerd[1524]: time=“2020-03-30T12:23:26.013334112-04:00” level=info msg=“API listen on /var/run/docker.sock”
Mar 30 12:23:26 doubletree-All-Series systemd[1]: Started Docker Application Container Engine.

Hey, just wanted to say I’ve resolved the issues:

Had multiple issues on the way to get it running, a few things the tutorial linked does not mention:

needed to pull the aeternity/aeternity repository from docker,
needed to clear out additional files created from multiple aeproject inits,

needed to list images pulled from repository, then run them.

needed to correct version of docker-compose.

needed to give everything global permissions.

I used the following resources in doing so:

https://aeproject.gitbook.io/aeproject/developer-documentation/getting-started#requirements

https://aeproject.gitbook.io/aeproject/

https://aeternity.com/documentation-hub/

If anyone runs into an issue like this, or docker/aeproject issues, Feel free to send me a message.

2 Likes

hey @doubletree, thanks for sharing your solution this could be useful for other people