Bug#1038863: Acknowledgement (coreutils: date : shows the wrong information, 24 hours before)

2023-06-30 Thread Miquel Gual Torner

I'm sorry

you can close the error

My mistake in the script.



Bug#1038863: incorrect timedatectl

2023-06-27 Thread Miquel Gual Torner

timedatectl cron:

Local time: Mon 2023-06-26 05:11:22 CEST
Universal time: Mon 2023-06-26 03:11:22 UTC
RTC time: Tue 2023-06-27 03:11:22
Time zone: Europe/Madrid (CEST, +0200)
System clock synchronized: no
NTP service: active
RTC in local TZ: no LANG=C


timedatectl bash:

Local time: dt. 2023-06-27 09:22:05 CEST
Universal time: dt. 2023-06-27 07:22:05 UTC
RTC time: dt. 2023-06-27 07:22:05
Time zone: Europe/Madrid (CEST, +0200)
System clock synchronized: yes
NTP service: active
RTC in local TZ: no

--

Salutacions,

Miquel Gual Torner

Analista de Sistemes Informàtics
Ajuntament de Benicarló



Bug#1038863: coreutils: date : shows the wrong information, 24 hours before

2023-06-22 Thread Miquel Gual Torner

Package: coreutils
Version: 8.32-4+b1
Severity: normal

The cron executes a script and this in turn another script.
script:
..
START=$(date +"%x %X")
START2=$(date +%s)
rsync ...
END=$(date +"%x %X")
END2=$(date+%s)
..


When I run the date found in START and START2, the result is "date -d 
-1day". Therefore it tells me that the script was executed the day 
before when it is not true.



