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
database.php missing in latest docker images #1297
Comments
I use xampp so I use the export feature in phpMyAdmin. |
Does anyone use the backup button that's in general config? Are there issues with it? |
Whaaaat?! That's in the app?! Where within is it? |
It's in the Configuration module under the General configuration tab .... last button at the bottom of the page. I haven't yet tried to recreate a database from one, but it looks like the normal MySQL backup format. I'd be interested to know if anyone has used it to recover or migrate their database. |
I volunteer as tribute :) we are still trying to update to fix the tax / profit issue I mentioned a few weeks back. Will report back! |
Gave us a full backup with the button(hurray!). We just need to figure out how to execute this back on top of the update. Is their a preferred method to restore a database back onto digital ocean? |
It hasn't yet been set in stone, but I believe that the intent is to include the migration in the 3.1.0 release when deemed final. The pull request does not introduce any database changes except the |
@SteveIreland I am helping @thegm90 with the this (I'm his brother). Thank you for your help so far! Currently running the latest from master (c4a76ad) in a docker environment. Backed up the database, completely nuked the server, and started fresh from that commit above. Built it and up'd it, the website reveals a database error seen in the below picture. Issues #294 and #303 had similar issues but there wasn't much info that helped (use the latest master and read the readme). Is there something that we're suddenly doing wrong? Is there a specific commit that we should be cloning from instead of master? Thank you for all your help (everyone!), we appreciate it a bunch! |
I downloaded and installed that commit level of OSPOS into WAMP and it kicked it off without any problems. I'm not yet familiar with the installation tools so if there is an issue where it's not setting up the correct configuration (which is what it sounds like) I can't help. It sounds like a base reference issue of some type. The two issues that you referenced were for a specific issue in a specific release back in January 2016 which was resolved way back then, So I doubt if it's the same issue - but it will probably be similar. If you can identify what was changed back when it was fixed it might provide a clue as to what needs to be corrected. |
If it helps, here is the |
There might be an issue with the database.php file inside the php container not having the correct file permissions set. Can you go into the php container as follows
then check file permissions on database.php
does it have the same owner as other filies? |
Otherwise you can mount a local database.php into the container to replace it, however I'm not sure what effect that willl give on the readability by the containerized apache process |
@jekkos Thanks a ton for the reply! Poked around in the php container and the database.php file didn't even exist!? Super weird. Checked the ~/github/opensourcepos/application/config folder and database.php existed there. I nuked all the images and containers, recloned the repo, rebuilt the containers, checked the php container again and same thing. Since all other config files exist in the directory, I'm assuming this line runs just fine... Are you able to recreate this issue? Below is a screenshot of the config dir immediately after the php container is spun up. No trickery, pinky promise. |
@jekkos You mentioned mounting the file, do you mean creating a volume directly to the application/config/database.php file from the existing database.php file? Welp, got it to come up - question is why the database.php file gets destroyed in the first place. Are there logs somewhere in the container/host that would reveal something here? For those joining us in the future-- |
Hi yes I was just looking into this. Actually previously the database.php was copied during the initial docker image construction using docker cp. This line was removed as the database.php is supposed to be used as it is in the codebase without further modification. This thanks to the dotenv integration I did recently. However I don't understand why it's not copied from the source during initial image construction. In fact after every commit travis rebuilds the container and pushes it to docker hub. Need to check where this went wrong exac |
Ah, I see that commit now (2814118). Thanks for looking into it! Is there any info that I can provide to help out? |
Wanted to check in with you guys and see if there are any developments with the database.php? |
I checked my latest conrtainer and it does have database.php in it. Did you try remove and redownload the container from docker hub? Do a docker rmi -f jekkos/opensourcepos and then compose up again to see if that resolves the issue? |
Apologies on the delay. After wiping clean the web server ( |
Ok the dev container does seem to have the file. It might be the regular one that has it missing. I'll check later this week. |
Hey Jekkos, any news on your findings? |
I had another short look and indeed, the file is not in the container, didn't directly understand why. Will need to find some more time to investigate further. |
Should be fixed now @thegm90. Can you verify? Thanks! |
HI @jekkos , I was facing the same issue ( database.php missing in latest docker images) last week, after your update all is OK now Thanks ! |
What does everyone else like to use for database back ups? We are using digital ocean on a linux image.
The text was updated successfully, but these errors were encountered: