[Kernel-packages] [Bug 1449678] Re: (Vivid) zram-config 0.3 Job for zram-config.service failed

2015-06-29 Thread Andy Whitcroft
** Also affects: linux (Ubuntu)
   Importance: Undecided
   Status: New

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1449678

Title:
  (Vivid) zram-config 0.3 Job for zram-config.service failed

Status in linux package in Ubuntu:
  New
Status in zram-config package in Ubuntu:
  Fix Released
Status in linux source package in Vivid:
  New
Status in zram-config source package in Vivid:
  Fix Committed

Bug description:
  [Impact]
   * People using some non English locale, zram devices are not loaded
   * The service fails to stop and unloading zram module as well

  //who wrote this? The impact is probably for all languages including English. 
The new version works : provided zram module is blacklisted to avoid being 
loaded during boot! See my next comment which will be #13. 
  Thanks, Mélodie

  [Test Case]
   * Install the new zram-config package
   * Reboot and check that the zram devices are created:
  $ swapon -s
  - returns some zram devices
   * $ sudo systemctl status -l zram-config.service
  - no error
   * Stop the service:
  $ sudo systemctl stop zram-config.service
   * $ sudo systemctl status -l zram-config.service
  - no error
   * swapon -s
  - no more zram device listed

  [Regression Potential]
   * Services loading change may impact English-local user. However, the fix 
has already been confirmed to be working on wily.
   * Stopping the service was already failing on unloading the module, so no 
additional regression is possible there.

  
  Hi,

  While testing how zram-config is going in Ubuntu Vivid, I meet with
  error while doing restart and or stop/start.

  It seems to stop fine but throws an error when starting again or
  performing a restart.

  I have installed zram-config 0.3 just today and haven't rebooted yet.
  The CPU is AMD Athlon(tm) II X2 260 Processor

  As stated in bug #1449665 there is one block device created:

  $ cat /proc/swaps
  Filename  TypeSizeUsedPriority
  /dev/zram0  partition 947216  0   5
  $

  Here:
  $ sudo systemctl stop zram-config
  $ cat /proc/swaps
  Filename  TypeSizeUsedPriority
  /dev/zram0  partition 947216  0   5
  $

  after the stop, the prompt is back without error, but it has done
  nothing.

  With restart:
  $ sudo systemctl restart zram-config
  Job for zram-config.service failed. See systemctl status 
zram-config.service and journalctl -xe for details.
  $

  When invoking the suggested commands:
  
  $ LANG=C systemctl status zram-config.service -l
  * zram-config.service - Initializes zram swaping
     Loaded: loaded (/lib/systemd/system/zram-config.service; enabled; vendor 
preset: enabled)
     Active: failed (Result: exit-code) since Tue 2015-04-28 19:34:37 CEST; 
2min 7s ago
    Process: 744 ExecStart=/usr/bin/init-zram-swapping (code=exited, status=255)
   Main PID: 744 (code=exited, status=255)

  Apr 28 19:34:37 bento64 init-zram-swapping[744]: sh: echo: I/O error
  Apr 28 19:34:37 bento64 init-zram-swapping[744]: mkswap: error: /dev/zram0 is 
mounted; will not make swapspace
  Apr 28 19:34:37 bento64 init-zram-swapping[744]: swapon: /dev/zram0 : échec 
de swapon: Périphérique ou ressource occupé
  Apr 28 19:34:37 bento64 init-zram-swapping[744]: /usr/bin/init-zram-swapping: 
21: /usr/bin/init-zram-swapping: cannot create /sys/block/zram1/disksize: 
Directory nonexistent
  Apr 28 19:34:37 bento64 init-zram-swapping[744]: /dev/zram1: Aucun fichier ou 
dossier de ce type
  Apr 28 19:34:37 bento64 init-zram-swapping[744]: swapon: stat failed 
/dev/zram1: Aucun fichier ou dossier de ce type
  Apr 28 19:34:37 bento64 systemd[1]: zram-config.service: main process exited, 
