fititnt / uwazi-docker

Dockerized version of Uwazi (“openness" in Swahili). HURIDOCS designed Uwazi to make human rights information more open and accessible to the defenders who need it.
The Unlicense
11 stars 4 forks source link

Installation error? #52

Open hakkiunlu opened 9 months ago

hakkiunlu commented 9 months ago

Hello. I installed Uwazi on the Ubuntu 20.04 platform. I loaded sample data in the installation preference. However, when I logged in as an administrator, I could not make any changes in the settings. An error occurred while recording. I reinstalled the installation. In this installation, I did it without installing the sample data. I could not log in with my user information on the user login screen. In both installations, when I exit the ssh connection, the services on the server stop. I cannot access Uwazi. What mistake do you think I'm making? Thank you in advance for your help. Kind regards.

hakkiunlu commented 9 months ago

Server ip: http://173.212.236.11:3000/ user: admin pass: admin You can understand my problem better here.

  1. http://173.212.236.11:3000/en/settings/collection I cannot change the information.
  2. Live translation does not work. It gives an error when I add a new language.
  3. I cannot add a new dictionary. I have some problems like.
fititnt commented 9 months ago

Hello. Welcome!

Let me reinstall from scratch using the documented instructions from the README.

But just from your second comment, I think the problem might be on the upstream, however if is something related to dependencies that can be solved with docker, then we can work on it.

But if is some temporary change on the upstream, then might be a good idea to lock on a releases version know to work, so you can test fully, and later decide when to upgrade.

fititnt commented 9 months ago

Ok, your complain is valid. And I think you make a test that months ago was not done (otherwise I would stop to fix it sooner)

I made made a better coment here https://github.com/fititnt/uwazi-docker/issues/48#issuecomment-1856510700

Unless I make this work in a few hours (for example, attempting today or in next days simply make replica set work), I think this might not be trivial to do. I don't like the idea of leave something in an unreliable state, so better to know soon how complex this might be.

fititnt commented 9 months ago

Humm. Ok. I attempted to do some quick tests (but still not downgraded to Mongo 4.2, which is the one actually used by Uwazi), however, didn't work. I will try again tomorrow.

hakkiunlu commented 9 months ago

Hello again. When I connect with putty and run services, the system uwazi stands up. You can see it in the screenshot. When I enter the relevant folder with ssh and type the run command, the services start running. Afterwards, when we enter with the admin user, we cannot make changes in the settings section. Could the problem be the docker installation?

ssh

hakkiunlu commented 9 months ago

Dear fititnt

How do I send the server information.

fititnt commented 9 months ago

Ok, I'm not using Uwazi in production right now, so I'm doing this fully open source. Also, I'm not really for money on this project, so let's help each other.

Yes, I notices you already is using a VPS (not localhost) so give a look at the comment from @vasyugan here https://github.com/fititnt/uwazi-docker/issues/49 . I think he already using in production, but already not dockerized. Docker is good, and also is possible to use on production (if well configured, but then the host of the docker tend to matters; often Kubernetes is used for this).

I know this become out of the scope of this project named "uwazi-docker", but I think we can give some hints on how you could install this directly on the VPS. However, if you are only testing Uwazi, this might be more painful, because You would use less.

Question

  1. Did you think you can install the dependencies of Uwazi listed here https://github.com/huridocs/uwazi/?tab=readme-ov-file#dependencies on your current VPS ? I think the likely more problematic one would be Mongo 4.2, while the others might be stili viable change the Linux distribution used
  2. (alternative to 2) The https://github.com/huridocs/uwazi/blob/development/docker-compose.yml in theory works, but the docker only contains the dependencies, not the software and the data, however from the references I put on #48, this issue https://github.com/huridocs/uwazi/issues/5633 they have make the initialization of the MongoDB a manual step.

I think I even guess which provider is this IP (contabo) and I have VPS there. So likely even the minimum Contabo VPS is good engouth to host a Uwazi (not will full MongoDB redundancy, but do your backups and Ok). Migth be a good idea you take notes of all your steps, because sometiems is better to reset the entire VPS and restart again, until you have something good

Maybe with this comment alone, the tests you could do after you ready my message could help you get it in a usable state faster.

fititnt commented 9 months ago

Trivia: turns out I also know Ansible (and done several open source projects before, like https://github.com/search?q=owner%3Afititnt+ansible&type=repositories ) but for other types of software.

So yes, in theory, I could refactor this to be also an Ansible version, but I'm lacking some time at this end of year and I'm unsure how many people would use it. But for sure is possible to install this directly on VPS.

fititnt commented 9 months ago

I just closed #53 by @magereanu as duplicated on #53 (his report also mention how to detect the same problem). I also pinned this first report on the problem on the main repository, so others can also comment here if is related to the replica set error (if not, simply open a new issue, I would check and help with it).

@magereanu feel free to commend here. But ok, now I know there's at least 2 users.