marius311 / cosmohome

The Cosmology@Home server.
https://www.cosmologyathome.org
17 stars 10 forks source link

Question #15

Closed MTRNord closed 8 years ago

MTRNord commented 8 years ago

Hi I am working on an fork (to use the docker boinc the right way ;) ) and I wonder how to create the forum.

Because if I run php create_forums.php it gives:

Database Error<br>
Database Error<br>
Database Error<br>
Database Error<br>
Database Error<br>
Database Error<br>
Database Error<br>
Database Error<br>

Or do I miss something?

MTRNord commented 8 years ago

Ok somehow it seems to have worked but frontpage (News thingy) does not.

marius311 commented 8 years ago

Hm odd, I just tested 1) starting up a fresh project 2) deleting the "die" line in create_forums.php and 3) running php create_forums.php and it seems to work, including the frontpage News thing. It must have to do with the database error you were seeing initially. Is the mysql container working OK? You can try running mysql -h mysql boincserver from the apache container to see if it connects correctly.

marius311 commented 8 years ago

Also, was the News forum in particular created? That's the one it reads for the front page.

marius311 commented 8 years ago

Ahhhh sorry just realized, are you're running cosmohome or the generic boinc-server-docker? I think indeed cosmohome's create_forums.php doesn't correctly create the News forum, since I just did that by hand for the real site way back when.

MTRNord commented 8 years ago

I am running an fork of cosmohome with its forum script :)

MTRNord commented 8 years ago

So that means I just have to copy some lines of the original forums script that is made by boinc? (Or just run the original one to generate the News)

marius311 commented 8 years ago

Yep, OK, that's the problem then. Basically you can see no News forum gets created starting https://github.com/marius311/cosmohome/blob/master/html/ops/create_forums.php#L59. I'll fix that to be more consistent with the actual site.

marius311 commented 8 years ago

Ok, should be fixed by 150ca5d76a36efdced2a736672b0f1c13064ff1f.

I also noticed that you'll get the Database error message above if you try to run create_forums.php more than once, that might be what had happened.

MTRNord commented 8 years ago

thanks :+1:

MTRNord commented 8 years ago

Another Question: Downloads require ssl am I right? or is there another thing that could cause:

3384 ProjectStreet@Car 01.10.2016 18:07:21 Giving up on download of vboxwrapper_26197_windows_x86_64.exe: permanent HTTP error

and

Marcel-PC

3385 ProjectStreet@Car 01.10.2016 18:07:21 Giving up on download of vm_isocontext_v1.0.0.iso: permanent HTTP error

?

(I did not yet install an ssl cert. So that could cause issues but I am not shure if that affects the download because in browser it works)

marius311 commented 8 years ago

They do not, that must be something else. You've forwarded the IP address in /etc/hosts correctly?

MTRNord commented 8 years ago

So my actual setup could than do be a problem. I run the docker on my windows maschine in vbox xD so that could be the problem. I will test that. But error is only when downloading these two files. I will re read the docs :)