code=exited, status=255/n/a
  Apr 28 19:34:37 bento64 systemd[1]: Failed to start Initializes zram swaping.
  Apr 28 19:34:37 bento64 systemd[1]: Unit zram-config.service entered failed 
state.
  Apr 28 19:34:37 bento64 systemd[1]: zram-config.service failed.
  $
  

  
  -- Unit zram-config.service has begun starting up.
  Apr 28 19:34:37 bento64 audit[781]: audit-1107 pid=781 uid=102 
auid=4294967295 ses=4294967295 msg='apparmo
   exe=/usr/bin/dbus-daemon sauid=102 
hostname=? addr=? terminal=?'
  Apr 28 19:34:37 bento64 init-zram-swapping[744]: sh: echo: I/O error
  Apr 28 19:34:37 bento64 kernel: zram: Cannot change disksize for initialized 
device
  Apr 28 19:34:37 bento64 init-zram-swapping[744]: mkswap: error: /dev/zram0 is 
mounted; will not make swapspa
  Apr 28 19:34:37 bento64 init-zram-swapping[744]: swapon: /dev/zram0C2A0: 
C3A9chec de swapon: PC3
  Apr 28 19:34:37 bento64 init-zram-swapping[744]: /usr/bin/init-zram-swapping: 
21: /usr/bin/init-zram-swappin
  Apr 28 19:34:37 bento64 

[Kernel-packages] [Bug 1449678] Re: (Vivid) zram-config 0.3 Job for zram-config.service failed

2015-06-29 Thread Mélodie
Adam, thank you very much for the time you took to solve it and help me
with my issue. I confirm this was it. Before calling it a night I wanted
to check and reboot -of course I had removed zram from the
blacklist.conf file, had edited initramfs.conf as you instructed, and
updated the initrd.

Now the zram-conf script work normally.

*
$ cat /proc/swaps 
FilenameTypeSizeUsedPriority
/dev/sda6   partition   4607996 0   -1
/dev/zram0  partition   947216  0   5
/dev/zram1  partition   947216  0   5
*

Just for information, I will add that my sytem is using French locales,
so non English locales. And from what I can read at #1448530 the latest
version of the zram-config package has also solved it for them.

Good, I guess we can call it a day! :)

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1449678

Title:
  (Vivid) zram-config 0.3 Job for zram-config.service failed

Status in linux package in Ubuntu:
  Invalid
Status in zram-config package in Ubuntu:
  Fix Released
Status in linux source package in Vivid:
  Invalid
Status in zram-config source package in Vivid:
  Fix Committed

Bug description:
  [Impact]
   * People using some non English locale, zram devices are not loaded
   * The service fails to stop and unloading zram module as well

  //who wrote this? The impact is probably for all languages including English. 
The new version works : provided zram module is blacklisted to avoid being 
loaded during boot! See my next comment which will be #13. 
  Thanks, Mélodie

  [Test Case]
   * Install the new zram-config package
   * Reboot and check that the zram devices are created:
  $ swapon -s
  - returns some zram devices
   * $ sudo systemctl status -l zram-config.service
  - no error
   * Stop the service:
  $ sudo systemctl stop zram-config.service
   * $ sudo systemctl status -l zram-config.service
  - no error
   * swapon -s
  - no more zram device listed

  [Regression Potential]
   * Services loading change may impact English-local user. However, the fix 
has already been confirmed to be working on wily.
   * Stopping the service was already failing on unloading the module, so no 
additional regression is possible there.

  
  Hi,

  While testing how zram-config is going in Ubuntu Vivid, I meet with
  error while doing restart and or stop/start.

  It seems to stop fine but throws an error when starting again or
  performing a restart.

  I have installed zram-config 0.3 just today and haven't rebooted yet.
  The CPU is AMD Athlon(tm) II X2 260 Processor

  As stated in bug #1449665 there is one block device created:

  $ cat /proc/swaps
  Filename  TypeSizeUsedPriority
  /dev/zram0  partition 947216  0   5
  $

  Here:
  $ sudo systemctl stop zram-config
  $ cat /proc/swaps
  Filename  TypeSizeUsedPriority
  /dev/zram0  partition 947216  0   5
  $

  after the stop, the prompt is back without error, but it has done
  nothing.

  With restart:
  $ sudo systemctl restart zram-config
  Job for zram-config.service failed. See systemctl status 
zram-config.service and journalctl -xe for details.
  $

  When invoking the suggested commands:
  
  $ LANG=C systemctl status zram-config.service -l
  * zram-config.service - Initializes zram swaping
     Loaded: loaded (/lib/systemd/system/zram-config.service; enabled; vendor 
preset: enabled)
     Active: failed (Result: exit-code) since Tue 2015-04-28 19:34:37 CEST; 
2min 7s ago
    Process: 744 ExecStart=/usr/bin/init-zram-swapping (code=exited, status=255)
   Main PID: 744 (code=exited, status=255)

  Apr 28 19:34:37 bento64 init-zram-swapping[744]: sh: echo: I/O error
  Apr 28 19:34:37 bento64 init-zram-swapping[744]: mkswap: error: /dev/zram0 is 
mounted; will not make swapspace
  Apr 28 19:34:37 bento64 init-zram-swapping[744]: swapon: /dev/zram0 : échec 
de swapon: Périphérique ou ressource occupé
  Apr 28 19:34:37 bento64 init-zram-swapping[744]: /usr/bin/init-zram-swapping: 
21: /usr/bin/init-zram-swapping: cannot create /sys/block/zram1/disksize: 
Directory nonexistent
  Apr 28 19:34:37 bento64 init-zram-swapping[744]: /dev/zram1: Aucun fichier ou 
dossier de ce type
  Apr 28 19:34:37 bento64 init-zram-swapping[744]: swapon: stat failed 
/dev/zram1: Aucun fichier ou dossier de ce type
  Apr 28 19:34:37 bento64 systemd[1]: zram-config.service: main process exited, 
code=exited, status=255/n/a
  Apr 28 19:34:37 bento64 systemd[1]: Failed to start Initializes zram swaping.
  Apr 28 19:34:37 bento64 systemd[1]: Unit zram-config.service entered failed 
state.
  Apr 28 19:34:37 bento64 

[Kernel-packages] [Bug 1449678] Re: (Vivid) zram-config 0.3 Job for zram-config.service failed

2015-06-29 Thread Adam Conrad
It turns out that melodie's issue was having COMPCACHE_SIZE set in
initramfs.conf, which causes initramfs-tools to create a zram swap in
early userspace, thus rendering zram-config ineffective.  This is
arguably a bug in initramfs-tools, but it's not a regression in this
zram-config SRU.

** Changed in: linux (Ubuntu)
   Status: Incomplete = Invalid

** Changed in: linux (Ubuntu Vivid)
   Status: Incomplete = Invalid

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1449678

Title:
  (Vivid) zram-config 0.3 Job for zram-config.service failed

Status in linux package in Ubuntu:
  Invalid
Status in zram-config package in Ubuntu:
  Fix Released
Status in linux source package in Vivid:
  Invalid
Status in zram-config source package in Vivid:
  Fix Committed

Bug description:
  [Impact]
   * People using some non English locale, zram devices are not loaded
   * The service fails to stop and unloading zram module as well

  //who wrote this? The impact is probably for all languages including English. 
The new version works : provided zram module is blacklisted to avoid being 
loaded during boot! See my next comment which will be #13. 
  Thanks, Mélodie

  [Test Case]
   * Install the new zram-config package
   * Reboot and check that the zram devices are created:
  $ swapon -s
  - returns some zram devices
   * $ sudo systemctl status -l zram-config.service
  - no error
   * Stop the service:
  $ sudo systemctl stop zram-config.service
   * $ sudo systemctl status -l zram-config.service
  - no error
   * swapon -s
  - no more zram device listed

  [Regression Potential]
   * Services loading change may impact English-local user. However, the fix 
