It is probably something wrong in the code that reads the object class from the SoftHSM database: https://github.com/opendnssec/SoftHSMv2/blob/e014b86c1f3dab6f57e066171637e120de924f78/src/bin/migrate/softhsm2-migrate.cpp#L518
That SQLITE_ROW is not returned or that pValue is null / does not match the size of CK_OBJECT_CLASS. Could you report an issue at https://github.com/opendnssec/SoftHSMv2/issues/new, so that we can track it from there. // Rickard On Thu, Jan 18, 2018 at 6:19 PM, Stephane Bortzmeyer <[email protected]> wrote: > I want to migrate an old installation, which still uses SoftHSMv1. > > On the new machine, I initialized SoftHSM v2: > > sudo softhsm2-util --init-token --slot 0 --label OpenDNSSEC > > But then migration fails: > > % sudo softhsm2-migrate --db /var/lib/softhsm/slot0.db --token OpenDNSSEC > Found slot 1877891147 with matching token label. > === User PIN (4-255 characters) === > Please enter user PIN: ******************************** > Please reenter user PIN: ******************************** > ERROR: Could not get the class of object 1. Continuing. > ERROR: Could not get the class of object 2. Continuing. > ERROR: Could not get the class of object 3. Continuing. > ERROR: Could not get the class of object 4. Continuing. > ERROR: Could not get the class of object 41. Continuing. > ERROR: Could not get the class of object 42. Continuing. > ERROR: Could not get the class of object 51. Continuing. > ERROR: Could not get the class of object 52. Continuing. > ERROR: Could not get the class of object 55. Continuing. > ERROR: Could not get the class of object 56. Continuing. > ERROR: Could not get the class of object 89. Continuing. > ERROR: Could not get the class of object 90. Continuing. > ERROR: Could not get the class of object 191. Continuing. > ERROR: Could not get the class of object 192. Continuing. > ERROR: Could not get the class of object 193. Continuing. > ERROR: Could not get the class of object 194. Continuing. > ERROR: Could not get the class of object 219. Continuing. > ERROR: Could not get the class of object 220. Continuing. > ERROR: Could not get the class of object 237. Continuing. > ERROR: Could not get the class of object 238. Continuing. > ERROR: Could not get the class of object 239. Continuing. > ERROR: Could not get the class of object 240. Continuing. > ERROR: Could not get the class of object 241. Continuing. > ERROR: Could not get the class of object 242. Continuing. > ERROR: Could not get the class of object 243. Continuing. > ERROR: Could not get the class of object 244. Continuing. > ERROR: Could not get the class of object 245. Continuing. > ERROR: Could not get the class of object 246. Continuing. > ERROR: Could not get the class of object 247. Continuing. > ERROR: Could not get the class of object 248. Continuing. > ERROR: Could not get the class of object 249. Continuing. > ERROR: Could not get the class of object 250. Continuing. > ERROR: Could not get the class of object 251. Continuing. > ERROR: Could not get the class of object 252. Continuing. > ERROR: Could not get the class of object 253. Continuing. > ERROR: Could not get the class of object 254. Continuing. > ERROR: Could not get the class of object 255. Continuing. > ERROR: Could not get the class of object 256. Continuing. > ERROR: Could not get the class of object 257. Continuing. > ERROR: Could not get the class of object 258. Continuing. > ERROR: Could not get the class of object 259. Continuing. > ERROR: Could not get the class of object 260. Continuing. > ERROR: Could not get the class of object 261. Continuing. > ERROR: Could not get the class of object 262. Continuing. > ERROR: Could not get the class of object 263. Continuing. > ERROR: Could not get the class of object 264. Continuing. > ERROR: Could not get the class of object 265. Continuing. > ERROR: Could not get the class of object 266. Continuing. > ERROR: Could not get the class of object 267. Continuing. > ERROR: Could not get the class of object 268. Continuing. > ERROR: Could not get the class of object 269. Continuing. > ERROR: Could not get the class of object 270. Continuing. > ERROR: Could not get the class of object 271. Continuing. > ERROR: Could not get the class of object 272. Continuing. > ERROR: Could not get the class of object 273. Continuing. > ERROR: Could not get the class of object 274. Continuing. > ERROR: Could not get the class of object 275. Continuing. > ERROR: Could not get the class of object 276. Continuing. > ERROR: Could not get the class of object 277. Continuing. > ERROR: Could not get the class of object 278. Continuing. > ERROR: Could not get the class of object 279. Continuing. > ERROR: Could not get the class of object 280. Continuing. > ERROR: Could not get the class of object 281. Continuing. > ERROR: Could not get the class of object 282. Continuing. > ERROR: Could not get the class of object 283. Continuing. > ERROR: Could not get the class of object 284. Continuing. > ERROR: Could not get the class of object 285. Continuing. > ERROR: Could not get the class of object 286. Continuing. > ERROR: Could not get the class of object 287. Continuing. > ERROR: Could not get the class of object 288. Continuing. > ERROR: Could not get the class of object 289. Continuing. > ERROR: Could not get the class of object 290. Continuing. > ERROR: Could not get the class of object 291. Continuing. > ERROR: Could not get the class of object 292. Continuing. > ERROR: Unable to migrate all of the objects. > > I do not find the error "Could not get the class of object" anywhere > with Google. > _______________________________________________ > Opendnssec-user mailing list > [email protected] > https://lists.opendnssec.org/mailman/listinfo/opendnssec-user >
_______________________________________________ Opendnssec-user mailing list [email protected] https://lists.opendnssec.org/mailman/listinfo/opendnssec-user
