Open sanderjo opened 8 years ago
I had this problem, too. It's reported on the Spotweb repo and has been closed with a fix but even though tagged as "deployed," the patch doesn't seem to have actually been merged into media or master yet. In the meantime, I got around this by:
docker cp <containerid>:var/www/spotweb/lib/dstruct/SpotStruct_mysql.php SpotStruct_mysql.php
and manually applying the fix from the above commit, then just docker cp
ing the file back in. Bit of pain, but works perfectly well.
@sammcf I'm having trouble getting that command to work.
I first run sudo docker-compose up --no-recreate
until getting the same error as the OP
I then do docker ps
to get the container ID of the DB ("isuftin/spotweb_db:latest")
I then add that container ID to your cp command
sudo docker cp ##########:var/www/spotweb/lib/dstruct/SpotStruct_mysql.php SpotStruct_mysql.php
But when I run it, I get:
Error response from daemon: lstat /var/lib/docker/aufs/mnt/a71b846e3a79b9ef6261355bc28f5f969104aef431a68fabd9a2097575eafc45/var/www/spotweb/lib/dstruct/SpotStruct_mysql.php: no such file or directory
Am I missing something?
Figured it out - there is a typo in the above docker cp command, missing the b in dbstruct. should be:
docker cp <containerid>:var/www/spotweb/lib/dbstruct/SpotStruct_mysql.php SpotStruct_mysql.php
On a fresh Ubuntu Server 16.04, I did this:
which eventually results in this error:
Accessing the webserver on http://192.168.1.191/spotweb/, it says:
Should I indeed run 'upgrade-db.php', or should I do something else?