Bug #3647

invalid byte sequence in UTF-8

Added by Guillermo Zetina over 6 years ago. Updated almost 6 years ago.

Status:ClosedStart date:03/03/2015
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-
Resolution:worksforme Pull request:
Affected Versions:OpenNebula 4.6

Description

Good day Friends.

I commented. I have my farm with kvm. When you intend to migrate these images to OpenNebula get the following errror: "invalid byte sequence in UTF 8"
The images currently operating in kvm no problem
I use debian 7.7 , OpenNebula 4.6.2 and never loads the image using either the web interface or via command.
-----

oneadmin@nebula:~$ oneimage create d default --driver raw --name intranet2 intranet2.img
invalid byte sequence in UTF-8
oneadmin@nebula:~$
-----

No encounter similar errors in google and so I dare lenvantar a report. _If I download an image of the marketplace works fine.

Thank for your support.

History

#1 Updated by Michel Depeige almost 6 years ago

Hello guys,

This is still happening in 4.12.1 :

oneadmin@test:~$ oneimage create -v -d default --type CDROM /tmp/pfSense-LiveCD-2.2.4-RELEASE-amd64.iso
invalid byte sequence in UTF-8

This seems somewhat related to the current locale :

oneadmin@test:~$ export LANG=C
oneadmin@test:~$ oneimage create -v -d default --type CDROM /tmp/pfSense-LiveCD-2.2.4-RELEASE-amd64.iso
invalid byte sequence in US-ASCII

Like Guillermo, downloading an image of the marketplace works fine.
If it helps, here is a strace output :

stat("/var/lib/one/.one/one_endpoint", 0x7ffe54e0d3b0) = -1 ENOENT (No such file or directory)
stat("/var/lib/one/.one/one_endpoint", 0x7ffe54e0d3b0) = -1 ENOENT (No such file or directory)
stat("/tmp/pfSense-LiveCD-2.2.4-RELEASE-amd64.iso", {st_mode=S_IFREG|0644, st_size=309286912, ...}) = 0
open("/tmp/pfSense-LiveCD-2.2.4-RELEASE-amd64.iso", O_RDONLY|O_CLOEXEC) = 8
fcntl(8, F_GETFD)                       = 0x1 (flags FD_CLOEXEC)
fstat(8, {st_mode=S_IFREG|0644, st_size=309286912, ...}) = 0
ioctl(8, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, 0x7ffe54e0cf10) = -1 ENOTTY (Inappropriate ioctl for device)
fstat(8, {st_mode=S_IFREG|0644, st_size=309286912, ...}) = 0
lseek(8, 0, SEEK_CUR)                   = 0
mmap(NULL, 309288960, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f102d90a000
close(7)                                = 0
read(8, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 309286912) = 309286912
mremap(0x7f102d90a000, 309288960, 309297152, MREMAP_MAYMOVE) = 0x7f101b212000
read(8, "", 8192)                       = 0
close(8)                                = 0
mmap(NULL, 309288960, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f102d90a000
write(1, "invalid byte sequence in UTF-8", 30invalid byte sequence in UTF-8) = 30
write(1, "\n", 1
)                       = 1
rt_sigaction(SIGINT, {SIG_IGN, [], SA_RESTORER|SA_SIGINFO, 0x7f104c9998d0}, {0x7f104ccc8040, [], SA_RESTORER|SA_SIGINFO, 0x7f104c9998d0}, 8) = 0
rt_sigaction(SIGINT, {SIG_DFL, [], SA_RESTORER|SA_SIGINFO, 0x7f104c9998d0}, {SIG_IGN, [], SA_RESTORER|SA_SIGINFO, 0x7f104c9998d0}, 8) = 0
write(4, "!", 1)                        = 1
munmap(0x7f104d133000, 1052672)         = 0
exit_group(-1)                          = ?

Telle me if you need more information.

Regards

#2 Updated by Michel Depeige almost 6 years ago

Ok, I feel stupid ;-)

After getting more coffee, I noticed that we were missing the --path argument :

oneadmin@test:~$ oneimage create -v -d default --type CDROM --driver raw --name 'pfSense' --path /tmp/pfSense-LiveCD-2.2.4-RELEASE-amd64.iso
ID: 2

I think you can close this "bug".

Have a nice day,

Regards

#3 Updated by Ruben S. Montero almost 6 years ago

  • Status changed from Pending to Closed
  • Resolution set to worksforme

Thanks for reporting back... coffee is important ;)

Also available in: Atom PDF