Ask your questions here.
Post a reply
nadir

- nadir
- Posts: 1160
- Joined: Wed Mar 09, 2011 4:18 am
- Location: here

## snapshot

Wed May 04, 2011 5:33 pm

I ran refractasnapshot from the menu, and the resulting iso (after half an hour) is a few kB only.
Huh?
I searched for snapshot at /usr/local/bin, no luck.
I tried to "locate snapshot | grep bin", no luck.
I searched for a menu-config-file in the users home to find a hint about where to find it, no luck.
They call me: Mr. Lucky. I will get used to it.
I have to.
fsmithred

- fsmithred
- Posts: 2101
- Joined: Wed Mar 09, 2011 9:13 pm

## Re: snapshot

Wed May 04, 2011 6:35 pm

The python script is /usr/local/lib/refractasnapshot/refractasnapshot.py and exclude.list is in the same directory. Maybe try running it from a terminal, so you can see error messages.
nadir

- nadir
- Posts: 1160
- Joined: Wed Mar 09, 2011 4:18 am
- Location: here

## Re: snapshot

Wed May 04, 2011 7:22 pm

ah, duh, sure. Now that you say i remember. Bit confused at the moment (referencing references and referents with anonymous references might be the cause. Plain: too much of perls brain-break-dance).
To try runnning it from a terminal will take a bit. I will post what i get.
Thanks.
nadir

- nadir
- Posts: 1160
- Joined: Wed Mar 09, 2011 4:18 am
- Location: here

## Re: snapshot

Wed May 04, 2011 8:21 pm

No positive finish yet, but here is a first thought:
Might it be that in /usr/local/lib/refractasnapshot/refractasnapshot.py
line 81 (ca.) a:

Code:
  `os.sytem ("mkdir /tmp/work/iso/live")`

is missing.
Error is:

> cp cannot create regular file "/tmp/work/iso/live/" : Is a directory.

If the lines are different search for "work" and pick the ten lines around the first result.
nadir

- nadir
- Posts: 1160
- Joined: Wed Mar 09, 2011 4:18 am
- Location: here

## Re: snapshot

Wed May 04, 2011 9:14 pm

I can confirm that the snapshot ran through and created a 700MB iso.
(/home/snapshot/*iso)
I am rsyncing it to the host right now, but i think it should be ok.
Long story short: is there a bug, or did i do it wrong?
fsmithred

- fsmithred
- Posts: 2101
- Joined: Wed Mar 09, 2011 9:13 pm

## Re: snapshot

Wed May 04, 2011 9:54 pm

I'm not sure how that happened. The commands start out by changing to /tmp, then deleting any pre-existing work directory before making a new one. The error message suggests that it didn't get deleted. Maybe an aborted run that didn't clean up after itself? Not surprising, as there's no code to clean up if it crashes. Maybe I need to add that to check_exit. When it gets to the end, it should delete the work directory.
nadir

- nadir
- Posts: 1160
- Joined: Wed Mar 09, 2011 4:18 am
- Location: here

## Re: snapshot

Thu May 05, 2011 2:39 pm

Does not look like i would have got luck.
I booted the iso and got an error message (After grub), similar to:
no /live/scripts found (or vice versa).
I booted into my VBox-remix-installation, removed the line i added, made sure there is nothing found at /tmp, and ran refractasnapshot again.
Same error like above:
ROOT# /usr/local/lib/refractasnapshot/refractasnapshot.py
Starting...
Copying...
cp: cannot create regular file `/tmp/work/iso/live/': Is a directory
cp: cannot create regular file `/tmp/work/iso/live/': Is a directory
rsync: readlink_stat("/home/user/.gvfs") failed: Permission denied (13)
mhh... mhhh... not sure.
fsmithred

- fsmithred
- Posts: 2101
- Joined: Wed Mar 09, 2011 9:13 pm

## Re: snapshot

Thu May 05, 2011 3:06 pm

If you're around right now, meet me in study_group.
What line you added, and where?
Maybe you should check to make sure there's no /tmp/work directory before you start. If you added a line to copy iso/live, that was wrong. The live folder should be in the iso directory when it gets copied from /usr/local/lib/refractasnapshot. That's a template that gets copied (by rsync) every time you run the snapshot.
For the gvfs error, I think I've seen that message, and you can ignore it. I added that to the excludes list in the bash version. You could add it to exclude.list if you wanted.
nadir

- nadir
- Posts: 1160
- Joined: Wed Mar 09, 2011 4:18 am
- Location: here

## Re: snapshot

Thu May 05, 2011 6:33 pm

bout your ideas from IRC:
i re-installed refractasnapshot.
i edited /usr/local/lib/refractasnapshot/excludes.list
and removed "/live".
Still no luck:
after "Loading, please wait..."
i get:
"can't open /scripts/live" and a kernel-panic.
I will re-install, leave as is and try it that way. But tomorrow.
nadir

- nadir
- Posts: 1160
- Joined: Wed Mar 09, 2011 4:18 am
- Location: here

## Re: snapshot

Fri May 06, 2011 5:23 pm

Before re-installing i made two experiments:
I edited the excludes file again, and ran refractasnapshot:
"can't open /scripts/live"
Buh.
I installed live-build, and ran:
lb config --bootstrap copy --debian installer live
lb build
Same error. Buh too.
No clue.
Let me watch the IP-Man and search for enlightenment... while i go for a re-installation.
Post a reply
Jump to:

Powered by phpBB © phpBB Group.

phpBB Mobile / SEO by Artodia.