-
Notifications
You must be signed in to change notification settings - Fork 374
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
Installation guide? #112
Comments
Well, I managed to get the site up and somehow running, but get continouus CORS errors and upgrading to other plans impossible (kind of a skeleton installation w/o any proper functions, even sendmail doesn't work properly and there are some errors in the code.). If needed, I can share what I have so far (on Ubuntu) |
For php setup : https://screencast-o-matic.com/watch/cqjVlHOGQo For node setup : |
Yes please share |
I feel there are still alot of steps missing from the above documentation videos, seems incomplete and we have spent the day trying to get a stable copy working. I am assuming there is a setup of the database? but couldnt see any reference to this in your documentation and there isnt a setup process when launching your platform Do you have a docker or a setup stable instance on a server somewhere? |
@ChristianGaetcke Can you post your Ubuntu notes? Older related thread: #104 |
@TornMarketing I've done this type of thing before. I couldn't see anything that created the database, so I manually created one myself, making sure the name matched the db_name in the config.json (there were a couple of places). Then the migrate worked well. |
Hey mate Is there a standard Database structure that needs to be setup, got the SQL statement handy? |
I literally just create the database, using utf8 unicode ci. But there are numerous bugs and issues I've found. I've tried both API and Web instructions, and neither seem to be fit for use. This is also on Laragon (think WAMP/XAMPP), and I've never ran into an issue running apps like this (unless the code is broken somewhere). |
@Quin452 Really struggling to get how we run all the services (user/api/feeds/board) automatically using nodemon. Secondly trying to get an understanding how social api relates to social web, might become more obvious once we get an operating system and there maybe some configurations to link the 2 after login via social web |
@TornMarketing I installed it locally on a Windows machine. I used Laragon, which (for all intents and purposes) acts like an Ubuntu server You can try a virtual machine, too, but as long as there is LAMP it should work. But alas, I have found the lack of clear instruction to make this whole thing not worth it. |
please provide a proper installation instruction (no video) or a put the installation into a bash script compatible with ubuntu or debian for easier installation. Also a docker(-compose) setup would be very handy. The biggest issue of this open source project is the lack of installation instructions since its pretty poor documented. |
@cseeger-epages They did upload a doc including more instructions for Windows users. https://github.com/socioboard/Socioboard-4.0/blob/master/Socioboard%20Developer's%20Document.docx It would still need some work to get it working with a bash script. We should convert the doc file to markdown as it is not efficient with version control systems. |
@TechnologyClassroom thanks i will try to get it working for linux when i have some time. |
It's possible socioboard want you to buy into their SAAS option (socioboard.com) rather than offer a solution here. Ideally they would put up a server script, but for now I'm very hesitant to use this, even the SAAS version, and it's the only FOSS social media software I've come across but seems unstable :( Such a shame. |
I'm stuck When I run the following command I'm at the end of database setup. the log file from C:\Users\david\Socioboard-4.0-master\socioboard-api\user\public\logs Any idea's where I went wrong. |
Now I am stuck here C:\Users\david\Socioboard-4.0-master\socioboard-api\library\sequelize-cli\seeders>sequelize db:seed --seed 20190213051930-initialize_application_info.js Sequelize CLI [Node: 12.17.0, CLI: 5.5.1, ORM: 5.21.12] Loaded configuration file "config\config.json". ERROR: Unknown database 'database_development' C:\Users\david\Socioboard-4.0-master\socioboard-api\library\sequelize-cli\seeders> |
@manashgarg found a guide at https://www.linuxbabe.com/ubuntu/install-socioboard-on-ubuntu-20-04 Now this guide needs to be turned into a bash and docker script. |
Hi , I try to follow some of these stesp until I reach the 4th steps in many atricles they say /var/www/Socioboard-5.0/socioboard-api there is no library and word document explain that library hold Common files and services in version 5 I got to /var/www/Socioboard-5.0/socioboard-api/Common So I got to this to complete above steps. However, there is no "config" directory. All documentation shows that we have to configure the mysql database under this directory There is no config.json. can we create the config.json manually and follow the same steps. by the way all founded fiels under here is the tree ├── README.md All explanation not compactable with version 5 !!! |
@EngBadr ey bro!! do y can install socioboard 5.0? I have tried but I can't get past the migrations |
I have tried following the instructions in linuxbabe website (which are usually amazing), however as recent comments library is missing and i assumed Common and many other things just dont add up. would love to be pointed to a updated tutorial |
Same here. Also cannot find errors file. |
I've just spent a couple of hours desperately trying to install Socioboard 5, but as the others here it didn't work. Does anybody have a guide that works? Tried the one on LinuxBabe and Atlantic.net, but no luck. EDIT: I'm trying to use either CentOS or Ubuntu |
@kingprawn22 Those guides are for version 4. The new version install scripts are here with doc here, but they probably need work. If you try them, report back on your progress and submit fixes back to mainline. Many have tried, but few have helped others. |
@TechnologyClassroom these documents leave a lot to the imagination. Which one do I use? Do I need all requirements installed before running the commands in 'Linux-Installation.md' or the script 'Installation.sh'? Do I also need both the mongodb and mariadb databases setup before? Once I've ran these commands, then what? Do I still need to create and enable the systemd files and configure my webserver? I'd be more than happy to go through the process to try and compile some half-decent documentation, but I do need the above pointers beforehand. |
@kingprawn22 They still need work like I said. I have not tried since Socioboard 4 when all of the documentation was Windows-centric. The script IMO should get a functional local instance configured including database configuration with sane defaults, but as you pointed out this is not the case. If any API keys or passwords are needed they should be asked for or called as variables and handled by the script. |
@TechnologyClassroom I'll give it a bash, combining the tutorials for v4 for general setup then the script for v5 and can see where I'm at. Would it be better to create a new issue for this? |
This issue is as good as any to discuss the topic. |
I would love to hear back about this. I managed to get the API's / Microservices running a couple days ago.. But after updating all my NPM Packages, It seemed to have broken Update, Feeds, Nofications & Publish. The Micro-Services don't start up anymore except for User |
OK here's what I have so far. I've started right from the beginning of spinning up a VPS with Ubuntu 20.04. The guide is a mashup of the 3rd party installation guides and the docs from the repo and has been edited for v5.0. It's not complete, since the services are having some kind of issue as you'll see at the bottom, so it's probably best to tacking each issue as we come to it. I also saw an error when running the Installation.sh script. I ran it as sudo and there's text in the error that sugguests I should run it as my normal user, but that didn't work either. Please let me know what I've done wrong and what I can do to look into these issues. LAMP stackInstall Apache
Install MariaDB
Install PHP
Install SocioboardInstall git
Clone repo
Install acl
Move folder and set permissions
Install Node.js
Check if both node and npm are installed now with 'npm -v' and 'node -v' Install Node packages
Set Node environment
Use install script
ERRORS (at the end of the output)
Create MariaDB database
Enter the following when on the mysql command-line
Setup database
Under 'development', enter the database name, username and password
Change directory and inititialise the socioboard database
Install and Configure MongoDB
Create database and user in MongoDB
Enter the following when on the mongo command-line
Setup MongoDB connection
Under the 'mongo' header, enter the details of the database
Then add the following lines to the bottom of the file, above the last curley bracket (you need to add a comma to the curley bracket above)
So that it looks like this
Save and close the file, then edit the following 3 files and enter the MongoDB database name, username and password under the 'mongo' header, as above Setup systemd servicessocioboard-user.service
Populate the file with the following, replacing 'username' with your username
socioboard-publish.service
socioboard-feeds.service
socioboard-notification.service
Enable all services
Start all services
Find status of servicessocioboard-user
socioboard-publish
socioboard-feeds
socioboard-notification
|
As mentioned before a compose setup would probably be very handy. This would not only solve this issue here but also #239, #102 and #119. It seems that @FlorentPoinsaut was successfull. So maybe it just needs someone™ to take the But maybe I missed something and it is more complicated. 🤷 |
@kingprawn22 I believe you need to replace the Looks like we are closer yet to having a working install and and installation bash script. |
@jon4short On my side I also had issue with the Update micro service not listening on port 3003. Seeing your error message (I didn't have any message in logs on my part) I added a test_url section on Update development.json, like this: "swagger_host_url": "localhost:3003",
"user_socioboard": {
"host_url": "http://localhost:3000"
},
"test_url": "",
"jest": {
"access_token": "<< JEST ACCESS TOKEN >>"
},
"facebook_api": {
"app_id": "<< APP ID >>", After that Update micro service was able to serve on port 3003, and guess what.... I finally been able to login on Socioboard 5 ! I will try to bring a complete install doc on linux. |
Hello @kingprawn22
Did you do You will also have to run |
That should fix one of my problems 😃 The second issue now is setting up socioboard-web-php. When running "composer install && php artisan key:generate". I get an error about some permissions. Have run it in Super User. Could you help me with a setup guide for the php side of things? |
I submitted a pull request with a new installer script. Hopefully it would be a bit of help in your endeavor. |
Thank you so much @LaurentCligny. That worked brilliantly... All Microservices are running now via PM2. |
Sounds like success! Can someone compile all of these changes into a pull request? |
Hello! Is there a way to start with init? Why doesn't it allow me to use sudo systemctl |
@agrecasens Which init system or OS are you using? You would have to convert the |
@TechnologyClassroom Thanks for watching. I am using SysV, how do you modify those files? or how to pass to systemd? |
@agrecasens I would say this discussion is probably out-of-scope for this discussion. Everyone I have every met that still uses SysV does so because they don't want to change the way they are writing configs. Most of the general documentation to learn about this is for converting SysV to systemd so I would start by heading up on those discussions. This converter might work too. If you get it to work with SysV, post that too. If SysV and systemd are figured out, maybe the install script could determine the init system and act accordingly. |
I'm just catching up with what has been said. So I've retried the install but as reported by @jon4short above, I am seeing errors when running 'npm install' in the Common directory. Running 'npm audit fix --force' seems to fix some of them but leaves 6 (3 moderare, 2 high, 1 critical). Does this need resolved before I progress with the rest of the install? If so, how? |
@kingprawn22 The Microservices still run even with those errors. I'm now stuck with the PHP Setup. Since I wasted a week at work trying to get things working. I'm taking some time off from it. Hope to have something up and running by next week, to justify the hours spent on it. Will definitely post an updated guide. |
Thanks for your efforts either way @jon4short. I am also quite busy right now and don't have the time to troubleshoot this. I'll leave it for now and can come back after some time to see if there's a working install script. How anybody has installed this is beyond me... |
Alright so I got all the microservices running, but how did you get to this page? Do I need to setup and install the php portion? Thanks, this issue thread has helped a lot in my progress on getting things up and running! |
@LaurentCligny How did you get the PHP side running? |
3 years on (for me personally) and I'm looking at trying this again. |
Is there a set up guide somewhere or....
The text was updated successfully, but these errors were encountered: