duckduckgo / duckduckgo-publisher

Generation of the static files of DuckDuckGo and its microsites.
Other
53 stars 43 forks source link

`duckpan publisher` no longer works. #118

Closed mwmiller closed 9 years ago

mwmiller commented 9 years ago

I am no longer able to view changes locally with duckpan publisher. I had some local changes to the duckpan application, which I thought might be responsible. However, I did a duckpan reinstall, cleared my publisher cache and still get this same result:

Passing a list of values to enum is deprecated. Enum values should be wrapped in an arrayref. at /home/matt/perl5/lib/perl5/Markdent/Types/Internal.pm line 83.
    require Markdent/Types/Internal.pm called at /usr/share/perl5/Module/Runtime.pm line 317
    Module::Runtime::require_module("Markdent::Types::Internal") called at /usr/share/perl5/Module/Runtime.pm line 348
    Module::Runtime::use_module("Markdent::Types::Internal") called at /home/matt/perl5/lib/perl5/MooseX/Types/Combine.pm line 70
    MooseX::Types::Combine::_check_type_lib("Markdent::Types", "Markdent::Types::Internal") called at /home/matt/perl5/lib/perl5/MooseX/Types/Combine.pm line 53
    MooseX::Types::Combine::provide_types_from("Markdent::Types", "Markdent::Types::Internal", "MooseX::Types::Moose") called at /home/matt/perl5/lib/perl5/Markdent/Types.pm line 14
    require Markdent/Types.pm called at /home/matt/perl5/lib/perl5/Markdent/Handler/HTMLStream/Document.pm line 13
    Markdent::Handler::HTMLStream::Document::BEGIN() called at /home/matt/perl5/lib/perl5/Markdent/Types/Internal.pm line 0
    eval {...} called at /home/matt/perl5/lib/perl5/Markdent/Types/Internal.pm line 0
    require Markdent/Handler/HTMLStream/Document.pm called at lib/DDG/Publisher/Site/Duckduckhack/Root.pm line 15
    DDG::Publisher::Site::Duckduckhack::Root::BEGIN() called at /home/matt/perl5/lib/perl5/Markdent/Types/Internal.pm line 0
    eval {...} called at /home/matt/perl5/lib/perl5/Markdent/Types/Internal.pm line 0
    require DDG/Publisher/Site/Duckduckhack/Root.pm called at /usr/share/perl5/Module/Runtime.pm line 317
    Module::Runtime::require_module("DDG::Publisher::Site::Duckduckhack::Root") called at /usr/share/perl5/Class/Load.pm line 180
    Class::Load::try {...} () called at /usr/share/perl5/Try/Tiny.pm line 77
    eval {...} called at /usr/share/perl5/Try/Tiny.pm line 72
    Try::Tiny::try(CODE(0x4076388), Try::Tiny::Catch=REF(0x3f2b5c0)) called at /usr/share/perl5/Class/Load.pm line 186
    Class::Load::try_load_class("DDG::Publisher::Site::Duckduckhack::Root", undef) called at /usr/share/perl5/Class/Load.pm line 41
    Class::Load::load_class("DDG::Publisher::Site::Duckduckhack::Root") called at lib/DDG/Publisher/SiteRole.pm line 73
    DDG::Publisher::SiteRole::_build_dirs(DDG::Publisher::Site::Duckduckhack=HASH(0x40765b0)) called at (eval 242) line 18
    DDG::Publisher::SiteRole::dirs(DDG::Publisher::Site::Duckduckhack=HASH(0x40765b0)) called at lib/DDG/Publisher/SiteRole.pm line 114
    DDG::Publisher::SiteRole::_build_fullpath_files(DDG::Publisher::Site::Duckduckhack=HASH(0x40765b0)) called at (eval 241) line 18
    DDG::Publisher::SiteRole::fullpath_files(DDG::Publisher::Site::Duckduckhack=HASH(0x40765b0)) called at /home/matt/perl5/lib/perl5/App/DuckPAN/WebPublisher.pm line 78
    App::DuckPAN::WebPublisher::request(App::DuckPAN::WebPublisher=HASH(0x33c7d90), Plack::Request=HASH(0x33ddff0)) called at /home/matt/perl5/lib/perl5/App/DuckPAN/WebPublisher.pm line 51
    App::DuckPAN::WebPublisher::run_psgi(App::DuckPAN::WebPublisher=HASH(0x33c7d90), HASH(0x33de170)) called at /home/matt/perl5/lib/perl5/App/DuckPAN/Cmd/Publisher.pm line 74
    App::DuckPAN::Cmd::Publisher::__ANON__(HASH(0x33de170)) called at /home/matt/perl5/lib/perl5/Plack/Util.pm line 142
    eval {...} called at /home/matt/perl5/lib/perl5/Plack/Util.pm line 142
    Plack::Util::run_app(CODE(0x32d32d8), HASH(0x33de170)) called at /home/matt/perl5/lib/perl5/Starman/Server.pm line 273
    Starman::Server::process_request(Starman::Server=HASH(0x33b4548), Net::Server::Proto::TCP=GLOB(0x33fe0a0)) called at /home/matt/perl5/lib/perl5/Net/Server.pm line 75
    Net::Server::run_client_connection(Starman::Server=HASH(0x33b4548)) called at /home/matt/perl5/lib/perl5/Net/Server/PreFork.pm line 229
    eval {...} called at /home/matt/perl5/lib/perl5/Net/Server/PreFork.pm line 229
    Net::Server::PreFork::run_child(Starman::Server=HASH(0x33b4548)) called at /home/matt/perl5/lib/perl5/Net/Server/PreFork.pm line 187
    Net::Server::PreFork::run_n_children(Starman::Server=HASH(0x33b4548), 5) called at /home/matt/perl5/lib/perl5/Net/Server/PreFork.pm line 111
    Net::Server::PreFork::loop(Starman::Server=HASH(0x33b4548)) called at /home/matt/perl5/lib/perl5/Net/Server.pm line 61
    Net::Server::run(Starman::Server=HASH(0x33b4548), "port", ARRAY(0x3049a88), "host", "*", "proto", "tcp", "serialize", "none", ...) called at /home/matt/perl5/lib/perl5/Starman/Server.pm line 84
    Starman::Server::run(Starman::Server=HASH(0x33b4548), CODE(0x32d32d8), HASH(0x3191b98)) called at /home/matt/perl5/lib/perl5/Plack/Handler/Starman.pm line 18
    Plack::Handler::Starman::run(Plack::Handler::Starman=HASH(0x317fe20), CODE(0x32d32d8)) called at /home/matt/perl5/lib/perl5/App/DuckPAN/Cmd/Publisher.pm line 74
    App::DuckPAN::Cmd::Publisher::run(App::DuckPAN::Cmd::Publisher=HASH(0x314ba70)) called at /home/matt/perl5/lib/perl5/App/DuckPAN/Cmd.pm line 19
    App::DuckPAN::Cmd::execute(App::DuckPAN::Cmd::Publisher=HASH(0x314ba70), ARRAY(0x11b5fe0), ARRAY(0x3136a38)) called at /home/matt/perl5/lib/perl5/MooX/Cmd/Role.pm line 120
    MooX::Cmd::Role::__ANON__(App::DuckPAN::Cmd::Publisher=HASH(0x314ba70), "execute", ARRAY(0x11b5fe0), ARRAY(0x3136a38)) called at /home/matt/perl5/lib/perl5/MooX/Cmd/Role.pm line 197
    MooX::Cmd::Role::_initialize_from_cmd("App::DuckPAN") called at /home/matt/perl5/bin/duckpan line 17
mwmiller commented 9 years ago

Oh, I don't believe it matters, but in the interest of completeness: this is specifically the result of a request for http://localhost:5005/ddh-intro

moollaza commented 9 years ago

Hmm... I'll look into this right now...

moollaza commented 9 years ago

@mwmiller I'm unable to reproduce running this:

duckpan publisher --duckduckhack http://duck.co/

and then going to http://localhost:5005/ddh-intro, I'm seeing the docs as expected.

mwmiller commented 9 years ago

@moollaza Thanks for confirming this for me. I found the problem.

On a tangentially related note, would it be OK for me to update the default URL for duckduckhack to duck.co? I seem to forget that invocation a lot.

moollaza commented 9 years ago

@mwmiller actually I think we still need to keep Port 5005 pointing to duckduckhack.com because we do still have/use that domain. I know in the coming weeks there are plans to redesign it at the very least so it's likely to get used shortly.

My thinking was that we could have port 5006 point to duck.co for the docs, or we could simply make a new duckpan docs command that does what we want?

mwmiller commented 9 years ago

My thinking was that we could have port 5006 point to duck.co for the docs, or we could simply make a new duckpan docs command that does what we want

This is almost certainly a better idea. :grin: