libertysoft3 / saidit

The reddit open source fork powering SaidIt
https://saidit.net
Other
226 stars 40 forks source link

Error building rabbitmq #116

Closed trident765 closed 2 years ago

trident765 commented 2 years ago

When I run "docker-compose up -d", it runs for runs for a few minutes, but eventually terminates with the following message:

Building rabbitmq
Step 1/2 : FROM rabbitmq:3.5.7
 ---> cdf5ed078d74
Step 2/2 : RUN rabbitmq-plugins enable --offline rabbitmq_management
ERROR: Service 'rabbitmq' failed to build : failed to copy files: userspace copy failed: %!w(<nil>)

Any idea what might be causing this? My host OS is Debian Sid.

libertysoft3 commented 2 years ago

That's a weird one, because the rabbitmq container is the least customized out of all of them. I'd check your disk space and your linux user group. I have been adding my user to the docker group.

You could also try just building rabbitmq on it's own, to see if you get a better error message. Something like $ docker build .

trident765 commented 2 years ago

When I run "docker build ." in the rabbitmq folder I get the same message as above. For reference, I tried running the same command in the "haproxy" folder and it build successfully:

Sending build context to Docker daemon  4.096kB
Step 1/2 : FROM haproxy:1.4
 ---> d88544b1db52
Step 2/2 : COPY haproxy.cfg /usr/local/etc/haproxy/haproxy.cfg
 ---> Using cache
 ---> f93460eb6e4c
Successfully built f93460eb6e4c

Not sure why rabbitmq doesn't build on my machine. I have 200GB of free space on my hard disk.

I find the "%!w()" in the error message a bit strange. Nothing comes up when I Google it. I will look into this some more.

Edit: I changed the version in the DockerFile to 3.9.13 and that appears to have worked. When it is done building and I test it I will comment again.

Edit2: Now I am getting the message:

ERROR: for zookeeper  Cannot create container for service zookeeper: failed to copy files: userspace copy failed: %!w(<nil>)
ERROR: Encountered errors while bringing up the project.
libertysoft3 commented 2 years ago

I think you've got some kind of environment issue. Maybe I left a dependency out of the installation steps.

Can you run this? $ docker run hello-world

Maybe you have fancy security features enabled for your user or disk? I see no results for this online, other than you trying to fix this, maximum fml.

libertysoft3 commented 2 years ago

Appears to not be a saidit code issue, closing