has already been confirmed to be working on wily.
   * Stopping the service was already failing on unloading the module, so no 
additional regression is possible there.

  
  Hi,

  While testing how zram-config is going in Ubuntu Vivid, I meet with
  error while doing restart and or stop/start.

  It seems to stop fine but throws an error when starting again or
  performing a restart.

  I have installed zram-config 0.3 just today and haven't rebooted yet.
  The CPU is AMD Athlon(tm) II X2 260 Processor

  As stated in bug #1449665 there is one block device created:

  $ cat /proc/swaps
  Filename  TypeSizeUsedPriority
  /dev/zram0  partition 947216  0   5
  $

  Here:
  $ sudo systemctl stop zram-config
  $ cat /proc/swaps
  Filename  TypeSizeUsedPriority
  /dev/zram0  partition 947216  0   5
  $

  after the stop, the prompt is back without error, but it has done
  nothing.

  With restart:
  $ sudo systemctl restart zram-config
  Job for zram-config.service failed. See systemctl status 
zram-config.service and journalctl -xe for details.
  $

  When invoking the suggested commands:
  
  $ LANG=C systemctl status zram-config.service -l
  * zram-config.service - Initializes zram swaping
     Loaded: loaded (/lib/systemd/system/zram-config.service; enabled; vendor 
preset: enabled)
     Active: failed (Result: exit-code) since Tue 2015-04-28 19:34:37 CEST; 
2min 7s ago
    Process: 744 ExecStart=/usr/bin/init-zram-swapping (code=exited, status=255)
   Main PID: 744 (code=exited, status=255)

  Apr 28 19:34:37 bento64 init-zram-swapping[744]: sh: echo: I/O error
  Apr 28 19:34:37 bento64 init-zram-swapping[744]: mkswap: error: /dev/zram0 is 
mounted; will not make swapspace
  Apr 28 19:34:37 bento64 init-zram-swapping[744]: swapon: /dev/zram0 : échec 
de swapon: Périphérique ou ressource occupé
  Apr 28 19:34:37 bento64 init-zram-swapping[744]: /usr/bin/init-zram-swapping: 
21: /usr/bin/init-zram-swapping: cannot create /sys/block/zram1/disksize: 
Directory nonexistent
  Apr 28 19:34:37 bento64 init-zram-swapping[744]: /dev/zram1: Aucun fichier ou 
dossier de ce type
  Apr 28 19:34:37 bento64 init-zram-swapping[744]: swapon: stat failed 
/dev/zram1: Aucun fichier ou dossier de ce type
  Apr 28 19:34:37 bento64 systemd[1]: zram-config.service: main process exited, 
code=exited, status=255/n/a
  Apr 28 19:34:37 bento64 systemd[1]: Failed to start Initializes zram swaping.
  Apr 28 19:34:37 bento64 systemd[1]: Unit zram-config.service entered failed 
state.
  Apr 28 19:34:37 bento64 systemd[1]: zram-config.service failed.
  $
  

  
  -- Unit zram-config.service has begun starting up.
  Apr 28 19:34:37 bento64 audit[781]: audit-1107 pid=781 uid=102 
auid=4294967295 ses=4294967295 msg='apparmo
   exe=/usr/bin/dbus-daemon sauid=102 
hostname=? addr=? terminal=?'
  Apr 28 19:34:37 bento64 init-zram-swapping[744]: sh: echo: I/O error
  Apr 28 19:34:37 bento64 kernel: zram: Cannot change disksize for initialized 
device
  Apr 28 

[Kernel-packages] [Bug 1449678] Re: (Vivid) zram-config 0.3 Job for zram-config.service failed

2015-06-29 Thread Adam Conrad
For the record, anyone else afflicted similarly should do the following:

