Category: Amazon Web Services

  • johnro.net Now on AWS!

    My WordPress site is now on AWS! I spent a good chunk of my time debugging the All-in-One WP Migration plugin to get my migration working, and I finally realized I skipped an important step in their migration documentation:

    Migrate WordPress from PHP 5 to PHP 7

    1. Make sure that all plugins are deactivated. This will ensure your website error is not caused by any third-party software

    If you are getting stuck in the “Done Preparing Blogs” stage, then it could be because you didn’t deactivate all the plugins.

    Cheers!

  • johnro.net will be moved to AWS

    It’s funny, I was confident I was going to post more often this year. I promise myself I would back in January, and here we are, half a year later, for my second post of the year. So many things have happened, which I hope to write about in later posts.

    I recently took an AWS class under the UCLA extension program. It felt like a long 10 weeks, but I am very glad I went through with it. With some AWS experience now under my belt, I feel like I have enough knowledge to start my migration from Hostmonster to AWS.

    Stay tuned.

  • AWS: EB CLI Throws Exceptions VersionConflict and/or DistributionNotFound

    AWS: EB CLI Throws Exceptions VersionConflict and/or DistributionNotFound

    When running EB CLI, do you run into the following error?

    $ eb deploy
    Traceback (most recent call last):
      File "C:Python34libsite-packagespkg_resources__init__.py", line 635, in _build_master
        ws.require(__requires__)
      File "C:Python34libsite-packagespkg_resources__init__.py", line 942, in require
        needed = self.resolve(parse_requirements(requirements))
      File "C:Python34libsite-packagespkg_resources__init__.py", line 834, in resolve
        raise VersionConflict(dist, req).with_context(dependent_req)
    pkg_resources.ContextualVersionConflict: (colorama 0.3.3 (c:python34libsite-packages), Requirement.parse('colorama==0.3.7'), {'awsebcli'})
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "C:Python34Scriptseb-script.py", line 5, in <module>
        from pkg_resources import load_entry_point
      File "C:Python34libsite-packagespkg_resources__init__.py", line 2900, in <module>
        @_call_aside
      File "C:Python34libsite-packagespkg_resources__init__.py", line 2886, in _call_aside
        f(*args, **kwargs)
      File "C:Python34libsite-packagespkg_resources__init__.py", line 2913, in _initialize_master_working_set
        working_set = WorkingSet._build_master()
      File "C:Python34libsite-packagespkg_resources__init__.py", line 637, in _build_master
        return cls._build_from_requirements(__requires__)
      File "C:Python34libsite-packagespkg_resources__init__.py", line 650, in _build_from_requirements
        dists = ws.resolve(reqs, Environment())
      File "C:Python34libsite-packagespkg_resources__init__.py", line 829, in resolve
        raise DistributionNotFound(req, requirers)
    pkg_resources.DistributionNotFound: The 'colorama==0.3.7' distribution was not found and is required by awsebcli

    I ran into this error today. Apparently it was caused by installing AWS CLI after EB CLI:
    pip install awscli
    Reinstalling EB CLI solved the issue:
    pip install awsebcli