8
submitted 1 year ago* (last edited 1 year ago) by AnonymousLlama@kbin.social to c/programming@kbin.social

Hey guys. I've been trying to get kbin.social running on my local machine outlined here but I'm running into issues

issue with kbin install

I've installed Docker Desktop for windows and I can see the containers being created but I'm getting errors on the front-end build stage, I've put it in a ticket here but not sure what else to do.

https://codeberg.org/Kbin/kbin-core/issues/368

I've already got node, npm and yarn installed, I've done the following and I'm not making much progress

npm install yarn build

When I view the site locally its throwing errors.

I'm pretty new to docker and even yarn so I'm not sure what I should do next, any big brain thoughts from you guys by chance?

top 11 comments
sorted by: hot top controversial new old
[-] Stardust@kbin.social 3 points 1 year ago

Seems to be a lot of 'looking for file router.min.js'. Could be a version conflict and it got moved?
So. Do you have the file on your system? Do you have a vendor folder with friendsofsymphony and inside that js routing bundle?

I have not tried to use docker for windows myself, but looking to see if a referenced folder exists under this type of error is pretty common. You may be able to find a js routing bundle version somewhere that has the referenced file or perhaps non-minified files that could be bundled together.

I was also under the impression this docker was for Debian, which is a Linux distribution. Are you running your windows docker in a simulated linux debian environment (or does it do that)? If you don't wish to install Debian or a virtual box for it, you might want to try getting a free Cloud Oracle VPS and setting up a Debian instance there - just beware of their extremely annoying double firewall which has often tripped me up.

Also, it is just called kbin, not kbin.social - the latter is the name of the website running kbin. -wink-

[-] AnonymousLlama@kbin.social 1 points 1 year ago

Cheers I'll give it a look too see if I can find those missing files, I was under the impression docker files could be ran anywhere, if it was made just to run on debian I might be out of luck. I've got the Linux subsystem for Windows installed (it's part of docker for Windows)

Hopefully I'll be able to track this down so I can get it running, pretty keen on helping out on some UI issues to improve the mobile experience.

[-] Stardust@kbin.social 2 points 1 year ago

Unfortunately I am not very familiar with docker, so I cannot help you there, sorry, although it does sound like if the docker has a linux subsystem that it should work?
I might give it a go with running it myself at some point.

[-] sik0fewl@kbin.social 2 points 1 year ago

Yarn is an alternative to npm, you shouldn't use them together in the same project.

You should:

rm -rf node_modules
yarn install
yarn build

This will ensure you're building with the right version of dependencies.

[-] AnonymousLlama@kbin.social 1 points 1 year ago

Ah thanks mate I'll give that a go. When I tried to install yarn the first time it came up with a different error about not finding something. I'll try that way

[-] AnonymousLlama@kbin.social 1 points 1 year ago* (last edited 1 year ago)

I ended up giving this a go (starting again and instead of doing an npm install, I tried just a yarn install) and I ended up getting this error yarn error with yarn install

When I look into /vendor there's very little in here, that file doesnt exist it seem
missing directory in vendor

Really strange, unsure what exactly I'm missing here now

[-] AnonymousLlama@kbin.social 1 points 1 year ago

Probably a long shot since you're busy but any thoughts on what might be going wrong @ernest ?

[-] ernest@kbin.social 5 points 1 year ago

@AnonymousLlama To be honest, the guys on Matrix are much more knowledgeable than me at the moment ;p Lately, they have been tackling dozens of issues. You'll definitely find help there, and I'll also be there a bit later today.

#kbin:matrix.org

[-] AnonymousLlama@kbin.social 1 points 1 year ago

Thanks, I've joined the channel, hopefully one of them will be able to tell me why I can't get past the 'yarn install' part, I keep getting errors about missing resources (it says its missing vendor dependencies, there's not much in the vendor folder right now)

[-] Deceptichum@kbin.social 2 points 1 year ago

Please let me know if you do, I’ve been banging my head against a wall for a week trying to get this shit setup.

[-] AnonymousLlama@kbin.social 1 points 1 year ago

Apparently there's another ticket pending approval for a new docker build. I'm going to give that a go and see if it works any better. Tbh these setups should be simple if they're based around docker, especially if they want people to actively contribute and help

load more comments
view more: next ›
this post was submitted on 19 Jun 2023
8 points (100.0% liked)

Programming

30 readers
1 users here now

This magazine is dedicated to discussions on programming languages, software development, and coding. Whether you are a beginner programmer or an experienced developer, this is the place for you. Here you can share your knowledge, ask questions, and engage in discussions on topics such as coding languages, software engineering, web development, and more. From the latest trends and frameworks to tips and tricks for debugging, this category covers a wide range of topics related to programming.

founded 1 year ago