1) Edit /etc/initramfs-tools/initramfs.conf to reset COMPCACHE_SIZE= (ie: set 
it blank)
2) sudo update-initramfs -u
3) reboot

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1449678

Title:
  (Vivid) zram-config 0.3 Job for zram-config.service failed

Status in linux package in Ubuntu:
  Invalid
Status in zram-config package in Ubuntu:
  Fix Released
Status in linux source package in Vivid:
  Invalid
Status in zram-config source package in Vivid:
  Fix Committed

Bug description:
  [Impact]
   * People using some non English locale, zram devices are not loaded
   * The service fails to stop and unloading zram module as well

  //who wrote this? The impact is probably for all languages including English. 
The new version works : provided zram module is blacklisted to avoid being 
loaded during boot! See my next comment which will be #13. 
  Thanks, Mélodie

  [Test Case]
   * Install the new zram-config package
   * Reboot and check that the zram devices are created:
  $ swapon -s
  - returns some zram devices
   * $ sudo systemctl status -l zram-config.service
  - no error
   * Stop the service:
  $ sudo systemctl stop zram-config.service
   * $ sudo systemctl status -l zram-config.service
  - no error
   * swapon -s
  - no more zram device listed

  [Regression Potential]
   * Services loading change may impact English-local user. However, the fix 
has already been confirmed to be working on wily.
   * Stopping the service was already failing on unloading the module, so no 
additional regression is possible there.

  
  Hi,

  While testing how zram-config is going in Ubuntu Vivid, I meet with
  error while doing restart and or stop/start.

  It seems to stop fine but throws an error when starting again or
  performing a restart.

  I have installed zram-config 0.3 just today and haven't rebooted yet.
  The CPU is AMD Athlon(tm) II X2 260 Processor

  As stated in bug #1449665 there is one block device created:

  $ cat /proc/swaps
  Filename  TypeSizeUsedPriority
  /dev/zram0  partition 947216  0   5
  $

  Here:
  $ sudo systemctl stop zram-config
  $ cat /proc/swaps
  Filename  TypeSizeUsedPriority
  /dev/zram0  partition 947216  0   5
  $

  after the stop, the prompt is back without error, but it has done
  nothing.

  With restart:
  $ sudo systemctl restart zram-config
  Job for zram-config.service failed. See systemctl status 
zram-config.service and journalctl -xe for details.
  $

  When invoking the suggested commands:
  
  $ LANG=C systemctl status zram-config.service -l
  * zram-config.service - Initializes zram swaping
     Loaded: loaded (/lib/systemd/system/zram-config.service; enabled; vendor 
preset: enabled)
     Active: failed (Result: exit-code) since Tue 2015-04-28 19:34:37 CEST; 
2min 7s ago
    Process: 744 ExecStart=/usr/bin/init-zram-swapping (code=exited, status=255)
   Main PID: 744 (code=exited, status=255)

  Apr 28 19:34:37 bento64 init-zram-swapping[744]: sh: echo: I/O error
  Apr 28 19:34:37 bento64 init-zram-swapping[744]: mkswap: error: /dev/zram0 is 
mounted; will not make swapspace
  Apr 28 19:34:37 bento64 init-zram-swapping[744]: swapon: /dev/zram0 : échec 
de swapon: Périphérique ou ressource occupé
  Apr 28 19:34:37 bento64 init-zram-swapping[744]: /usr/bin/init-zram-swapping: 
21: /usr/bin/init-zram-swapping: cannot create /sys/block/zram1/disksize: 
Directory nonexistent
  Apr 28 19:34:37 bento64 init-zram-swapping[744]: /dev/zram1: Aucun fichier ou 
dossier de ce type
  Apr 28 19:34:37 bento64 init-zram-swapping[744]: swapon: stat failed 
/dev/zram1: Aucun fichier ou dossier de ce type
  Apr 28 19:34:37 bento64 systemd[1]: zram-config.service: main process exited, 
