abhilekhsingh / gc3pie

Automatically exported from code.google.com/p/gc3pie
0 stars 0 forks source link

UnicodeDecodeError #420

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
here is the output: ----------------------------------
  File "/Users/vwirz/gc3pie/src/gc3pie/gc3libs/backends/ec2.py", line 771, in submit_job
    ret = resource.submit_job(job)
  File "/Users/vwirz/gc3pie/src/gc3pie/gc3libs/backends/shellcmd.py", line 694, in submit_job
    % (self.frontend, stderr))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 48: 
ordinal not in range(128)
gc3.gc3libs: ERROR: Ignored error in submitting task 'GcgpsApplication.8940': 
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 48: 
ordinal not in range(128)
...

gc3.gc3libs: INFO: No available resource was found, but some VM is still in 
`pending` state. Waiting until the next iteration before creating a new VM. 
Pending VM ids: i-0002baa9
gc3.gc3libs: INFO: Error in submitting job to resource 'geo.eth': 
RecoverableError: Delaying submission until some of the VMs currently pending 
is ready. Pending VM ids: i-0002baa9
Traceback (most recent call last):
  File "/Users/vwirz/gc3pie/src/gc3pie/gc3libs/core.py", line 236, in __submit_application
    lrms.submit_job(app)
  File "/Users/vwirz/gc3pie/src/gc3pie/gc3libs/backends/ec2.py", line 816, in submit_job
    "is ready. Pending VM ids: %s" % str.join(', ', pending_vms))
RecoverableError: Delaying submission until some of the VMs currently pending 
is ready. Pending VM ids: i-0002baa9
gc3.gc3libs: ERROR: Ignored error in submitting task 'GcgpsApplication.8943': 
RecoverableError: Delaying submission until some of the VMs currently pending 
is ready. Pending VM ids: i-0002baa9
Status of jobs in the '2013-10-23' session: (at 14:14:15, 10/29/13)
         NEW  30/44  (68.2%)  
     RUNNING   1/44   (2.3%)  
     STOPPED   0/44   (0.0%)  
   SUBMITTED   0/44   (0.0%)  
  TERMINATED  13/44  (29.5%)  
 TERMINATING   0/44   (0.0%)  
     UNKNOWN   0/44   (0.0%)  
          ok  13/44  (29.5%)  
       total  44/44  (100.0%)

-------------------

self.frontend is in unicode format

need to check first which version of GC3Pie is she running

shall we ask first to upgrade to latest trunk version ?

S.

Original issue reported on code.google.com by sergio.m...@gmail.com on 29 Oct 2013 at 2:26

GoogleCodeExporter commented 9 years ago
| self.frontend is in unicode format

The traceback states:

      File "/Users/vwirz/gc3pie/src/gc3pie/gc3libs/backends/ec2.py",
line 771, in submit_job
        ret = resource.submit_job(job)
      File "/Users/vwirz/gc3pie/src/gc3pie/gc3libs/backends/shellcmd.py",
line 694, in submit_job
        % (self.frontend, stderr))

How do we know the problem is `self.frontend` and not `stderr` (which
might well contain non-ASCII characters if one is using localized
error messages)?

| need to check first which version of GC3Pie is she running

Indeed: can you ask her to provide the output of these two commands:

    gservers --version

    gservers

| shall we ask first to upgrade to latest trunk version ?

No.  Let's ask her to upgrade only when we know the problem is fixed
by upgrading.

Original comment by riccardo.murri@gmail.com on 30 Oct 2013 at 5:05

GoogleCodeExporter commented 9 years ago
I've tried to address this in SVN r3746 (trunk) and r3747 (branches/2.1).

The idea is to avoid using '%' and instead pushing all formatting down to the 
`logging` subsystem, who should know best how to handle Unicode.

Original comment by riccardo.murri@gmail.com on 30 Oct 2013 at 5:35

GoogleCodeExporter commented 9 years ago
I gather the issue was user-side, and this can now be closed.

Original comment by riccardo.murri@gmail.com on 6 Nov 2013 at 10:06