| [13:08:55] | * anto_ has quit (Quit: leaving) |
| [13:10:48] | * anto_ has joined #aegir |
| [13:18:45] | * gusaus has quit (Quit: gusaus) |
| [14:20:59] | * beautifulmind has joined #aegir |
| [16:20:16] | * beautifulmind has quit (Ping timeout: 260 seconds) |
| [17:23:15] | * ybabel has joined #aegir |
| [17:25:59] | * beautifulmind has joined #aegir |
| [17:29:14] | * beautifulmind has quit (Client Quit) |
| [17:30:07] | * reaper013 has joined #aegir |
| [17:34:27] | * beautifulmind has joined #aegir |
| [17:41:34] | * mstenta has quit (Excess Flood) |
| [17:41:59] | * mstenta has joined #aegir |
| [17:47:36] | * beautifulmind has quit (Quit: Leaving.) |
| [21:57:29] | <jonpugh> | colan: one of those looks like an older copy of the other. You can probably just save the longer one. |
| [22:37:57] | * mstenta has quit (Ping timeout: 240 seconds) |
| [23:10:41] | * v20th has joined #aegir |
| [23:28:32] | * v20th has quit (Quit: Leaving) |
| [23:29:11] | * v20th has joined #aegir |
| [23:52:04] | * v20th has quit (Ping timeout: 260 seconds) |
| [00:08:27] | * v20th has joined #aegir |
| [00:28:22] | * ybabel has quit (Read error: Connection reset by peer) |
| [00:28:34] | * ybabel has joined #aegir |
| [00:31:25] | * ybabel1 has joined #aegir |
| [00:32:23] | * ybabel has quit (Read error: Connection reset by peer) |
| [00:34:06] | * ybabel has joined #aegir |
| [00:35:35] | * ybabel1 has quit (Ping timeout: 240 seconds) |
| [00:59:17] | * helmo42[m] has quit (K-Lined) |
| [00:59:19] | * ergonlogic[m] has quit (K-Lined) |
| [01:07:08] | * theMusician has joined #aegir |
| [01:11:47] | * ergonlogic[m] has joined #aegir |
| [01:11:54] | * theMusician has quit (Ping timeout: 258 seconds) |
| [01:11:54] | * theMusician_ has joined #aegir |
| [01:20:06] | * helmo42[m] has joined #aegir |
| [02:17:43] | * reaper013 has quit (Quit: Page closed) |
| [02:42:25] | * mengi has joined #aegir |
| [05:05:18] | * gusaus has joined #aegir |
| [06:41:43] | <roycroft> | hi folks |
| [06:41:57] | <roycroft> | i'm trying to import a drupal website into aegir |
| [06:42:35] | <roycroft> | it's not working out, and i think it's because the site-specific info was in the sites/default directory |
| [06:43:44] | <roycroft> | i'm trying to get it moved out of there into sites/domain.com, but this site is running drupal 7.50, and the instructions i've found for modifying the database with the new path are for drupal 6, and the table to which they refer (files) does not exist in drupal 7.50 |
| [06:44:00] | <roycroft> | does anyone know where to change the filepath in 7.50? |
| [06:47:13] | <viashimo> | roycroft: depends. the public/private/tmp uri's are set in the variables table or can be overridden in (local.)settings.php |
| [06:47:41] | <viashimo> | typically items in the file table only refer to paths with URIs |
| [06:48:04] | <roycroft> | there is no file table in this drupal install |
| [06:48:07] | <roycroft> | that's my issue |
| [06:48:09] | <viashimo> | however content written by users often uses long paths, eg. mysite.com/sites/default/files/picture.zip |
| [06:48:32] | <roycroft> | i'm looking for the filepath variable so i can change it from sites/default to sites/domain.com |
| [06:49:04] | <viashimo> | roycroft: it's file_managed in d7 |
| [06:49:16] | <roycroft> | hmm, i did not see that there |
| [06:49:30] | <roycroft> | perhaps i missed it |
| [06:49:32] | <roycroft> | i'll check again |
| [06:50:23] | <viashimo> | roycroft: the variables are file_[public|private|temporary]_path |
| [06:51:06] | <ergonlogic> | roycroft: Aegir should handle that for you during a site deployment. You might try running a backup/restore on the site. |
| [06:51:52] | <roycroft> | aegir doesn't find the site |
| [06:52:07] | <roycroft> | i made a tarball of the existing site and the database on the production server |
| [06:52:20] | <roycroft> | i untarred the existing site into /var/aegir/platforms |
| [06:52:31] | <roycroft> | i created the database and populated it from the production site |
| [06:52:36] | <roycroft> | i added and verified the platform |
| [06:52:52] | <roycroft> | supposedly, if the existing site is in sites/domain.com aegir would find it |
| [06:53:05] | <roycroft> | but if it's in sites/default (which it is) aegir ignores it |
| [06:53:30] | <roycroft> | am i misunderstanding how that is supposed to work? |
| [06:53:39] | <roycroft> | aegir does ignore it |
| [06:53:59] | <ergonlogic[m]> | yes, the 'default' site is ignored |
| [06:54:06] | <ergonlogic[m]> | fyi: http://api.aegirproject.org/api/Provision/platform%21drupal%21deploy_7.i... |
| [06:54:20] | <roycroft> | and when i move it to sites/domain.com it will not verify |
| [06:54:31] | <roycroft> | let me do that again so i recall what the error is |
| [06:54:55] | <ergonlogic> | try installing a new site on the platform, and deploying the backup over it |
| [06:55:32] | <roycroft> | aah, that might help |
| [06:55:51] | <roycroft> | ok, i can try that |
| [06:55:53] | <ergonlogic> | just make sure not to overwrite setting.php and drushrc.php |
| [06:56:00] | <roycroft> | i'm verifying the platform right now |
| [06:56:09] | <roycroft> | and it verified |
| [06:57:36] | <roycroft> | the site was created, and the main pages comes up, but all the links are broken |
| [06:58:03] | <ergonlogic[m]> | after importing the backup? |
| [06:58:14] | <roycroft> | this was when i verified the platform |
| [06:58:21] | <ergonlogic[m]> | that's to be expected |
| [06:58:33] | <roycroft> | so i create a new site using that platform |
| [06:58:41] | <roycroft> | then copy the existing site into the new site? |
| [06:58:42] | <ergonlogic[m]> | since the links are pointing to the wrong site path |
| [06:58:45] | <roycroft> | right |
| [06:58:50] | <ergonlogic[m]> | well, hang on |
| [06:59:10] | <ergonlogic[m]> | so, you have a site running on the platform already? |
| [06:59:25] | <roycroft> | i have a broken site on the platform |
| [06:59:37] | <roycroft> | the one that was generated when i imported the platform |
| [06:59:55] | <ergonlogic[m]> | how broken? it bootstraps? |
| [06:59:56] | <roycroft> | i've changed the paths in settings.php to point to sites/domain.com and not sites/default |
| [07:00:07] | <roycroft> | it verifies fine |
| [07:00:19] | <roycroft> | and the main page comes up |
| [07:00:23] | <roycroft> | but all links are broken |
| [07:00:26] | <roycroft> | i get 404s |
| [07:00:34] | <ergonlogic[m]> | ok, so that's barely broken at all :) |
| [07:00:39] | <roycroft> | correct |
| [07:00:48] | <roycroft> | there's a path issue somewhere that i haven't found |
| [07:00:56] | <ergonlogic[m]> | ok, so try this: |
| [07:01:12] | <ergonlogic[m]> | on the site node in Aegir, trigger a 'migrate' task |
| [07:01:20] | <roycroft> | ok |
| [07:01:25] | <ergonlogic[m]> | keep the platform the same, but change the site URL |
| [07:01:53] | <roycroft> | ok, that's scheduled |
| [07:02:21] | <ergonlogic[m]> | so, that'll perform a backup, then restore from that backup, and run the code I linked to above |
| [07:02:52] | <ergonlogic[m]> | basically, it's a 'rename' task |
| [07:03:16] | <ergonlogic[m]> | it should then do everything that's required to change the site URL |
| [07:03:20] | <roycroft> | i still get the same problem |
| [07:03:26] | <roycroft> | i click on a link and get a 404 |
| [07:03:31] | <roycroft> | i've tried multiple links |
| [07:03:36] | <ergonlogic[m]> | ok, what's the link look like? |
| [07:03:44] | <roycroft> | domain.com/resources |
| [07:03:52] | <roycroft> | as an example |
| [07:04:16] | <ergonlogic[m]> | ok, so run another rename to "domain.com" or whatever the current links are pointing to |
| [07:04:54] | <roycroft> | they're pointing to the correct url - the migrated site is domain.com |
| [07:05:09] | <ergonlogic[m]> | that should fix those links, in that you'll have a site served at that URL |
| [07:05:10] | <roycroft> | and if i were to migrate to the original name that would not work |
| [07:05:26] | <roycroft> | because dns for the original name points to a different server |
| [07:05:30] | <roycroft> | and it's a current production site |
| [07:05:31] | <ergonlogic[m]> | that's exactly what you need to do |
| [07:05:46] | <ergonlogic[m]> | it doesn;t need to resolve |
| [07:05:48] | <roycroft> | should i rename it to that, knowing i won't be able to accees it? |
| [07:05:52] | <ergonlogic[m]> | it doesn't need to resolve |
| [07:05:53] | <roycroft> | and then migrate it again? |
| [07:06:00] | <ergonlogic[m]> | yes |
| [07:06:03] | <roycroft> | ok |
| [07:06:08] | <roycroft> | so i'll delete the site |
| [07:06:14] | <ergonlogic[m]> | you could always add an entry to your /etc/hosts |
| [07:06:18] | <roycroft> | maybe i should delete the platform and database and start it all over again |
| [07:06:28] | <roycroft> | have it recreate the original site |
| [07:06:29] | <ergonlogic[m]> | I wouldn't |
| [07:06:37] | <ergonlogic[m]> | you're pretty close to having it working |
| [07:06:50] | <ergonlogic[m]> | rename it to the original site name |
| [07:06:58] | <ergonlogic[m]> | then rename it to a new name |
| [07:07:06] | <ergonlogic[m]> | and the links ought to get re-written |
| [07:07:18] | <roycroft> | ok, i just did that |
| [07:07:28] | <ergonlogic[m]> | unless the site is at the original name, though, it doesn't knwo what to look for |
| [07:07:47] | <roycroft> | ok, that's done |
| [07:07:50] | <colan> | ergonlogic[m]: i'm getting "no data" on enabling the reporting suite of modules. worked on dev, but not staging. is there anything missing from the alpha1s? |
| [07:07:54] | <ergonlogic[m]> | it should also re-write instances of 'default' in paths |
| [07:07:58] | <roycroft> | now i should migrate again to a site that resolves on that aegir master |
| [07:08:26] | <roycroft> | ok, all the paths in settings.php look fine |
| [07:08:34] | <ergonlogic[m]> | colan: try a 'run probes' task? |
| [07:09:04] | <roycroft> | now migrating to something that resolves on that server |
| [07:09:48] | <colan> | ergonlogic[m]: that task doesn't show up for hostmaster. is that intentional? no sites on there so far. |
| [07:09:57] | <roycroft> | and i still get the 404 errors on all the links |
| [07:10:07] | <ergonlogic[m]> | hmm, not sure |
| [07:10:23] | <roycroft> | now keep in mind that i originally moved the site out of sites/default to sites/staging.domain.com |
| [07:10:26] | <ergonlogic[m]> | colan: the hostmaster site is always an exception... |
| [07:10:42] | <colan> | ok, will try adding a site & see if that works. |
| [07:11:04] | <roycroft> | the best thing to do, i think, is to move the site out of sites/default before importing into aegir |
| [07:11:09] | <ergonlogic[m]> | roycroft: that ought to only affect file paths, etc. |
| [07:11:20] | <roycroft> | yes |
| [07:11:24] | <roycroft> | and isn't that what is broken? |
| [07:11:37] | <ergonlogic[m]> | roycroft: Aegir imported the site from the default dir? |
| [07:11:41] | <roycroft> | no |
| [07:11:50] | <roycroft> | i moved it from sites/default to sites/staging.domain.com |
| [07:11:55] | <roycroft> | and then verified the platform |
| [07:11:59] | <ergonlogic[m]> | well, you said links were broken |
| [07:12:02] | <roycroft> | aegir did not find the site when it was in sites/default |
| [07:12:28] | <ergonlogic[m]> | ok, so leave that site as is, for the moment |
| [07:12:31] | <roycroft> | sure |
| [07:12:45] | <ergonlogic[m]> | install a new site at the original URL |
| [07:12:53] | <roycroft> | this aegir master is just a testing/development machine, btw |
| [07:13:03] | <roycroft> | and i run backups of the databases and aegir every 10 minutes |
| [07:13:11] | <roycroft> | because my boss breaks stuff constantly |
| [07:13:19] | <roycroft> | so anything scary that i might do is ok :) |
| [07:13:23] | <ergonlogic[m]> | untar your backup, and copy private/, files/, modules/, themes/, and libraries/ into that new site |
| [07:14:05] | <roycroft> | ok |
| [07:14:13] | <ergonlogic[m]> | then run: "drush @example.com sqlc < database.sql" |
| [07:14:18] | <ergonlogic[m]> | using the db dump from the backup |
| [07:14:45] | <ergonlogic[m]> | then "rename" that site to staging.example.com (or whatever) |
| [07:15:34] | <roycroft> | ok, i have the new site |
| [07:15:49] | <roycroft> | which backup do you want me to use? |
| [07:15:56] | <roycroft> | one of the site i migrated a few minutes ago? |
| [07:16:06] | <ergonlogic[m]> | the one from the original site |
| [07:16:21] | <roycroft> | ok |
| [07:17:03] | <ergonlogic[m]> | colan: so yeah... no 'run probes' task on the hostmaster site. It should be run on the queue though |
| [07:17:14] | <ergonlogic[m]> | so you could run that manually via drush |
| [07:19:11] | <colan> | ergonlogic[m]: releasing an alpha2 as I hit a bug you fixed post alpha1. :) |
| [07:19:14] | <roycroft> | and you only want me to move stuff from sites/default int othe new site? |
| [07:19:17] | <roycroft> | not from the documentroot? |
| [07:19:39] | <roycroft> | because there are no private, modules, themes, or libraries directories in sites/default from the original site |
| [07:19:41] | <roycroft> | just files |
| [07:20:07] | <ergonlogic[m]> | ok, so just copy the files dir, then |
| [07:20:17] | <roycroft> | sorry to ask so many questions |
| [07:20:23] | <ergonlogic[m]> | np |
| [07:20:25] | <roycroft> | but drupal moves that stuff around from release to release |
| [07:20:31] | <roycroft> | and aegir ignores some of it |
| [07:20:34] | <ergonlogic[m]> | colan: great :) |
| [07:20:41] | <roycroft> | and i can't keep it all straight in my head |
| [07:20:45] | <roycroft> | so i've moved files |
| [07:20:51] | <roycroft> | now i'll extract the database |
| [07:22:33] | <roycroft> | sadly, that leaves me with broken links |
| [07:22:55] | <roycroft> | oh wait |
| [07:23:13] | <roycroft> | i totally misread your second instruction |
| [07:23:23] | <roycroft> | give me a few minutes |
| [07:26:32] | <ergonlogic[m]> | colan: unfortunately, we hard-code a whitelist of tasks for the hostmaster site: http://api.aegirproject.org/api/Hosting/task%21hosting_task.module/funct... |
| [07:28:14] | <colan> | ok, cool. got picked up eventually with alpha2, and another site present. |
| [07:30:54] | <roycroft> | sadly, it is still broken in the same way |
| [07:32:15] | <roycroft> | i created a new site using the platform, copied /files from the original site to the new site, restored the database backup from the old site to the new site, then migrated the new site to something locally resolvable |
| [07:32:24] | <roycroft> | and all links still have 404 errors |
| [07:33:09] | <roycroft> | and there is nothing in the web server logs that indicate a problem |
| [07:33:11] | <ergonlogic[m]> | the new site you just installed was named identically to the original/prod site? |
| [07:33:19] | <roycroft> | yes |
| [07:33:45] | <roycroft> | and i copied sites/default/files to /var/aegir/platform/sites/originaldomain.com |
| [07:33:55] | <ergonlogic[m]> | those links ought not be broken anyway, though.... since they'd point back to the original site... |
| [07:34:08] | <roycroft> | unless they are relative links |
| [07:34:22] | <roycroft> | and point to sites/default |
| [07:34:37] | <ergonlogic[m]> | I'd suggest looking at that content closer |
| [07:34:39] | <roycroft> | would symlinking sites/default to sites/staging.domain.com be a useful experiment do you think? |
| [07:34:53] | <ergonlogic[m]> | perhaps |
| [07:34:54] | <roycroft> | it's not a solution |
| [07:35:00] | <roycroft> | but it might clarify the problem |
| [07:35:14] | <ergonlogic[m]> | look in the content where those links exist |
| [07:35:31] | <ergonlogic[m]> | and check whether they're absolute or relative links |
| [07:35:54] | <ergonlogic[m]> | is http/https the same for both original and new site? |
| [07:36:25] | <roycroft> | yes |
| [07:36:39] | <roycroft> | no ssl on the original site nor the new one |
| [07:36:46] | <roycroft> | and the symlink does not help |
| [07:37:18] | <ergonlogic[m]> | take another look at a node that contains such a link |
| [07:37:43] | <ergonlogic[m]> | edit it, and check out how that link is constructed |
| [07:38:41] | <roycroft> | i'll have to get the admin password for that |
| [07:38:51] | <roycroft> | i might have it, but i might have to get ahold of my boss to get it |
| [07:39:30] | <ergonlogic[m]> | Aegir's 'reset password' task should help there |
| [07:39:42] | <ergonlogic[m]> | or "drush @example.com uli" |
| [07:40:57] | <roycroft> | oh, the login url isn't working |
| [07:42:10] | <gusaus> | has anyone sucessfully created an Aegir platform for https://www.drupal.org/open-social ? |
| [07:42:47] | <ergonlogic[m]> | gusaus: yes, but it's currently a manual process |
| [07:42:55] | <ergonlogic[m]> | I'm working on automating it now |
| [07:47:43] | <gusaus> | ergonlogic[m]: this issue? https://www.drupal.org/node/2864854 |
| [07:47:44] | <hefring> | https://www.drupal.org/node/2864854 => [meta] Enhance distributions [#2864854] => 9 comments, 1 IRC mention |
| [07:48:07] | <ergonlogic[m]> | yes |
| [07:49:51] | <ergonlogic[m]> | gusaus: and https://www.drupal.org/node/2736801 |
| [07:49:52] | <hefring> | https://www.drupal.org/node/2736801 => Support Composer for platform builds [#2736801] => 12 comments, 2 IRC mentions |
| [07:50:05] | <roycroft> | oh, this is frustrating beyond belief |
| [07:50:30] | <roycroft> | i decided to go back to the production site to look at the node information, since i can't do so on the copy i'm importing |
| [07:50:37] | <roycroft> | but the site no longer exists |
| [07:50:45] | <roycroft> | i still have dns pointing to the old server |
| [07:51:02] | <roycroft> | my boss just informed me that since i was importing it he deleted it from the other server |
| [07:51:43] | <roycroft> | he did not wait until i successfully imported it and repointed dns |
| [07:51:45] | <ergonlogic[m]> | jumped the gun just a bit there |
| [07:51:49] | <roycroft> | quite a bit |
| [07:52:07] | <roycroft> | drush ... ili gives me a link that does not work, btw |
| [07:52:10] | <roycroft> | er |
| [07:52:11] | <roycroft> | uli |
| [07:52:46] | <ergonlogic[m]> | you need to make sure it'll resolve, of course |
| [07:52:58] | <roycroft> | it does |
| [07:53:01] | <ergonlogic[m]> | and not point to a site on another server |
| [07:57:32] | <roycroft> | OH |
| [07:57:40] | <roycroft> | so now i have the whole story |
| [07:57:50] | <roycroft> | the site i'm trying to import is test.domain.com, not domain.com |
| [07:58:05] | <roycroft> | and that's probably why the links keep breaking |
| [07:58:17] | <roycroft> | i need to create test.domain.com |
| [07:58:41] | <roycroft> | it's time for me to leave in 2 minutes, but i want to know if this works today |
| [07:58:47] | <roycroft> | tomorrow is my last day before my vacation |
| [07:58:57] | <roycroft> | so i'll work 10 minutes late today :) |
| [07:59:17] | * v20th has quit (Quit: Leaving) |
| [08:01:04] | * ybabel has quit (Quit: ybabel) |
| [08:04:32] | <roycroft> | still broken though :( |
| [08:04:38] | <roycroft> | i'll pick this up again in the morning |
| [08:04:49] | <roycroft> | thanks for all your help and patience, ergonlogic[m]! |
| [08:05:06] | <ergonlogic[m]> | better luck tomorrow |
| [08:05:11] | <roycroft> | hopefully :) |
| [08:05:11] | <ergonlogic[m]> | fresh eyes might help :) |
| [08:05:17] | <roycroft> | my boss has never been very communicative |
| [08:05:29] | <roycroft> | and he's in his '70s now, and getting quite forgetful on top of that |
| [08:05:43] | <roycroft> | so it's always an interesting game for me to figure out what he has done, is doing, and wants me to do |
| [08:11:04] | * ybabel has joined #aegir |
| [08:15:10] | * ybabel has quit (Remote host closed the connection) |