code=exited, status=255/n/a
  Apr 28 19:34:37 bento64 systemd[1]: Failed to start Initializes zram swaping.
  Apr 28 19:34:37 bento64 systemd[1]: Unit zram-config.service entered failed 
state.
  Apr 28 19:34:37 bento64 systemd[1]: zram-config.service failed.
  $
  

  
  -- Unit zram-config.service has begun starting up.
  Apr 28 19:34:37 bento64 audit[781]: audit-1107 pid=781 uid=102 
auid=4294967295 ses=4294967295 msg='apparmo
   exe=/usr/bin/dbus-daemon sauid=102 
hostname=? addr=? terminal=?'
  Apr 28 19:34:37 bento64 init-zram-swapping[744]: sh: echo: I/O error
  Apr 28 19:34:37 bento64 kernel: zram: Cannot change disksize for initialized 
device
  Apr 28 19:34:37 bento64 init-zram-swapping[744]: mkswap: error: /dev/zram0 is 
mounted; will not make swapspa
  Apr 28 19:34:37 bento64 init-zram-swapping[744]: swapon: /dev/zram0C2A0: 
C3A9chec de swapon: PC3
  Apr 28 19:34:37 bento64 

[Kernel-packages] [Bug 1449678] Re: (Vivid) zram-config 0.3 Job for zram-config.service failed

2015-06-29 Thread Adam Conrad
** Tags removed: verification-needed
** Tags added: verification-done

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1449678

Title:
  (Vivid) zram-config 0.3 Job for zram-config.service failed

Status in linux package in Ubuntu:
  Invalid
Status in zram-config package in Ubuntu:
  Fix Released
Status in linux source package in Vivid:
  Invalid
Status in zram-config source package in Vivid:
  Fix Released

Bug description:
  [Impact]
   * People using some non English locale, zram devices are not loaded
   * The service fails to stop and unloading zram module as well

  //who wrote this? The impact is probably for all languages including English. 
The new version works : provided zram module is blacklisted to avoid being 
loaded during boot! See my next comment which will be #13. 
  Thanks, Mélodie

  [Test Case]
   * Install the new zram-config package
   * Reboot and check that the zram devices are created:
  $ swapon -s
  - returns some zram devices
   * $ sudo systemctl status -l zram-config.service
  - no error
   * Stop the service:
  $ sudo systemctl stop zram-config.service
   * $ sudo systemctl status -l zram-config.service
  - no error
   * swapon -s
  - no more zram device listed

  [Regression Potential]
   * Services loading change may impact English-local user. However, the fix 
has already been confirmed to be working on wily.
   * Stopping the service was already failing on unloading the module, so no 
additional regression is possible there.

  
  Hi,

  While testing how zram-config is going in Ubuntu Vivid, I meet with
  error while doing restart and or stop/start.

  It seems to stop fine but throws an error when starting again or
  performing a restart.

  I have installed zram-config 0.3 just today and haven't rebooted yet.
  The CPU is AMD Athlon(tm) II X2 260 Processor

  As stated in bug #1449665 there is one block device created:

  $ cat /proc/swaps
  Filename  TypeSizeUsedPriority
  /dev/zram0  partition 947216  0   5
  $

  Here:
  $ sudo systemctl stop zram-config
  $ cat /proc/swaps
  Filename  TypeSizeUsedPriority
  /dev/zram0  partition 947216  0   5
  $

  after the stop, the prompt is back without error, but it has done
  nothing.

  With restart:
  $ sudo systemctl restart zram-config
  Job for zram-config.service failed. See systemctl status 
zram-config.service and journalctl -xe for details.
  $

  When invoking the suggested commands:
  
  $ LANG=C systemctl status zram-config.service -l
  * zram-config.service - Initializes zram swaping
     Loaded: loaded (/lib/systemd/system/zram-config.service; enabled; vendor 
preset: enabled)
     Active: failed (Result: exit-code) since Tue 2015-04-28 19:34:37 CEST; 
2min 7s ago
    Process: 744 ExecStart=/usr/bin/init-zram-swapping (code=exited, status=255)
   Main PID: 744 (code=exited, status=255)

  Apr 28 19:34:37 bento64 init-zram-swapping[744]: sh: echo: I/O error
  Apr 28 19:34:37 bento64 init-zram-swapping[744]: mkswap: error: /dev/zram0 is 
mounted; will not make swapspace
  Apr 28 19:34:37 bento64 init-zram-swapping[744]: swapon: /dev/zram0 : échec 
de swapon: Périphérique ou ressource occupé
  Apr 28 19:34:37 bento64 init-zram-swapping[744]: /usr/bin/init-zram-swapping: 
21: /usr/bin/init-zram-swapping: cannot create /sys/block/zram1/disksize: 
Directory nonexistent
  Apr 28 19:34:37 bento64 init-zram-swapping[744]: /dev/zram1: Aucun fichier ou 
dossier de ce type
  Apr 28 19:34:37 bento64 init-zram-swapping[744]: swapon: stat failed 
/dev/zram1: Aucun fichier ou dossier de ce type
  Apr 28 19:34:37 bento64 systemd[1]: zram-config.service: main process exited, 
code=exited, status=255/n/a
  Apr 28 19:34:37 bento64 systemd[1]: Failed to start Initializes zram swaping.
  Apr 28 19:34:37 bento64 systemd[1]: Unit zram-config.service entered failed 
state.
  Apr 28 19:34:37 bento64 systemd[1]: zram-config.service failed.
  $
  

  
  -- Unit zram-config.service has begun starting up.
  Apr 28 19:34:37 bento64 audit[781]: audit-1107 pid=781 uid=102 
auid=4294967295 ses=4294967295 msg='apparmo
   exe=/usr/bin/dbus-daemon sauid=102 
hostname=? addr=? terminal=?'
  Apr 28 19:34:37 bento64 init-zram-swapping[744]: sh: echo: I/O error
  Apr 28 19:34:37 bento64 kernel: zram: Cannot change disksize for initialized 
device
  Apr 28 19:34:37 bento64 init-zram-swapping[744]: mkswap: error: /dev/zram0 is 
mounted; will not make swapspa
  Apr 28 19:34:37 bento64 init-zram-swapping[744]: swapon: /dev/zram0C2A0: 
C3A9chec de swapon: PC3
  Apr 28 19:34:37 bento64 init-zram-swapping[744]: /usr/bin/init-zram-swapping: 
21: /usr/bin/init-zram-swappin
  Apr 28 19:34:37 bento64 

[Kernel-packages] [Bug 1449678] Re: (Vivid) zram-config 0.3 Job for zram-config.service failed

2015-06-29 Thread Launchpad Bug Tracker
This bug was fixed in the package zram-config - 0.3.1

---
zram-config (0.3.1) vivid; urgency=medium

  * Backport 2 fixes from wily:
- Call free command under C locale to avoid it failing under non-English
locales. Thanks GamePad64 for the initial patch! (LP: #1448530)
- rmmod doesn't support -w anymore, ensure that the module is removed and
that the service stops properly (LP: #1449678)

 -- Didier Roche didro...@ubuntu.com  Mon, 15 Jun 2015 10:13:05 +0200

** Changed in: zram-config (Ubuntu Vivid)
   Status: Fix Committed = Fix Released

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1449678

Title:
  (Vivid) zram-config 0.3 Job for zram-config.service failed

Status in linux package in Ubuntu:
  Invalid
Status in zram-config package in Ubuntu:
  Fix Released
Status in linux source package in Vivid:
  Invalid
Status in zram-config source package in Vivid:
  Fix Released

Bug description:
  [Impact]
   * People using some non English locale, zram devices are not loaded
   * The service fails to stop and unloading zram module as well

  //who wrote this? The impact is probably for all languages including English. 
The new version works : provided zram module is blacklisted to avoid being 
loaded during boot! See my next comment which will be #13. 
  Thanks, Mélodie

  [Test Case]
   * Install the new zram-config package
   * Reboot and check that the zram devices are created:
  $ swapon -s
  - returns some zram devices
   * $ sudo systemctl status -l zram-config.service
  - no error
   * Stop the service:
  $ sudo systemctl stop zram-config.service
   * $ sudo systemctl status -l zram-config.service
  - no error
   * swapon -s
  - no more zram device listed

  [Regression Potential]
   * Services loading change may impact English-local user. However, the fix 
has already been confirmed to be working on wily.
   * Stopping the service was already failing on unloading the module, so no 
additional regression is possible there.

  
  Hi,

  While testing how zram-config is going in Ubuntu Vivid, I meet with
  error while doing restart and or stop/start.

  It seems to stop fine but throws an error when starting again or
  performing a restart.

  I have installed zram-config 0.3 just today and haven't rebooted yet.
  The CPU is AMD Athlon(tm) II X2 260 Processor

  As stated in bug #1449665 there is one block device created:

  $ cat /proc/swaps
  Filename  TypeSizeUsedPriority
  /dev/zram0  partition 947216  0   5
  $

  Here:
  $ sudo systemctl stop zram-config
  $ cat /proc/swaps
  Filename  TypeSizeUsedPriority
  /dev/zram0  partition 947216  0   5
  $

  after the stop, the prompt is back without error, but it has done
  nothing.

  With restart:
  $ sudo systemctl restart zram-config
  Job for zram-config.service failed. See systemctl status 
zram-config.service and journalctl -xe for details.
  $

  When invoking the suggested commands:
  
  $ LANG=C systemctl status zram-config.service -l
  * zram-config.service - Initializes zram swaping
     Loaded: loaded (/lib/systemd/system/zram-config.service; enabled; vendor 
preset: enabled)
     Active: failed (Result: exit-code) since Tue 2015-04-28 19:34:37 CEST; 
2min 7s ago
    Process: 744 ExecStart=/usr/bin/init-zram-swapping (code=exited, status=255)
   Main PID: 744 (code=exited, status=255)

  Apr 28 19:34:37 bento64 init-zram-swapping[744]: sh: echo: I/O error
  Apr 28 19:34:37 bento64 init-zram-swapping[744]: mkswap: error: /dev/zram0 is 
mounted; will not make swapspace
  Apr 28 19:34:37 bento64 init-zram-swapping[744]: swapon: /dev/zram0 : échec 
de swapon: Périphérique ou ressource occupé
  Apr 28 19:34:37 bento64 init-zram-swapping[744]: /usr/bin/init-zram-swapping: 
21: /usr/bin/init-zram-swapping: cannot create /sys/block/zram1/disksize: 
Directory nonexistent
  Apr 28 19:34:37 bento64 init-zram-swapping[744]: /dev/zram1: Aucun fichier ou 
dossier de ce type
  Apr 28 19:34:37 bento64 init-zram-swapping[744]: swapon: stat failed 
/dev/zram1: Aucun fichier ou dossier de ce type
  Apr 28 19:34:37 bento64 systemd[1]: zram-config.service: main process exited, 
code=exited, status=255/n/a
  Apr 28 19:34:37 bento64 systemd[1]: Failed to start Initializes zram swaping.
  Apr 28 19:34:37 bento64 systemd[1]: Unit zram-config.service entered failed 
state.
  Apr 28 19:34:37 bento64 systemd[1]: zram-config.service failed.
  $
  

  
  -- Unit zram-config.service has begun starting up.
  Apr 28 19:34:37 bento64 audit[781]: audit-1107 pid=781 uid=102 
auid=4294967295 ses=4294967295 msg='apparmo
   exe=/usr/bin/dbus-daemon sauid=102 
hostname=? addr=? terminal=?'
  Apr 28 19:34:37