-- System Information:
Debian Release: 11.7
 APT prefers oldstable-security
 APT policy: (500, 'oldstable-security'), (500, 'oldstable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.15.107-2-pve (SMP w/4 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_FIRMWARE_WORKAROUND, 
TAINT_OOT_MODULE
Locale: LANG=ca_ES.UTF-8, LC_CTYPE=ca_ES.UTF-8 (charmap=UTF-8) (ignored: 
LC_ALL set to ca_ES.UTF-8), LANGUAGE=ca_ES.UTF-8

Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages coreutils depends on:
ii  libacl1  2.2.53-10
ii  libattr1 1:2.4.48-6
ii  libc6    2.31-13+deb11u6
ii  libgmp10 2:6.2.1+dfsg-1+deb11u1
ii  libselinux1  3.1-3

coreutils recommends no packages.

coreutils suggests no packages.

-- no debconf information



Bug#1037191: nfs-ganesha: nfs client: cannot be accessed, operation not allowed

2023-06-07 Thread Miquel Gual Torner



Package: nfs-ganesha
Version: 4.3-2
Severity: normal

Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?
   I'm trying to migrate my servers with nfs-kernel-server to nfs-ganesha
   * What exactly did you do (or not do) that was effective (or
 ineffective)?
 It is a new installation
   * What was the outcome of this action?
   * What outcome did you expect instead?

It is a privileged lxc container that runs on top of proxmox

*** End of the template - remove these template lines ***


-- System Information:
Debian Release: 12.0
  APT prefers testing-security
  APT policy: (500, 'testing-security'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 5.15.74-1-pve (SMP w/1 CPU thread)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=ca_ES.UTF-8, LC_CTYPE=ca_ES.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to ca_ES.UTF-8), LANGUAGE=ca_ES.UTF-8
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages nfs-ganesha depends on:
ii  dbus  1.14.6-1
ii  libacl1   2.3.1-3
ii  libblkid1 2.38.1-5+b1
ii  libc6 2.36-9
ii  libcap2   1:2.66-4
ii  libcom-err2   1.47.0-2
ii  libdbus-1-3   1.14.6-1
ii  libgssapi-krb5-2  1.20.1-2
ii  libkrb5-3 1.20.1-2
ii  libnfsidmap1  1:2.6.2-4
ii  libntirpc4.3  4.3-2
ii  liburcu8  0.13.2-1
ii  libuuid1  2.38.1-5+b1
ii  libwbclient0  2:4.17.8+dfsg-2
ii  nfs-common1:2.6.2-4
ii  rpcbind   1.2.6-6+b1

nfs-ganesha recommends no packages.

nfs-ganesha suggests no packages.

-- Configuration Files:
/etc/ganesha/ganesha.conf changed:
LOG {
COMPONENTS {
NFS4 = FULL_DEBUG;
IDMAPPER = Full_Debug;
}
}
EXPORT
{
  Export_Id = 1 ;
  Path = "/srv/PVE" ;
  Pseudo = "/srv/PVE";
  protocols = 3,4 ;
  # Error protocols = "3,4" ;
  #SecType = "sys";
  #SecType = sys, krb5;
  squash = none;
  access_type = rw;
  FSAL
  {
  name = VFS;
  }
}
-- no debconf information


##
# NFS Client #
##

root@et089601:~# mount | grep template-mount
172.20.10.107:/srv/PVE on /tmp/template-mount type nfs4 
(rw,relatime,vers=4.2,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=172.20.11.39,local_lock=none,addr=172.20.10.107)
root@et089601:~# ls/tmp/template-mount/
ls: cannot access '/tmp/template-mount/': Operation not permitted

##
# NFS server #
##

12.0 root@template-server:/home/mgual# cat /var/log/ganesha/ganesha.log
07/06/2023 13:37:05 : epoch 64806be1 : template-server : 
ganesha.nfsd-2904[main] init_logging :LOG :NULL :LOG: Setting log level for all 
components to NIV_EVENT
07/06/2023 13:37:05 : epoch 64806be1 : template-server : 
ganesha.nfsd-2904[main] main :MAIN :EVENT :ganesha.nfsd Starting: Ganesha 
Version 4.3
07/06/2023 13:37:05 : epoch 64806be1 : template-server : 
ganesha.nfsd-2905[main] load_rados_config :CONFIG :WARN :Missing RADOS URLs 
backend library
07/06/2023 13:37:05 : epoch 64806be1 : template-server : 
ganesha.nfsd-2905[main] SetComponentLogLevel :LOG :NULL :LOG: Changing log 
level of COMPONENT_NFS_V4 from NIV_EVENT to NIV_FULL_DEBUG
07/06/2023 13:37:05 : epoch 64806be1 : template-server : 
ganesha.nfsd-2905[main] SetComponentLogLevel :LOG :NULL :LOG: Changing log 
level of COMPONENT_IDMAPPER from NIV_EVENT to NIV_FULL_DEBUG
07/06/2023 13:37:05 : epoch 64806be1 : template-server : 
ganesha.nfsd-2905[main] nfs_set_param_from_conf :NFS STARTUP :EVENT 
:Configuration file successfully parsed
07/06/2023 13:37:05 : epoch 64806be1 : template-server : 
ganesha.nfsd-2905[main] init_fds_limit :INODE LRU :EVENT :Setting the 
system-imposed limit on FDs to 524288.
07/06/2023 13:37:05 : epoch 64806be1 : template-server : 
ganesha.nfsd-2905[main] init_server_pkgs :NFS STARTUP :EVENT :Initializing ID 
Mapper.
07/06/2023 13:37:05 : epoch 64806be1 : template-server : 
ganesha.nfsd-2905[main] init_server_pkgs :NFS STARTUP :EVENT :ID Mapper 
successfully initialized.
07/06/2023 13:37:05 : epoch 64806be1 : template-server : 
ganesha.nfsd-2905[main] nfs_start_grace :STATE :EVENT :NFS Server Now IN GRACE, 
duration 90
07/06/2023 13:37:05 : epoch 64806be1 : template-server : 
ganesha.nfsd-2905[main] nfs_start_grace :STATE :EVENT :grace reload client info 
completed from backend
07/06/2023 13:37:05 : epoch 64806be1 : template-server : 
ganesha.nfsd-2905[main] nfs_try_lift_grace :STATE :EVENT :check grace:reclaim 
complete(0) clid count(1)
07/06/2023 13:37:05 : epoch 64806be1 : template-server : 
ganesha.nfsd-2905[main] lower_my_caps :NFS STARTUP :EVENT :CAP_SYS_RESOURCE was 
successfully removed for proper quota management in FSAL
07/06/2023 13:37:05 : epoch 64806be1 : template-server : 
ganesha.nfsd-2905[main] lower_my_caps :NFS STARTUP :EVENT :currently set 
capabilities are: =ep 

Bug#1025475: cups-tea4cups: The script is very slow. it takes about 20 seconds more.

2022-12-05 Thread Miquel Gual Torner

Package: cups-tea4cups
Version: 3.14~alpha0+svn3576-2
Severity: normal

Dear Maintainer,

*** Reporter, please consider answering these questions, where 
appropriate ***


* What led up to the situation?

I have upgraded to debian bullseye version (tea4cups 
3.15alpha_unofficial) and before we had debian stretch (tea4cups 
3.13alpha_unofficial).


* What exactly did you do (or not do) that was effective (or

ineffective)?

tea4cups 3.15alpha_unofficial -> más de 10 segundos
tea4cups 3.13alpha_unofficial -> más de 2 segundos

Instalar version 3.13alpha_unofficial
* Instalar python2
* Instalar version de tea4cups 3.13alpha_unofficial
* modificar cabezera tea4cups

* What was the outcome of this action?
* What outcome did you expect instead?

*** End of the template - remove these template lines ***


-- System Information:
Debian Release: 11.5
APT prefers stable-security
APT policy: (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.13.19-1-pve (SMP w/4 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_FIRMWARE_WORKAROUND, 
TAINT_OOT_MODULE
Locale: LANG=ca_ES.UTF-8, LC_CTYPE=ca_ES.UTF-8 (charmap=UTF-8) (ignored: 
LC_ALL set to ca_ES.UTF-8), LANGUAGE=ca_ES.UTF-8

Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages cups-tea4cups depends on:
ii cups 2.3.3op2-3+deb11u2
ii python3 3.9.2-3

cups-tea4cups recommends no packages.

cups-tea4cups suggests no packages.

-- Configuration Files:
/etc/cups/tea4cups.conf changed:
[global]
debug : yes
directory : /var/spool/cups/
[ip003_1c]
posthook_ip003_1c : lp -d ip003_ppd -o media=a4 -o sides=one-sided -U 
$TEAUSERNAME $TEADATAFILE

[ip003_2c]
posthook_ip003_2c : cat $TEADATAFILE | /usr/local/bin/filter-ps-duplex | 
lp -d ip003_ppd -o media=a4 -o sides=two-sided-long-edge -U $TEAUSERNAME


-- no debconf information


 tea4cups 3.15alpha_unofficial -

/tmp/file_cups_env ; time python3 /usr/lib/cups/backend/tea4cups 12246 
mgual "Test Page" 1 
"job-uuid=urn:uuid:4aea244a-5d88-309f-4523-6109e83d0a83 
 date-time-at-creation= 
date-time-at-processing= time-at-creation=1670220463 
time-at-processing=1670220463" /tmp/file_cups


|DEBUG:root:Not attached to an existing print queue. [TEA4CUPS]_DEBUG: 
Tea4CUPS v3.15alpha_unofficial (PID 4943) : Not attached to an existing 
print queue. DEBUG:root:charset is set to [('charset', 'utf-8')] 
[TEA4CUPS]_DEBUG: Tea4CUPS v3.15alpha_unofficial (PID 4943) : charset is 
set to [('charset', 'utf-8')] DEBUG:root:language is set to 
[('naturalLanguage', 'en-us')] [TEA4CUPS]_DEBUG: Tea4CUPS 
v3.15alpha_unofficial (PID 4943) : language is set to 
[('naturalLanguage', 'en-us')] DEBUG:urllib3.connectionpool:Starting new 
HTTP connection (1): localhost:631 
DEBUG:urllib3.connectionpool:http://localhost:631 "POST / HTTP/1.1" 400 
379 DEBUG:root:data to parse: 0x7f9257df26d0> [TEA4CUPS]_DEBUG: Tea4CUPS v3.15alpha_unofficial (PID 
4943) : data to parse: 0x7f9257df26d0> DEBUG:root:Parsing of IPP message file 
/var/spool/cups/c12246 begins. [TEA4CUPS]_DEBUG: Tea4CUPS 
v3.15alpha_unofficial (PID 4943) : Parsing of IPP message file 
/var/spool/cups/c12246 begins. Tea4CUPS (PID 4943) : ERROR: Tea4CUPS 
v3.15alpha_unofficial ERROR: Tea4CUPS (PID 4943) : Traceback (most 
recent call last): ERROR: Tea4CUPS (PID 4943) : File 
"/usr/lib/cups/backend/tea4cups", line 1177, in initBackend ERROR: 
Tea4CUPS (PID 4943) : answer = cupsserver.getJobAttributes(self.JobId) 
ERROR: Tea4CUPS (PID 4943) : File "/usr/lib/cups/backend/tea4cups", line 
784, in getJobAttributes ERROR: Tea4CUPS (PID 4943) : return 
self.doRequest(req) ERROR: Tea4CUPS (PID 4943) : File 
"/usr/lib/cups/backend/tea4cups", line 762, in doRequest ERROR: Tea4CUPS 
(PID 4943) : wrapper.logDebug("request content: %s"%str(r.raw.content)) 
ERROR: Tea4CUPS (PID 4943) : AttributeError: 'HTTPResponse' object has 
no attribute 'content' ERROR: Tea4CUPS (PID 4943) : During handling of 
the above exception, another exception occurred: ERROR: Tea4CUPS (PID 
4943) : Traceback (most recent call last): ERROR: Tea4CUPS (PID 4943) : 
File "/usr/lib/cups/backend/tea4cups", line 1547, in  ERROR: 
Tea4CUPS (PID 4943) : wrapper.initBackend() ERROR: Tea4CUPS (PID 4943) : 
File "/usr/lib/cups/backend/tea4cups", line 1183, in initBackend ERROR: 
Tea4CUPS (PID 4943) : (ippfilename, answer) = self.parseIPPRequestFile() 
ERROR: Tea4CUPS (PID 4943) : File "/usr/lib/cups/backend/tea4cups", line 
1233, in parseIPPRequestFile ERROR: Tea4CUPS (PID 4943) : ippmessage = 
IPPRequest(ippdatafile.read()) ERROR: Tea4CUPS (PID 4943) : File 
"/usr/lib/python3.9/codecs.py", line 322, in decode ERROR: Tea4CUPS (PID 
4943) : (result, consumed) = self._buffer_decode(data, self.errors, 
final) ERROR: Tea4CUPS (PID 4943) : UnicodeDecodeError: 'utf-8' codec 
can't decode byte 0xe6 in position 443: invalid continuation byte 
DEBUG:root:Tea4CUPS (PID 4943) : ERROR: Tea4CUPS v3.15alpha_unofficial 
ERROR: Tea4CUPS (PID 4943) : Traceback (most 

Bug#971385: courier-imap: thunderbird error: Unicode message and yout E-mail reader did not enable Unicode support

2020-09-29 Thread Miquel Gual Torner
Package: courier-imap
Version: 5.0.6+1.0.6-1
Severity: normal

Dear Maintainer,


* What led to the situation?
Mail server update to courier-imap version 5.0.6 + 1.0.6-1. Thunderbird shows 
the error:
"Message X appears to be a Unicode message and yout E-mail reader did not 
enable Unicode support. Please use an E-mail reader that supports IMAP with 
UTF-8 (see https://tools.ietf.org/html/rfc6855 .html) ".
Everything works correctly. Show the error.

# Option 1: downgrade
* What exactly did (or did not do) that was effective (or
  ineffective)?
If I downgrade the courier-imap version to a version 4 (debian 9).
  * What was the result of this action?
It does not show the error.

# Option 2: compile new version
  * What exactly did (or did not do) that was effective (or
  ineffective)?
Try compiling the courier-imap package.
* What was the result of this action?
I couldn't integrate it into the distribution.
* What result did you expect instead?
Integrate it and solve the problem.

# Option 3: Apply patch
  * What exactly did (or did not do) that was effective (or
  ineffective)?
I did not do 
https://github.com/svarshavchik/courier-libs/commit/a1d3a864cf488e9bd2c49dc01289e49d857fdeb7?branch=a1d3a864cf488e9bd2c49dc01289e49d857fdeb7

-
I think this patch would fix my problem with thunderbird:

https://github.com/svarshavchik/courier-libs/commit/a1d3a864cf488e9bd2c49dc01289e49d857fdeb7?branch=a1d3a864cf488e9bd2c49dc01289e49d857fdeb7
--> imapd.c 
}

dirsync(path);
+   if (utf8_error) {
+   writes("* OK [ALERT] Your IMAP client does not appear to "
+  "correctly implement Unicode messages, "
+  "see https://tools.ietf.org/html/rfc6855.html\r\n;);
+   }
writes(tag);
writes(" OK [APPENDUID ");
writen(new_uidv);
writes(" ");
writen(new_uid);
writes("] APPEND Ok.");
-   if (utf8_error) {
-   writes(" [ALERT] Your IMAP client does not appear to "
-   "correctly implement Unicode messages, "
-   "see https://tools.ietf.org/html/rfc6855.html;);
-   }
writes("\r\n");
return (0);
}



-- System Information:
Debian Release: 10.5
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.3.13-1-pve (SMP w/20 CPU cores)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_WARN, TAINT_OOT_MODULE
Locale: LANG=ca_ES.UTF-8, LC_CTYPE=ca_ES.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to ca_ES.UTF-8), LANGUAGE=ca_ES.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set 
to ca_ES.UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages courier-imap depends on:
ii  courier-authlib0.69.0-2
ii  courier-base   1.0.6-1
ii  debconf [debconf-2.0]  1.5.71
ii  exim4-daemon-heavy [mail-transport-agent]  4.92-8+deb10u4
ii  libc6  2.28-10
ii  libcourier-unicode42.1-3
ii  libgamin0 [libfam0]0.1.10-5+b1
ii  libgdbm6   1.18.1-4
ii  libidn11   1.33-2.2
ii  sysvinit-utils 2.93-8

courier-imap recommends no packages.

Versions of packages courier-imap suggests:
pn  courier-doc  
pn  imap-client  

-- Configuration Files:
/etc/courier/imapd changed:
ADDRESS=0
PORT=143
MAXDAEMONS=1000
MAXPERIP=1000
PIDFILE=/run/courier/imapd.pid
TCPDOPTS="-nodnslookup -noidentlookup"
IMAPACCESSFILE=/etc/courier/imapaccess
LOGGEROPTS="-name=imapd"
IMAP_CAPABILITY="IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT 
THREAD=REFERENCES SORT QUOTA IDLE UTF8=ACCEPT"
IMAP_KEYWORDS=1
IMAP_ACL=1
IMAP_CAPABILITY_ORIG="IMAP4rev1 UIDPLUS CHILDREN NAMESPACE 
THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA AUTH=CRAM-MD5 AUTH=CRAM-SHA1 
AUTH=CRAM-SHA256 IDLE UTF8=ACCEPT"
IMAP_PROXY=0
IMAP_PROXY_FOREIGN=0
IMAP_IDLE_TIMEOUT=60
IMAP_MAILBOX_SANITY_CHECK=0
IMAP_CAPABILITY_TLS="$IMAP_CAPABILITY AUTH=PLAIN"
IMAP_CAPABILITY_TLS_ORIG="$IMAP_CAPABILITY_ORIG AUTH=PLAIN"
IMAP_DISABLETHREADSORT=0
IMAP_CHECK_ALL_FOLDERS=1
IMAP_OBSOLETE_CLIENT=0
IMAP_UMASK=022
IMAP_ULIMITD=131072
IMAP_USELOCKS=1
IMAP_SHAREDINDEXFILE=/etc/courier/shared/index
IMAP_ENHANCEDIDLE=1
IMAP_TRASHFOLDERNAME=Trash
IMAP_EMPTYTRASH=Trash:7
IMAP_MOVE_EXPUNGE_TO_TRASH=0
SENDMAIL=/usr/sbin/sendmail
HEADERFROM=X-IMAP-Sender
IMAPDSTART=YES
MAILDIRPATH=Maildir

/etc/courier/imapd-ssl changed:
SSLPORT=993
SSLADDRESS=0
SSLPIDFILE=/run/courier/imapd-ssl.pid
SSLLOGGEROPTS="-name=imapd-ssl"
IMAPDSSLSTART=YES
IMAPDSTARTTLS=YES
IMAP_TLS_REQUIRED=0
COURIERTLS=/usr/bin/couriertls
TLS_STARTTLS_PROTOCOL="$TLS_PROTOCOL"
TLS_CERTFILE=/etc/courier/imapd.pem
TLS_DHPARAMS=/etc/courier/dhparams.pem
TLS_TRUSTCERTS=/etc/ssl/certs/ca-certificates.crt