Skip to content
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

Attribute error decanting pickle #819

Closed
sraustein opened this issue May 7, 2016 · 7 comments
Closed

Attribute error decanting pickle #819

sraustein opened this issue May 7, 2016 · 7 comments
Labels

Comments

@sraustein
Copy link
Contributor

{{{
newca0.rpki.net:/root/CA-stuff# sudo sudo -u rpki python ca-unpickle.py --rootd pickled-rpki.xz
Traceback (most recent call last):
File "ca-unpickle.py", line 1300, in
main()
File "ca-unpickle.py", line 194, in main
fixuri = FixURI(cfg, args, world)
File "ca-unpickle.py", line 114, in init
self.new_irdbd = fmt(host = world.cfg.irdbd.server_host,
File "ca-unpickle.py", line 67, in getattr
raise AttributeError
AttributeError
}}}

Trac ticket #813 component testbed priority blocker, owner None, created by randy on 2016-05-07T06:57:54Z, last modified 2016-05-07T20:17:01Z

@sraustein
Copy link
Contributor Author

In [changeset:"6428" 6428]:
{{{
#!CommitTicketReference repository="" revision="6428"
Joy. Randy's trunk/ installation is using an ancient backwards
compatability hack which allows irdbd's server host and port to be
expressed as a URL. No big deal, except that I wonder how many other
relics we're going to find in The Config File That Time Forgot.

See #813.
}}}

Trac comment by sra on 2016-05-07T13:50:45Z

@sraustein
Copy link
Contributor Author

so rebuild exporter?

Trac comment by randy on 2016-05-07T13:52:00Z

@sraustein
Copy link
Contributor Author

so rebuild exporter?

You should not need to run ca-pickle again, if that's what you're
asking. You do need to fetch the latest version of ca-unpickle.

ca-pickle is, deliberately, as simple as possible. It just packages
what it finds, and makes no attempt to understand what it's packaging
beyond the bare minimum necessary to find the other things it needs to
package. So it has to understand filenames and SQL credentials well
enough to read files and load SQL data, but that's about it.

Trac comment by sra on 2016-05-07T14:01:39Z

@sraustein
Copy link
Contributor Author

{{{
newca0.rpki.net:/root/CA-stuff# wget https://subvert-rpki.hactrn.net/branches/tk705/potpourri/ca-unpickle.py
--2016-05-07 14:04:17-- https://subvert-rpki.hactrn.net/branches/tk705/potpourri/ca-unpickle.py
Resolving subvert-rpki.hactrn.net (subvert-rpki.hactrn.net)... 2001:418:1::19, 147.28.0.19
Connecting to subvert-rpki.hactrn.net (subvert-rpki.hactrn.net)|2001:418:1::19|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 58914 (58K) [text/plain]
Saving to: â

ca-unpickle.py.3 100%[===================>] 57.53K --.-KB/s in 0.1s

2016-05-07 14:04:17 (402 KB/s) - â saved [58914/58914]

newca0.rpki.net:/root/CA-stuff# l ca-unpickle.py
-rw-r--r-- 1 root root 58735 May 7 00:06 ca-unpickle.py

newca0.rpki.net:/root/CA-stuff# sudo -u rpki python ca-unpickle.py --rootd pickled-rpki.xz
Traceback (most recent call last):
File "ca-unpickle.py", line 1300, in
main()
File "ca-unpickle.py", line 194, in main
fixuri = FixURI(cfg, args, world)
File "ca-unpickle.py", line 114, in init
self.new_irdbd = fmt(host = world.cfg.irdbd.server_host,
File "ca-unpickle.py", line 67, in getattr
raise AttributeError
AttributeError
}}}

suspicious of date on ca-unpickle.py

Trac comment by randy on 2016-05-07T14:10:06Z

@sraustein
Copy link
Contributor Author

Read what you posted more closely:

{{{
newca0.rpki.net:/root/CA-stuff# wget https://subvert-rpki.hactrn.net/branches/tk705/potpourri/ca-unpickle.py
ca-unpickle.py.3 100%[===================>] 57.53K --.-KB/s in 0.1s
}}}

You're being faked out by wget's default behavior. You might want
wget's -N option, or you could just delete the old file before
downloading it again.

Trac comment by sra on 2016-05-07T14:31:09Z

@sraustein
Copy link
Contributor Author

well, it seems to run, producing a zillion lines
{{{
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
}}}

still running

Trac comment by randy on 2016-05-07T19:55:51Z

@sraustein
Copy link
Contributor Author

Closed with resolution fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant