Author

Topic: CGMiner showing 1969-12-31 timestamp? (Read 232 times)

sr. member
Activity: 361
Merit: 267
August 22, 2020, 08:22:30 AM
#3
Thank you very much, I ended up using the version that Victor Huang compiled as you suggested. All works well now.

Code:
cgminer version 4.11.1 - Started: [2020-08-22 09:10:55.286]
--------------------------------------------------------------------------------
 (5s):9.424G (1m):8.863G (5m):7.408G (15m):4.272G (avg):8.107Gh/s
 A:1152  R:0  HW:52  WU:108.5/m
 Connected to solo.ckpool.org diff 128 with stratum as user 1BmcjRJTRQAP7je5B7tD
 Block: deecdac4...  Diff:16.9T  Started: [09:10:49.458]  Best share: 2.03K
--------------------------------------------------------------------------------
 [U]SB management [P]ool management [S]ettings [D]isplay options [Q]uit
 0: ANU 0       : 250MHz                  | 3.640G / 2.212Gh/s WU:30.9/m
 1: ANU 1       : 250MHz                  | 1.953G / 1.909Gh/s WU:22.0/m
 2: ANU 2       : 250MHz                  | 2.159G / 1.922Gh/s WU:26.9/m
 3: ANU 3       : 250MHz                  | 2.777G / 2.057Gh/s WU:28.8/m
--------------------------------------------------------------------------------
 [2020-08-22 09:10:49.458] Network diff set to 16.9T
 [2020-08-22 09:12:48.971] Accepted 2104548f Diff 1.99K/128 ANU 2
 [2020-08-22 09:13:23.590] Accepted 01fe8bcf Diff 128/128 ANU 3
 [2020-08-22 09:14:42.715] Accepted 018e14ea Diff 165/128 ANU 0
 [2020-08-22 09:14:56.184] Accepted d2572cd1 Diff 312/128 ANU 2
 [2020-08-22 09:16:39.067] Accepted 01c8959a Diff 144/128 ANU 3
 [2020-08-22 09:18:45.538] Accepted 0147b448 Diff 200/128 ANU 3
 [2020-08-22 09:19:29.286] Accepted 017a5b2c Diff 173/128 ANU 1
 [2020-08-22 09:19:41.507] Accepted 01880327 Diff 167/128 ANU 1
 [2020-08-22 09:21:01.767] Accepted 62e8fd90 Diff 663/128 ANU 3

legendary
Activity: 2483
Merit: 1482
-> morgen, ist heute, schon gestern <-
August 22, 2020, 03:44:33 AM
#2
Hello bmoscato,
cgminer 4.11.1 got this timebug.
First of all, It is not affecting your mining, just the date / time display is wrong.

If you compile cgminer by yourself, you can incoperate this pull request from
Victor Huang:
https://github.com/ckolivas/cgminer/pull/735
and this is fixed.

Or, you use cgminer 4.10.0 where this bug does not existed.
With this version you will also have no trouble using the U1/U2 just make sure that your user
is in the plugdev group!

Quote from the Readme:
Code:
LINUX:

The short version:
 sudo cp 01-cgminer.rules /etc/udev/rules.d/

The long version:
On linux, the direct USB support requires no drivers at all. However due to
permissions issues, you may not be able to mine directly on the devices as a
regular user without giving the user access to the device or by mining as
root (administrator). In order to give your regular user access, you can make
him a member of the plugdev group with the following commands:

 sudo usermod -G plugdev -a `whoami`

If your distribution does not have the plugdev group you can create it with:

 sudo groupadd plugdev

In order for the USB devices to instantly be owned by the plugdev group and
accessible by anyone from the plugdev group you can copy the file
"01-cgminer.rules" from the cgminer archive into the /etc/udev/rules.d
directory with the following command:

 sudo cp 01-cgminer.rules /etc/udev/rules.d/

After this you can either manually restart udev and re-login, or more easily
just reboot.
sr. member
Activity: 361
Merit: 267
August 21, 2020, 10:16:43 PM
#1
There is a locked thread with the same title, but I'm not sure how to resolve this. Yes, I know that Antminer U1/U2 aren't going to hit a block... I'm just messing around with a Raspberry Pi 4 and old hardware.

https://bitcointalksearch.org/topic/cgminer-showing-1969-12-31-timestamp-5223500

The system date is set correctly:
Code:
pi@RPi4-A:~ $ timedatectl
               Local time: Fri 2020-08-21 23:13:15 EDT
           Universal time: Sat 2020-08-22 03:13:15 UTC
                 RTC time: n/a
                Time zone: America/New_York (EDT, -0400)
System clock synchronized: yes
              NTP service: active
          RTC in local TZ: no
pi@RPi4-A:~ $

CGMiner has incorrect date:
Code:
cgminer version 4.11.1 - Started: [1969-12-31 19:53:53.706]
--------------------------------------------------------------------------------
 (5s):9.368G (1m):7.901G (5m):7.182G (15m):4.358G (avg):7.906Gh/s
 A:1152  R:0  HW:63  WU:105.2/m
 Connected to solo.ckpool.org diff 128 with stratum as user 1BmcjRJTRQAP7je5B7tD
 Block: 6d36968a...  Diff:16.9T  Started: [20:04:16.548]  Best share: 1.75K
--------------------------------------------------------------------------------
 [U]SB management [P]ool management [S]ettings [D]isplay options [Q]uit
 0: ANU 0       : 250MHz                  | 1.446G / 1.920Gh/s WU:26.7/m
 1: ANU 1       : 250MHz                  | 2.815G / 1.967Gh/s WU:22.3/m
 2: ANU 2       : 250MHz                  | 3.451G / 2.056Gh/s WU:28.7/m
 3: ANU 3       : 250MHz                  | 1.865G / 1.961Gh/s WU:27.4/m
--------------------------------------------------------------------------------
 [1969-12-31 19:58:46.998] Accepted 01d8ff4a Diff 139/128 ANU 0
 [1969-12-31 19:59:16.546] Accepted 01a248dd Diff 157/128 ANU 3
 [1969-12-31 20:00:54.701] Accepted fee86da4 Diff 257/128 ANU 3
 [1969-12-31 20:01:36.359] Accepted 25801b63 Diff 1.75K/128 ANU 3
 [1969-12-31 20:03:20.906] Accepted 0150f568 Diff 194/128 ANU 1
 [1969-12-31 20:03:34.040] Accepted 01e7be82 Diff 134/128 ANU 2
 [1969-12-31 20:03:38.423] Accepted fa792109 Diff 262/128 ANU 2
 [1969-12-31 20:04:16.548] Stratum from pool 0 detected new block at height 6447
90
 [1969-12-31 20:04:35.828] Accepted 8f84719d Diff 457/128 ANU 1

Jump to: